From the temperature coefficient alpha1
at temperature T1
(default 20 degC = 293.15 K)
the temperature coefficient alpha2
at temperature T2
is calculated:
alpha1 alpha2 = ------------------------ 1 + alpha1 * (T2 - T1)
function convertAlpha extends Modelica.Icons.Function; input SI.LinearTemperatureCoefficient alpha1 "Temperature coefficient at temperature 1 (default: 20 degC)"; input SI.Temperature T2 "Temperature 2"; input SI.Temperature T1 = 293.15 "Temperature 1 (default: 20 degC)"; output SI.LinearTemperatureCoefficient alpha2 "Temperature coefficient at TRef"; end convertAlpha;