function setState_px input AbsolutePressure p "Pressure"; input MassFraction x "Vapour quality"; output ThermodynamicState state "Thermodynamic state record"; end setState_px;