Compute isochoric specific heat capacity inside the two-phase region and derivative of pressure w.r.t. temperature
function cvdpT2Phase extends Modelica.Icons.Function; input PhaseBoundaryProperties liq "Properties on the boiling curve"; input PhaseBoundaryProperties vap "Properties on the condensation curve"; input Units.SI.MassFraction x "Vapour mass fraction"; input Units.SI.Temperature T "Temperature"; input Units.SI.Pressure p "Properties"; output Units.SI.SpecificHeatCapacity cv "Isochoric specific heat capacity"; output Real dpT "Derivative of pressure w.r.t. temperature"; end cvdpT2Phase;