mcnp_sdef_erg_hist {radsafer} | R Documentation |
energy distribution histogram from pasted data
Description
energy distribution histogram from pasted data
Usage
mcnp_sdef_erg_hist(
entry_mode = "scan",
my_dir = NULL,
E_MeV = NULL,
bin_prob = NULL,
write_permit = "n",
log_plot = 0
)
Arguments
entry_mode |
How do you want to enter the data? Default is "scan", allowing you to copy and paste data in at prompts. The other option is "read". In read mode, you identify the data that is already loaded in R. |
my_dir |
Optional directory. The function will write to the working directory by default. |
E_MeV |
Energy bin levels in MeV. |
bin_prob |
Relative probability of bin energy. |
write_permit |
Set this to 'y' to allow writing output to your directory. |
log_plot |
0 = no log axes (default), 1 = log y-axis, 2 = log both axes. |
Details
The output includes si# and sp#. The # should be changed to the appropriate distribution number. The data is saved in the global environment and appended to a file in the user's working directory, si_sp.txt. Two plots of the data are provided to the plot window, one with two linear axes and one with two log axes.
Value
A vector of energy bins and probabilities for an energy distribution, formatted as needed for MCNP input. It is designed for copying and pasting into an MCNP input.
See Also
mcnp_sdef_erg_line()
for data from RadData
Other mcnp tools:
mcnp_cone_angle()
,
mcnp_est_nps()
,
mcnp_matrix_rotations()
,
mcnp_mesh_bins()
,
mcnp_plot_out_spec()
,
mcnp_scan2plot()
,
mcnp_scan_save()
,
mcnp_sdef_erg_line()
,
mcnp_si_sp_RD()
,
mcnp_si_sp_hist_scan()
,
mcnp_si_sp_hist()
Examples
## Not run:
mcnp_sdef_erg_hist()
## End(Not run)