armi.matProps.materialType module
Some definition of material types: fluid, fuel, metal, etc.
- class armi.matProps.materialType.MaterialType(value: int = 0)[source]
Bases:
objectA container for the methods used to differentiate between the types of materials.
The MaterialType class is used to determine whether the material contain ASME, fluid, fuel, or metal properties. It may also be used for the phase of the material.
Constructor for MaterialType class.
- Parameters:
value (int) – Integer enum value denoting material type.
- types = {'ASME2015': 16, 'ASME2017': 32, 'ASME2019': 64, 'Ceramic': 8, 'Fluid': 4, 'Fuel': 1, 'Metal': 2}
- static fromString(name: str) MaterialType[source]
Provides MaterialType object from a user provided string.
- Parameters:
name (str) – String from which a MaterialType object will be derived.
- Return type: