Conversion from volume fraction to mass fraction of antifreeze-water mixture at specified temperature.
The density function is only valid for mass fractions up to
X_a_max. Therefore, linear extrapolation, using the
slope of the density function at X_a_max, is used to
get the density of glycol at X_a=1.
function volumeToMassFraction extends Modelica.Icons.Function; input Real phi(final min = 0, max = 1, final unit = "1") "Volume fraction of the mixture"; input Modelica.Units.SI.Temperature T "Temperature of antifreeze-water mixture"; output Modelica.Units.SI.SpecificVolume y(min = X_a_min, max = X_a_max) "Mass fraction of the mixture"; end volumeToMassFraction;