armi.matProps.interpolationFunctions module
Some basic interpolation routines.
- armi.matProps.interpolationFunctions.findIndex(val: float, x: list) int[source]
Find the location of the provided value in the provided collection.
- Parameters:
val (float) – Value whose index is needed in x
x (list) – List of numbers
- Returns:
Integer containing index wherein x[i] <= Tc <= x[i+1]
- Return type:
int
- armi.matProps.interpolationFunctions.linearLinear(Tc: float, x: list, y: list) float[source]
Find the approximate value on a XY table assuming a linear-linear curve.
- Parameters:
Tc (float) – Independent variable at which an interpolation value is desired.
x (list) – List of independent variable values
y (list) – List of dependent variable values
- Returns:
Float containing final interpolation value based on a linear-linear interpolation.
- Return type:
float
- armi.matProps.interpolationFunctions.logLinear(Tc: float, x: list, y: list) float[source]
Find the approximate value on a XY table assuming a log-linear curve.
- Parameters:
Tc (float) – Independent variable at which an interpolation value is desired.
x (list) – List of independent variable values
y (list) – List of dependent variable values
- Returns:
Float containing final interpolation value based on a log-linear interpolation.
- Return type:
float