Hi all,
I’m experimenting with converting ENDF formatted files into .h5 and have had success with using openmc.data.IncidentNeutron.from_njoy for regular neutron sub-libraries but I’m running into an error with openmc.data.ThermalScattering.from_njoy when trying to convert CH2/polyethylene data:
running the following code:
url = ‘https://t2.lanl.gov/nis/data/data/ENDFB-VII-thermal/HinCH2’
filename, headers = urllib.request.urlretrieve(url, ‘poly.endf’)
poly = openmc.data.ThermalScattering.from_njoy(‘h1.endf’,‘poly.endf’, temperatures=[300.], stdout=True)
poly.export_to_hdf5(‘poly.h5’, ‘w’)
this results in the following output:
error in calcem desired temperature not found.
STOP 77
Traceback (most recent call last):
File “/home/llm/openMCtest/DataConverter.py”, line 32, in
poly = openmc.data.ThermalScattering.from_njoy(‘h1.endf’,‘poly.endf’, temperatures=[300.], stdout=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/llm/miniconda3/envs/openmc-env/lib/python3.12/site-packages/openmc/data/thermal.py”, line 916, in from_njoy
make_ace_thermal(filename, filename_thermal, temperatures, **kwargs)
File “/home/llm/miniconda3/envs/openmc-env/lib/python3.12/site-packages/openmc/data/njoy.py”, line 657, in make_ace_thermal
run(commands, tapein, tapeout, **kwargs)
File “/home/llm/miniconda3/envs/openmc-env/lib/python3.12/site-packages/openmc/data/njoy.py”, line 281, in run
raise CalledProcessError(njoy.returncode, njoy_exec,
subprocess.CalledProcessError: Command ‘njoy’ returned non-zero exit status 77.
I suspect I’m doing something wrong with the “filename” argument for from_njoy as I’m not really sure what file I’m supposed to be inputting there.
any assistance would be greatly appreciated.
-Lewis