mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
enable polymorphisme for mix_materials (#3180)
Co-authored-by: r.haddad <r.haddad@naarea.fr>
This commit is contained in:
parent
82a6f9e40b
commit
9c9a13c48e
1 changed files with 1 additions and 1 deletions
|
|
@ -1536,7 +1536,7 @@ class Material(IDManagerMixin):
|
|||
if name is None:
|
||||
name = '-'.join([f'{m.name}({f})' for m, f in
|
||||
zip(materials, fracs)])
|
||||
new_mat = openmc.Material(name=name)
|
||||
new_mat = cls(name=name)
|
||||
|
||||
# Compute atom fractions of nuclides and add them to the new material
|
||||
tot_nuclides_per_cc = np.sum([dens for dens in nuclides_per_cc.values()])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue