This function returns the time derivative of the density 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_rho_ph import SI = Modelica.SIunits; input SI.Pressure 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 "time derivative of pressure"; input Real der_h "time derivative of specific enthalpy"; output Real der_rho "time derivative of density"; end der_rho_ph;