function s_pTX_der extends Modelica.Icons.Function; input SI.Pressure p "Pressure"; input SI.Temperature T "Temperature"; input SI.MassFraction X[:] "Mass fractions of moist air"; input Real dp(unit = "Pa/s") "Derivative of pressure"; input Real dT(unit = "K/s") "Derivative of temperature"; input Real dX[nX](each unit = "1/s") "Derivative of mass fractions"; output Real ds(unit = "J/(kg.K.s)") "Specific entropy at p, T, X"; end s_pTX_der;
2012-01-12 Stefan Wischhusen: Initial Release.
2019-05-14 Stefan Wischhusen: Corrected calculation.
2019-09-10 Stefan Wischhusen: Corrected pressure influence (p < p_ref).