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.
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'}
- 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:
- getMaxBound(var) float[source]
Returns the minimum bound for the requested variable.
- Returns:
Maximum valid value
- Return type: