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 SI.MassFraction x "Vapour mass fraction"; input SI.Temperature T "Temperature"; input SI.Pressure p "Pressure"; output SI.SpecificHeatCapacity cv "Isochoric specific heat capacity"; output Real dpT "Derivative of pressure w.r.t. temperature"; end cv2Phase;