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