- openpnm.models.misc.simple_equations.linear(target, m, b, prop)¶
Calculates a property as a linear function of a given property
target (Base) – The object for which these values are being calculated. This controls the length of the calculated array, and also provides access to other necessary thermofluid properties.
m (floats) – Slope and intercept of the linear corelation
b (floats) – Slope and intercept of the linear corelation
prop (str) – The dictionary key containing the independent variable or phase property to be used in the correlation.
value – Array containing
m * target[prop] + b.
- Return type