linear#

linear(target, m, b, prop)[source]#

Calculates a property as a linear function of a given property

Parameters:
  • 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.

Returns:

value – Array containing m * target[prop] + b.

Return type:

ndarray