packageWater
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.
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
| Name | Description |
|---|---|
| BaseProperties | Base properties |
| enthalpyOfLiquid | Return the specific enthalpy of liquid |
Revisions
-
June 6, 2015, by Michael Wetter:
SetAbsolutePressure(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 useMedium.p_defaultas 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 ofBaseProperties.TfromModelica.SIunits.TemperaturetoTemperature. Otherwise, it has a different start value thanMedium.T, which causes an error if IBPSA.Media.Examples.WaterProperties is translated in pedantic mode. This fixes #266. -
June 5, 2015, by Michael Wetter:
AddedstateSelectattribute inBaseProperties.Tto allow correct use ofpreferredMediumStateas described in Modelica.Media.Interfaces.PartialMedium, and setpreferredMediumState=falseto keep the same states as were used before. This is for #260. -
June 5, 2015, by Michael Wetter:
RemovedThermodynamicStatedeclaration 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:
AddedInline=truefor issue 227. -
February 25, 2015, by Michael Wetter:
RemovedstateSelectattribute 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.