armi.matProps.function module
Generic class for a function to be defined in a YAML.
- class armi.matProps.function.Function(mat, prop)[source]
Bases:
objectAn base class for computing material Properties. The word “function” here is used in the mathematical sense, to describe a generic mathematical curve. The various Function types are read in from YAML, and interpreted at run time. The sub-classes of Function have specific requirements on the YAML format.
Implementation: The matProps package represents any material property as a function of 1 or more independent variables. I_ARMI_MAT_PROPERTIES2The matProps materials tooling uses this generic
Functionclass to define material properties like density, heat capacity, or linear expansion coefficient. This is a powerful system that allows for a broad range of mathematical and tabular representations of the material property.Constructor for base Function class.
- Parameters:
mat (Material) – Material object with which this Function is associated
prop (Property) – Property that is represented by this Function
- FUNCTION_NODES = {'equation', 'functions', 'reference temperature', 'tabulated data', 'type', 'value'}
- material
A pointer back to the parent Material for this Function.
- property
The Property this Function represents.
- tableData
A TableFunction containing verification data for this specific function. Note that for actual TableFunction instances, the tableData property is NULL.
- getReferenceTemperature()[source]
Returns the reference temperature, in Celcius, if it is defined.
- Returns:
Reference temperature, in Celcius
- Return type:
- getIndependentVariables()[source]
Returns the independent variables that are required for this function.
- Returns:
list of independent variable strings
- Return type:
- getMinBound(var) float[source]
Returns the minimum bound for the requested variable.
- Returns:
Minimum valid value
- Return type: