This function returns the time derivative of the temperature as function of p and h according to the chain rule. The partial derivatives are build with help of TTSE functions.
Author: | Julien Bonifay | SCD |
Checked by: | ||
Protection class: | internal |
function der_T_ph import SI = Modelica.SIunits; input SI.AbsolutePressure p "Pressure"; input SI.SpecificEnthalpy h "Specific Enthalpy"; input Integer phase = 0 "2 for two-phase, 1 for one-phase, 0 if not known"; input Real der_p(unit = "Pa/s") "Time derivative of pressure"; input Real der_h(unit = "J/(kg.s)") "Time derivative of specific enthalpy"; output Real der_T(unit = "K/s") "Time derivative of temperature"; end der_T_ph;