.Buildings.Media.Antifreeze.Functions.EthyleneGlycolWater.volumeToMassFraction

Returns the mass fraction of the mixture for a given volume fraction

Information

Conversion from volume fraction to mass fraction of antifreeze-water mixture at specified temperature.

Implementation

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.

Interface

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;

Revisions


Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos