openmc.data.njoy.make_ace_thermal¶
- openmc.data.njoy.make_ace_thermal(filename, filename_thermal, temperatures=None, ace=None, xsdir=None, output_dir=None, error=0.001, iwt=2, evaluation=None, evaluation_thermal=None, table_name=None, zaids=None, nmix=None, **kwargs)[source]¶
Generate thermal scattering ACE file from ENDF files
- Parameters
filename (str) – Path to ENDF neutron sublibrary file
filename_thermal (str) – Path to ENDF thermal scattering sublibrary file
temperatures (iterable of float, optional) – Temperatures in Kelvin to produce data at. If omitted, data is produced at all temperatures given in the ENDF thermal scattering sublibrary.
ace (str, optional) – Path of ACE file to write. Default to
"ace"
.xsdir (str, optional) – Path of xsdir file to write. Defaults to
"xsdir"
in the same directory asace
output_dir (str, optional) – Directory to write ace and xsdir files. If not provided, then write output files to current directory. If given, must be a path to a directory.
error (float, optional) – Fractional error tolerance for NJOY processing
iwt (int) – iwt parameter used in NJOY/ACER card 9
evaluation (openmc.data.endf.Evaluation, optional) – If the ENDF neutron sublibrary file contains multiple material evaluations, this argument indicates which evaluation to use.
evaluation_thermal (openmc.data.endf.Evaluation, optional) – If the ENDF thermal scattering sublibrary file contains multiple material evaluations, this argument indicates which evaluation to use.
table_name (str, optional) – Name to assign to ACE table
zaids (list of int, optional) – ZAIDs that the thermal scattering data applies to
nmix (int, optional) – Number of atom types in mixed moderator
**kwargs – Keyword arguments passed to
openmc.data.njoy.run()
- Raises
subprocess.CalledProcessError – If the NJOY process returns with a non-zero status