No cross_sections.xml file was specified in materials.xml or in the OPENMC_CROSS_SECTIONS

aaa.ipynb (11.7 KB)
Hello, i am receiving this error even i have a cross section file. Can not find what is the problem. help me please to find an error.

Hello @umarov, your syntax for defining the cross_sections.xml file is incorrect. cross_sections needs to be defined in the following way:

openmc.Materials.cross_sections = '/mnt/d/openmc/endfb80_hdf5/cross_sections.xml'

Having replaced this in your .ipynb script and replacing the path directory with my own, the script ran without error.
aaa.ipynb (5.2 KB)

oh, its working! Appreciate a lot your help!!!

1 Like