Return ideal gas constant derivative as a function from thermodynamic d, T and X, remains valid with liquid water in the mixture
function r_dTX_der input SI.Density d "Density"; input SI.Temperature T "Temperature"; input SI.MassFraction X[:] "Mass fractions of moist air"; input Real dd(unit = "kg/(m3.s)") "Density derivative"; input Real dT(unit = "K/s") "Temperature derivative"; input Real dX[:](each unit = "1/s") "Composition derivative"; output Real R_der(unit = "J/(kg.s.K)") "Time derivative of specific enthalpy"; end r_dTX_der;