openmc.data.njoy.make_ace¶
- openmc.data.njoy.make_ace(filename, temperatures=None, acer=True, xsdir=None, output_dir=None, pendf=False, error=0.001, broadr=True, heatr=True, gaspr=True, purr=True, evaluation=None, smoothing=True, **kwargs)[source]¶
Generate incident neutron ACE file from an ENDF file
File names can be passed to
[acer, xsdir, pendf, broadr, heatr, gaspr, purr]
to specify the exact output for the given module. Otherwise, the files will be writen to the current directory or directory specified byoutput_dir
. Default file names mirror the variable names, e.g.heatr
output will be written to a file namedheatr
unless otherwise specified.- Parameters
filename (str) – Path to ENDF file
temperatures (iterable of float, optional) – Temperatures in Kelvin to produce ACE files at. If omitted, data is produced at room temperature (293.6 K).
acer (bool or str, optional) – Flag indicating if acer should be run. If a string is give, write the resulting
ace
file to this location. Path of ACE file to write. Defaults to"ace"
xsdir (str, optional) – Path of xsdir file to write. Defaults to
"xsdir"
in the same directory asacer
output_dir (str, optional) – Directory to write output for requested modules. If not provided and at least one of
[pendf, broadr, heatr, gaspr, purr, acer]
isTrue
, then write output files to current directory. If given, must be a path to a directory.pendf (str, optional) – Path of pendf file to write. If omitted, the pendf file is not saved.
error (float, optional) – Fractional error tolerance for NJOY processing
broadr (bool or str, optional) – Indicating whether to Doppler broaden XS when running NJOY. If string, write the output tape to this file.
heatr (bool or str, optional) – Indicating whether to add heating kerma when running NJOY. If string, write the output tape to this file.
gaspr (bool or str, optional) – Indicating whether to add gas production data when running NJOY. If string, write the output tape to this file.
purr (bool or str, optional) – Indicating whether to add probability table when running NJOY. If string, write the output tape to this file.
evaluation (openmc.data.endf.Evaluation, optional) – If the ENDF file contains multiple material evaluations, this argument indicates which evaluation should be used.
smoothing (bool, optional) – If the smoothing option (ACER card 6) is on (True) or off (False).
**kwargs – Keyword arguments passed to
openmc.data.njoy.run()
- Raises
subprocess.CalledProcessError – If the NJOY process returns with a non-zero status
IOError – If
output_dir
does not point to a directory