function setState_phX_der
input AbsolutePressure p "Pressure";
input SpecificEnthalpy h "Specific enthalpy";
input MassFraction X[:] = reference_X "Mass fractions";
input FixedPhase 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";
input Real der_X[:] "Time derivative of mass fractions";
output ThermodynamicState der_state "Time derivative of thermodynamic state";
end setState_phX_der;