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.
Name | Description |
---|---|
density | Returns constant density |
specificInternalEnergy | Return specific internal energy |
Type | Name | Default | Description |
---|---|---|---|
ThermodynamicState | state |
Type | Name | Description |
---|---|---|
Density | d | Density [kg/m3] |
redeclare replaceable function extends density "Returns constant density" algorithm d := d_const; end density;
Type | Name | Default | Description |
---|---|---|---|
ThermodynamicState | state |
Type | Name | Description |
---|---|---|
SpecificEnergy | u | Specific internal energy [J/kg] |
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;