montepy.data_inputs.element module#
- class montepy.data_inputs.element.Element(Z)#
Bases:
object
Class to represent an element e.g., Aluminum.
- Parameters:
Z (int) – the Z number of the element
- Raises:
UnknownElement – if there is no element with that Z number.
- property Z#
The atomic number for this Element.
- Returns:
the atomic number
- Return type:
int
- classmethod get_by_name(name)#
Get an element by it’s name.
E.g., get the element with Z=1 from “hydrogen”.
- Returns:
the element with this name
- Return type:
- Raises:
UnknownElement – if there is no element with that name.
- classmethod get_by_symbol(symbol)#
Get an element by it’s symbol.
E.g., get the element with Z=1 from “H”.
- Returns:
the element with this symbol
- Return type:
- Raises:
UnknownElement – if there is no element with that symbol.
- property name#
The name of the element.
- Returns:
the element’s name.
- Return type:
str
- property symbol#
The atomic symbol for this Element.
- Returns:
the atomic symbol
- Return type:
str