Compute isochoric specific heat capacity inside the two-phase region
function cv2Phase extends Modelica.Icons.Function; import Modelica.Units.SI; 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;