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

TypeNameDefaultDescription
Modelica.Units.SI.TemperatureTMin273.15 + 100Minimum temperature for the simulation
Modelica.Units.SI.TemperatureTMax273.15 + 179.886Maximum temperature for the simulation
Realtol1E-8Numerical tolerance

Components

TypeNameDefaultDescription
MediumSte.ThermodynamicStatesatSaturation state
Modelica.Units.SI.PressurepSatSaturation pressure
Modelica.Units.SI.TemperatureTSat0Starting saturation temperature
Modelica.Units.SI.TemperatureTSatSaturation temperature
Modelica.Units.NonSI.Temperature_degCTSat_degCCelsius saturation temperature
Modelica.Units.SI.SpecificEnthalpyhlvIF97Enthalpy of vaporization, IF97 formulation
Modelica.Units.SI.SpecificEnthalpyhlvWatSteEnthalpy of vaporization, water and steam medium models
Modelica.Units.SI.SpecificEnthalpyhlIF97Enthalpy of saturated liquid, IF97
Modelica.Units.SI.SpecificEnthalpyhlWatEnthalpy of saturated liquid, water medium
Modelica.Units.SI.SpecificEnthalpyhvIF97Enthalpy of saturated vapor, IF97
Modelica.Units.SI.SpecificEnthalpyhvSteEnthalpy of saturated vapor, steam medium
RealhlvErrEnthalpy of vaporization percent error
RealhlErrEnthalpy of saturated liquid percent error
RealhvErrEnthalpy of saturated vapor percent error

Contents

NameDescription
MediumSteSteam medium model
MediumWatLiquid water medium model
enthalpyOfSaturatedLiquidprotectedReturn enthalpy of saturated liquid
enthalpyOfSaturatedVaporprotectedReturn enthalpy of saturated liquid
enthalpyOfVaporizationprotectedReturn enthalpy of vaporization

Revisions

  • November 8, 2020, by Kathryn Hinkelman:
    First implementation.