armi.matProps.material module
How matProps defines a material class.
- class armi.matProps.material.MatPropsMaterial(yamlPath=None)[source]
Bases:
objectThe MatPropsMaterial class is a generic container for all material types, whether they contain ASME properties, fluid properties, or steel properties.
It may be necessary to have multiple MatPropsMaterial definitions for a single material containing different phases.
The ARMI matProps package can build a MatPropsMaterial object from a custom YAML format. This file format is flexible and extensible. It is designed around the idea that mostly what scientists and engineers want from a material in software is the ability to define it in terms of nuclide fractions and properties. In particular, the most work in this code is to allow users to define material properties (like density) using simple mathematical syntax or tabular data.
Constructor for MatPropsMaterial class.
- validFileFormatVersions = [3.0, 'TESTS']
- YAML_PATH = None
- materialType
Enum represting type for the MatPropsMaterial object
- composition
List of Constituent objects representing composition of MatPropsMaterial.
- name
Name of MatPropsMaterial object.
- yamlPath
Path to the YAML file that was loaded to build this instance.
- saved() bool[source]
Returns a bool value indicating whether the MatPropsMaterial has been stored internally in the matProps.materials map via matProps.addMaterial().
- static dataCheckMaterialFile(filePath, rootNode)[source]
This is a partial data check of the material data file.
Checks the first level of data keywords and also check that the file format is a valid version.
- static getValidFileFormatVersions()[source]
Get a vector of strings with all of the valid file format versions.
- static getNode(node: dict, subnodeName: str)[source]
Searches a node for a child element and returns it.