Buildings.Media.ConstantPropertyLiquidWater

Package with model for liquid water with constant properties

Information


This medium model is identical to Modelica.Media.Water.ConstantPropertyLiquidWater, except that it implements the function to computes the density. This function is not implemented in Modelica.Media.Water.ConstantPropertyLiquidWater.

Package Content

NameDescription
Buildings.Media.ConstantPropertyLiquidWater.density density Returns constant density
Buildings.Media.ConstantPropertyLiquidWater.specificInternalEnergy specificInternalEnergy Return specific internal energy


Buildings.Media.ConstantPropertyLiquidWater.density Buildings.Media.ConstantPropertyLiquidWater.density

Returns constant density

Inputs

TypeNameDefaultDescription
ThermodynamicStatestate  

Outputs

TypeNameDescription
DensitydDensity [kg/m3]

Modelica definition

redeclare replaceable function extends density 
  "Returns constant density" 
algorithm 
   d := d_const;
end density;

Buildings.Media.ConstantPropertyLiquidWater.specificInternalEnergy Buildings.Media.ConstantPropertyLiquidWater.specificInternalEnergy

Return specific internal energy

Inputs

TypeNameDefaultDescription
ThermodynamicStatestate  

Outputs

TypeNameDescription
SpecificEnergyuSpecific internal energy [J/kg]

Modelica definition

redeclare replaceable function extends specificInternalEnergy 
  "Return specific internal energy" 
 input ThermodynamicState state;
 output SpecificEnergy u "Specific internal energy";
algorithm 
  u := cv_const * (state.T-T0);
end specificInternalEnergy;

HTML-documentation generated by Dymola Tue Sep 30 14:24:46 2008.