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 BuildingSystems.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.
Density, specific heat capacity, thermal conductivity and viscosity are constant. Water is modeled as an incompressible liquid. There are no phase changes.
Name | Description |
---|---|
BaseProperties | Base properties (p, d, T, h, u, R, MM and X and Xi) of a medium |
enthalpyOfLiquid | Return the specific enthalpy of liquid |
BaseProperties
to avoid event-triggering assertions.AbsolutePressure(start=p_default)
to avoid
a translation error if
BuildingSystems.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.
BaseProperties.T
from
Modelica.Units.SI.Temperature
to Temperature
.
Otherwise, it has a different start value than Medium.T
, which
causes an error if
BuildingSystems.Media.Examples.WaterProperties
is translated in pedantic mode.
This fixes
#266.
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.
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.
Inline=true
for
issue 227.
stateSelect
attribute on pressure as this caused
BuildingSystems.Examples.Tutorial.SpaceCooling.System3
to fail with the error message
"differentiated if-then-else was not continuous".