From the temperature coefficient alpha20
at 20 degC
(equals to 293.15 K) the parameter alphaRef
at
TRef
alpha20 alphaRef = ------------------------------- 1 + alpha20 * (TRef - 293.15)
is determined; using this value, actual resistance
R
with respect to the actual temperature
T
is calculated by
R ------ = 1 + alphaRef * (T - TRef) RRef
where RRef
is the resistance at the reference
temperature TRef
.
function convertResistance extends Modelica.Icons.Function; input Modelica.SIunits.Resistance RRef "Resistance at TRef"; input Modelica.SIunits.Temperature TRef "Reference temperature"; input Modelica.SIunits.LinearTemperatureCoefficient alpha20 "Temperature coefficient at 20 degC"; input Modelica.SIunits.Temperature T "Actual temperature"; output Modelica.SIunits.Resistance R "Actual resistance at T"; end convertResistance;