openmc.data.njoy.make_ace_thermal

openmc.data.njoy.make_ace_thermal(filename, filename_thermal, temperatures=None, ace='ace', xsdir='xsdir', error=0.001, iwt=2, evaluation=None, evaluation_thermal=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
  • xsdir (str, optional) – Path of xsdir file to write
  • error (float, optional) – Fractional error tolerance for NJOY processing
  • iwt (int) – iwt parameter used in NJOR/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.
  • **kwargs – Keyword arguments passed to openmc.data.njoy.run()
Raises:

subprocess.CalledProcessError – If the NJOY process returns with a non-zero status