This function returns the density as function of p and h including partial derivatives. The water/steam functions are computed according to inth2o.
Author: | Haiko Steuer | SCD |
Checked by: | ||
Protection class: | ||
Used Dymola version: |
function rho_ph_dpdh import SI = Modelica.SIunits; input SI.Pressure p "Pressure"; input SI.SpecificEnthalpy h "Specific enthalpy"; output SI.Density rho "Density"; output Real drhodp(unit = "kg/(m3.Pa)") "partial derivative of rho wrt p"; output Real drhodh(unit = "(kg.kg)/(m3.J)") "partial derivative of rho wrt h"; end rho_ph_dpdh;