packageEthyleneGlycolWater

Package with model for ethylene glycol - water with constant properties

Extends from Modelica.Media.Interfaces.PartialSimpleMedium (Medium model with linear dependency of u, h from temperature. All other quantities, especially density, are constant.).

Information

This medium package models ethylene glycol - water mixtures.

The mass density, specific heat capacity, thermal conductivity and viscosity are assumed constant and evaluated at a set temperature and mass fraction of ethylene glycol within the mixture. The dependence of the four properties are shown on the figure below.

Relative variation of specific heat capacity with temperature

The accuracy of the thermophysical properties is dependent on the temperature variations encountered during simulations. The figure below shows the relative error of the the four properties over a 10 °C range around the temperature used to evaluate the constant properties. The maximum errors are 0.8 % for mass density, 2.7 % for specific heat capacity, 3.2 % for thermal conductivity and 160 % for dynamic viscosity.

Relative variation of specific heat capacity with temperature

The figure below shows the relative error of the the four properties over a 20 °C range around the temperature used to evaluate the constant proepties. The maximum errors are 1.5 % for mass density, 5.3 % for specific heat capacity, 5.9 % for thermal conductivity and 500 % for dynamic viscosity.

Relative variation of specific heat capacity with temperature

The enthalpy is computed using the convention that h=0 if T=0 °C.

Limitations

Density, specific heat capacity, thermal conductivity and viscosity are constant. The ethylene glycol/water mixture is modeled as an incompressible liquid. There are no phase changes. The medium is limited to temperatures below 100 °C and mass fractions below 0.60. As is the case for Buildings.Media.Water, this medium package should not be used if the simulation relies on the dynamic viscosity.

Typical use and important parameters

The temperature and mass fraction must be specified for the evaluation of the constant thermophysical properties. A typical use of the package is (e.g. for a temperature of 20 °C and a mass fraction of 0.40):

Medium = Buildings.Media.Antifreeze.EthyleneGlycolWater(property_T=293.15, X_a=0.40)

Parameters

TypeNameDefaultDescription
Modelica.Media.Interfaces.Choices.IndependentVariablesThermoStates (from PartialMedium)Enumeration type for independent variables
StringmediumName (from PartialMedium)"unusablePartialMedium"Name of the medium
String[:]substanceNames (from PartialMedium){mediumName}Names of the mixture substances. Set substanceNames={mediumName} if only one substance.
String[:]extraPropertiesNames (from PartialMedium)fill("", 0)Names of the additional (extra) transported properties. Set extraPropertiesNames=fill("",0) if unused
BooleansingleState (from PartialMedium)= true, if u and d are not a function of pressure
BooleanreducedX (from PartialMedium)true= true, if medium contains the equation sum(X) = 1.0; set reducedX=true, if only one substance (see docu for details)
BooleanfixedX (from PartialMedium)false= true, if medium contains the equation X = reference_X
AbsolutePressurereference_p (from PartialMedium)101325Reference pressure of Medium: default 1 atmosphere
Temperaturereference_T (from PartialMedium)298.15Reference temperature of Medium: default 25 deg Celsius
MassFraction[nX]reference_X (from PartialMedium)fill(1/nX, nX)Default mass fractions of medium
AbsolutePressurep_default (from PartialMedium)101325Default value for pressure of medium (for initialization)
TemperatureT_default (from PartialMedium)Modelica.Units.Conversions.from_degC(20)Default value for temperature of medium (for initialization)
SpecificEnthalpyh_default (from PartialMedium)specificEnthalpy_pTX(p_default, T_default, X_default)Default value for specific enthalpy of medium (for initialization)
MassFraction[nX]X_default (from PartialMedium)reference_XDefault value for mass fractions of medium (for initialization)
ExtraProperty[nC]C_default (from PartialMedium)fill(0, nC)Default value for trace substances of medium (for initialization)
IntegernS (from PartialMedium)size(substanceNames, 1)Number of substances
IntegernX (from PartialMedium)nSNumber of mass fractions
IntegernXi (from PartialMedium)if fixedX then 0 else if reducedX then nS - 1 else nSNumber of structurally independent mass fractions (see docu for details)
IntegernC (from PartialMedium)size(extraPropertiesNames, 1)Number of extra (outside of standard mass-balance) transported properties
Real[nC]C_nominal (from PartialMedium)1.0e-6*ones(nC)Default for the nominal values for the extra properties
SpecificHeatCapacitycp_const (from PartialSimpleMedium)Constant specific heat capacity at constant pressure
SpecificHeatCapacitycv_const (from PartialSimpleMedium)Constant specific heat capacity at constant volume
Densityd_const (from PartialSimpleMedium)Constant density
DynamicViscosityeta_const (from PartialSimpleMedium)Constant dynamic viscosity
ThermalConductivitylambda_const (from PartialSimpleMedium)Constant thermal conductivity
VelocityOfSounda_const (from PartialSimpleMedium)Constant velocity of sound
TemperatureT_min (from PartialSimpleMedium)Minimum temperature valid for medium model
TemperatureT_max (from PartialSimpleMedium)Maximum temperature valid for medium model
TemperatureT0 (from PartialSimpleMedium)reference_TZero enthalpy temperature
MolarMassMM_const (from PartialSimpleMedium)Molar mass
FluidConstantsfluidConstants (from PartialSimpleMedium)Fluid constants
Modelica.Units.SI.Temperatureproperty_TTemperature for evaluation of constant fluid properties
Modelica.Units.SI.MassFractionX_aMass fraction of ethylene glycol in water

Contents

NameDescription
BasePropertiesBase properties

Revisions

  • April 15, 2026, by Michael Wetter:
    Refactored implementation to use media properties from function calls in the package Buildings.Media.Antifreeze.Functions while avoiding code duplication.
    This is for #2115.
  • April 14, 2026, by Michael Wetter:
    Corrected typo in documentation.
  • August 05, 2020, by Wen HU:
    First implementation.