.Buildings.Media.Specialized.Water.TemperatureDependentDensity

Information

This medium package models liquid water.

The mass density is computed using a 3rd order polynomial, which yields the density as a function of temperature as shown in the figure below. Note, however, that computing density as a function of temperature can lead to considerably slower computing time compared to using Buildings.Media.Water in which the density is a constant. We therefore recommend to use Buildings.Media.Water for typical building energy simulations.

Mass density as a function of temperature

For the specific heat capacities at constant pressure and at constant volume, a constant value of 4184 J/(kg K), which corresponds to 20°C is used. The figure below shows the relative error of the specific heat capacity that is introduced by this simplification. Using a constant value for the specific heat capacity allows to compute temperature from enthalpy without having to solve an implicit equation, and therefore leads to faster simulation.

Relative variation of specific heat capacity with temperature

Thermal conductivity is calculated as a function of temperature as shown in the figure below. The correlation used to calculate the thermal conductivity is

λ(T) = λ(298.15 K) ⋅ (-1.48445+4.12292⋅(T/298.15)-1.63866⋅(T/298.15)2),

where λ(298.15 K) = 0.6065 W/(m ⋅ K) is the adopted standard value of the thermal conductivity of water at 298.15 K and 0.1 MPa.

Thermal conductivity as a function of temperature

Dynamic viscosity is calculated as the product of density and kinematic viscosity, both temperature dependent. However, the kinematic viscosity has its own temperature dependent correlation, implemented at Buildings.Media.Specialized.Water.TemperatureDependentDensity.kinematicViscosity. Results of the kinematic viscosity as a function of temperature are shown in the figure below.

Kinematic viscosity as a function of temperature

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

Limitations

Phase changes are not modeled.

Contents

NameDescription
FluidConstants
ThermodynamicStateThermodynamic state variables
BasePropertiesBase properties
densityReturn the density
dynamicViscosityReturn the dynamic viscosity
specificEnthalpyReturn the specific enthalpy
enthalpyOfLiquidReturn the specific enthalpy of liquid
specificInternalEnergyReturn the specific enthalpy
specificEntropyReturn the specific entropy
specificGibbsEnergyReturn the specific Gibbs energy
specificHelmholtzEnergyReturn the specific Helmholtz energy
isentropicEnthalpyReturn the isentropic enthalpy
isobaricExpansionCoefficientReturn the isobaric expansion coefficient
isothermalCompressibilityReturn the isothermal compressibility factor
density_derp_TReturn the partial derivative of density with respect to pressure at constant temperature
density_derT_pReturn the partial derivative of density with respect to temperature at constant pressure
density_derXReturn the partial derivative of density with respect to mass fractions at constant pressure and temperature
specificHeatCapacityCpReturn the specific heat capacity at constant pressure
specificHeatCapacityCvReturn the specific heat capacity at constant volume
thermalConductivityReturn the thermal conductivity
pressureReturn the pressure
temperatureReturn the temperature
molarMassReturn the molar mass
setState_dTXReturn thermodynamic state from d, T, and X or Xi
setState_phXReturn the thermodynamic state as function of pressure p, specific enthalpy h and composition X or Xi
setState_pTXReturn the thermodynamic state as function of p, T and composition X or Xi
setState_psXReturn the thermodynamic state as function of p, s and composition X or Xi

Revisions


Generated at 2024-04-25T18:15:59Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos