I am a beginner in using openMC. When I used convert_lib80x.py to convert Lib80x ACE files to the respective Hdf5 files for use in openMC, error is encountered saying that
Traceback (most recent call last):
File “convert_lib80x.py”, line 83, in
data = openmc.data.IncidentNeutron.from_ace(p, ‘mcnp’)
File “/home/sri/thilagam/thils/openmc-build-0.11.0/openmc/data/neutron.py”, line 587, in from_ace
ace = get_table(ace_or_filename)
File “/home/sri/thilagam/thils/openmc-build-0.11.0/openmc/data/ace.py”, line 188, in get_table
File “/home/sri/thilagam/thils/openmc-build-0.11.0/openmc/data/ace.py”, line 241, in init
self._read_ascii(fh, table_names, verbose)
File “/home/sri/thilagam/thils/openmc-build-0.11.0/openmc/data/ace.py”, line 416, in _read_ascii
assert xss.size == nxs + 1
Kindly help to resolve the issue.
Hi @swathythila2. There was an error in the original ENDF/B-VIII.0 evaluation for B10 that leads to some strange behavior in the ACE file, which is why it trips up OpenMC when trying to parse the file. That being said, the convert_lib80x.py script has some logic to modify the B10 files:
I’m not sure why you’re still seeing this error when it should have been accounted for. In any event, we have pregenerated HDF5 libraries (including the converted Lib80x) available here that should give you what you need.
Thank you for your kind and prompt reply.
Yeah, I could understand that the additional script is to take care of error in the original ENDF/B file. But, I am also not sure why I am getting this error message. Actually, I wanted to learn the basic things starting from the conversion of ACE to HDF5 files. That’s why I tried this.
Anyhow, I have taken boron files from the link which you have shared.
Thanks for sharing the same.