diff --git a/openmc/data/data.py b/openmc/data/data.py index e34ab8d462..b2ab9462a9 100644 --- a/openmc/data/data.py +++ b/openmc/data/data.py @@ -4,6 +4,7 @@ import os import re from warnings import warn + # Isotopic abundances from Meija J, Coplen T B, et al, "Isotopic compositions # of the elements 2013 (IUPAC Technical Report)", Pure. Appl. Chem. 88 (3), # pp. 293-306 (2013). The "representative isotopic abundance" values from diff --git a/openmc/material.py b/openmc/material.py index 542ed90282..2bb461b02a 100644 --- a/openmc/material.py +++ b/openmc/material.py @@ -530,8 +530,9 @@ class Material(IDManagerMixin): # Allow for element identifier to be given as a symbol or name if len(element)>2: el = element.lower() - element = openmc.data.ELEMENT_SYMBOL.get(el,"empty") - if element == "empty": + if el in openmc.data.ELEMENT_SYMBOL: + element = openmc.data.ELEMENT_SYMBOL[el] + else: msg = 'Element name "{}" not recognised'.format(el) raise ValueError(msg)