mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Fix use of enrichment with Material.add_elements_from_formula
This commit is contained in:
parent
d426b3a24e
commit
46f322fe0f
1 changed files with 2 additions and 0 deletions
|
|
@ -654,6 +654,8 @@ class Material(IDManagerMixin):
|
|||
if enrichment_target is not None and element == re.sub(r'\d+$', '', enrichment_target):
|
||||
self.add_element(element, percent, percent_type, enrichment,
|
||||
enrichment_target, enrichment_type)
|
||||
elif enrichment is not None and enrichment_target is None and element == 'U':
|
||||
self.add_element(element, percent, percent_type, enrichment)
|
||||
else:
|
||||
self.add_element(element, percent, percent_type)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue