armi.matProps.constituent module
Basic material composition.
- class armi.matProps.constituent.Constituent(name: str, minValue: float, maxValue: float, isBalance: bool)[source]
Bases:
objectMakeup of the Material.composition.
Constructor for Constituent object.
- Parameters:
- name
Name of the constituent
- minValue
Min value of the constituent
- maxValue
Max value of the constituent
- isBalance
Flag for indicating if the consitituent is intended to the balance of the composition
- static parseComposition(node)[source]
Method which parses “composition” node from yaml file and returns container of Contituent objects.
Returns list of Constituent objects. Each element is constructed from a map element in the “composition node”.
- Parameters:
node (dict) – YAML object representing composition node.
- Returns:
list – List of Constituent objects representing elements of Material.
- Return type: