mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
add get_molar_mass() method to material and fixed two other issues
This commit is contained in:
parent
11651b3778
commit
80bf6c7528
4 changed files with 53 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ o = openmc.Element('O')
|
|||
# Instantiate some Materials and register the appropriate Nuclides
|
||||
uo2 = openmc.Material(material_id=1, name='UO2 fuel at 2.4% wt enrichment')
|
||||
uo2.set_density('g/cm3', 10.29769)
|
||||
uo2.add_element(u, 1., enrichment=0.024)
|
||||
uo2.add_element(u, 1., enrichment=2.4)
|
||||
uo2.add_element(o, 2.)
|
||||
|
||||
helium = openmc.Material(material_id=2, name='Helium for gap')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue