Compute isochoric specific heat capacity inside the two-phase region
function cv2Phase 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"; end cv2Phase;