Closed RemDelaporteMathurin closed 2 years ago
Ah yes this one requires more than a string.
As the density is temperature dependent it needs an openmc material or neutronics material maker object passing in
import neutronics_material_maker as nmm
my_mat = nmm.Material.from_library(name='FLiBe', temperature=600, enrichment=60)
my_mat.openmc_material
Then pass in my_mat
to the correspondence_dict
This also gives the opportunity to enrich the Li6 content
Ah yes sorry
My workaround was:
import openmc
import openmc_dagmc_wrapper as odw
import neutronics_material_maker as nmm
# could set to dagmc.h5m if the imprinted and merged geometry is preferred
my_h5m_filename = "dagmc_not_merged.h5m"
# this links the material tags in the dagmc h5m file with materials.
# these materials are input as strings so they will be looked up in the
# neutronics material maker package
material_tag_to_material_dict = {
"lead": "Lead",
"flibe": nmm.Material.from_library(name="FLiBe", temperature=650+273.15, pressure=10.1e5, temperature_to_neutronics_code=False),
"inner_tank_wall": "eurofer",
}
materials = odw.Materials(
h5m_filename=my_h5m_filename,
correspondence_dict=material_tag_to_material_dict,
)
I didn't use the .openmc_material attribute though and it worked!
I guess it works with or without the openmc_material
attribute
I tried to run a sim using
correspondence_dict
with FLiBe but I get an error asking me to give the temperature: