Hello, sorry for being late. Thank you in advance
Material definition
flibe = openmc.Material(name = ‘flibe’) # FLiBe breeder, made of Li2BeF4
flibe.add_element(‘Li’, 2.0)
flibe.add_element(‘Be’, 1.0)
flibe.add_element(‘F’, 4.0)
flibe.set_density(‘g/cm3’, 1.94)
Lu176 = openmc.Material(name = ‘Lu’)
Lu176.add_nuclide(‘Lu176’,1)
Lu176.set_density(‘g/cm3’,9.84)
breeder = openmc.Material.mix_materials([flibe,Lu176],[0.99, 0.01],‘wo’)
Tally definition
tally = openmc.Tally(name = ‘tally’)
tally.filters = [openmc.MaterialFilter(Lu176)]
tally.scores = [‘(n,gamma)’]
tallies_file.append(tally)
Obviously I have reported only the relevant part of the codes. This gives me an error on the tally after running, that says “Could not find material 11 specified on tally filter” (where material 11 is lutetium).
I can assume that maybe the information on the single nuclide (or element) is lost when I do the mixture material.
Thank you very much for helping!!
p.s. sorry if the code is not well written, those are my first approaches to OpenMC 