modelSteamSaturationConsistencyCheck
Model that checks the consistency of saturated property functions
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This example checks the consistency of satuated property functions across the steam and liquid water mediums. It also checks if the inversion of saturated temperature and saturated pressure is implemented correctly for the steam model.
Errors are presented as percent differences between the standard property functions - e.g medium.specificEnthalpy(saturatedState) - and the IF97 saturated property functions as the baseline.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Temperature | TMin | 273.15 + 100 | Minimum temperature for the simulation |
| Modelica.Units.SI.Temperature | TMax | 273.15 + 179.886 | Maximum temperature for the simulation |
| Real | tol | 1E-8 | Numerical tolerance |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| MediumSte.ThermodynamicState | sat | Saturation state | |
| Modelica.Units.SI.Pressure | pSat | Saturation pressure | |
| Modelica.Units.SI.Temperature | TSat0 | Starting saturation temperature | |
| Modelica.Units.SI.Temperature | TSat | Saturation temperature | |
| Modelica.Units.NonSI.Temperature_degC | TSat_degC | Celsius saturation temperature | |
| Modelica.Units.SI.SpecificEnthalpy | hlvIF97 | Enthalpy of vaporization, IF97 formulation | |
| Modelica.Units.SI.SpecificEnthalpy | hlvWatSte | Enthalpy of vaporization, water and steam medium models | |
| Modelica.Units.SI.SpecificEnthalpy | hlIF97 | Enthalpy of saturated liquid, IF97 | |
| Modelica.Units.SI.SpecificEnthalpy | hlWat | Enthalpy of saturated liquid, water medium | |
| Modelica.Units.SI.SpecificEnthalpy | hvIF97 | Enthalpy of saturated vapor, IF97 | |
| Modelica.Units.SI.SpecificEnthalpy | hvSte | Enthalpy of saturated vapor, steam medium | |
| Real | hlvErr | Enthalpy of vaporization percent error | |
| Real | hlErr | Enthalpy of saturated liquid percent error | |
| Real | hvErr | Enthalpy of saturated vapor percent error |
Contents
| Name | Description |
|---|---|
| Steam medium model | |
| Liquid water medium model | |
| Return enthalpy of saturated liquid | |
| Return enthalpy of saturated liquid | |
| Return enthalpy of vaporization |
Revisions
-
November 8, 2020, by Kathryn Hinkelman:
First implementation.