packageWater

Package with model for liquid water with constant density

Extends from Modelica.Media.Water.ConstantPropertyLiquidWater, Modelica.Icons.Package.

Information

This medium package models liquid water.

The mass density is computed using a constant value of 995.586 kg/s. For a medium model in which the density is a function of temperature, use IBPSA.Media.Specialized.Water.TemperatureDependentDensity which may have considerably higher computing time.

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.

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. Water is modeled as an incompressible liquid. There are no phase changes.

Contents

NameDescription
BasePropertiesBase properties
enthalpyOfLiquidReturn the specific enthalpy of liquid

Revisions

  • June 6, 2015, by Michael Wetter:
    Set AbsolutePressure(start=p_default) to avoid a translation error if IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource (if used with water instead of air) is translated in pedantic mode in Dymola 2016. The reason is that pressures use Medium.p_default as start values, but Modelica.Media.Interfaces.Types sets a default value of 1E-5. A similar change has been done for pressure and density. This fixes #266.
  • June 6, 2015, by Michael Wetter:
    Changed type of BaseProperties.T from Modelica.SIunits.Temperature to Temperature. Otherwise, it has a different start value than Medium.T, which causes an error if IBPSA.Media.Examples.WaterProperties is translated in pedantic mode. This fixes #266.
  • June 5, 2015, by Michael Wetter:
    Added stateSelect attribute in BaseProperties.T to allow correct use of preferredMediumState as described in Modelica.Media.Interfaces.PartialMedium, and set preferredMediumState=false to keep the same states as were used before. This is for #260.
  • June 5, 2015, by Michael Wetter:
    Removed ThermodynamicState declaration as this lead to the error "Attempting to redeclare record ThermodynamicState when the original was not replaceable." in Dymola 2016 using the pedantic model check.
  • May 1, 2015, by Michael Wetter:
    Added Inline=true for issue 227.
  • February 25, 2015, by Michael Wetter:
    Removed stateSelect attribute on pressure as this caused IBPSA.Examples.Tutorial.SpaceCooling.System3 to fail with the error message "differentiated if-then-else was not continuous".
  • October 15, 2014, by Michael Wetter:
    Reimplemented media based on 446aa83.
  • November 15, 2013, by Michael Wetter:
    Complete new reimplementation because the previous version had the option to add a compressibility to the medium, which has never been used.