mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Updated openmc-ace-to-hdf5 to generate the libraries for us and fixed bugs as found when developing that script. Also updated the Format description in nuclear_data.rst
This commit is contained in:
parent
3b65dde0fd
commit
63b3c6dbd0
5 changed files with 55 additions and 39 deletions
|
|
@ -130,14 +130,12 @@ for filename in ace_libraries:
|
|||
if xs.endswith('c'):
|
||||
# Continuous-energy neutron data
|
||||
if name not in nuclides:
|
||||
neutron = openmc.data.IncidentNeutron.from_ace(
|
||||
try:
|
||||
neutron = openmc.data.IncidentNeutron.from_ace(
|
||||
table, args.metastable)
|
||||
# try:
|
||||
# neutron = openmc.data.IncidentNeutron.from_ace(
|
||||
# table, args.metastable)
|
||||
# except Exception as e:
|
||||
# print('Failed to convert {}: {}'.format(table.name, e))
|
||||
# continue
|
||||
except Exception as e:
|
||||
print('Failed to convert {}: {}'.format(table.name, e))
|
||||
continue
|
||||
|
||||
# Fission energy release data, if available
|
||||
if args.fission_energy_release is not None:
|
||||
|
|
@ -172,7 +170,11 @@ for filename in ace_libraries:
|
|||
elif xs.endswith('t'):
|
||||
# Thermal scattering data
|
||||
if name not in nuclides:
|
||||
thermal = openmc.data.ThermalScattering.from_ace(table)
|
||||
try:
|
||||
thermal = openmc.data.ThermalScattering.from_ace(table)
|
||||
except Exception as e:
|
||||
print('Failed to convert {}: {}'.format(table.name, e))
|
||||
continue
|
||||
print('Converting {} (ACE) to {} (HDF5)'.format(table.name,
|
||||
thermal.name))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue