packageCO2_H2O

water: CO2, pure H2O for Siemens PilotPlant

Extends from ThermalSeparation.Media.WaterBasedLiquid.BaseClasses.PartialWaterBased.

Information

This model calculates medium properties for water in the liquid, gas and two phase regions according to the IAPWS/IF97 standard, i.e., the accepted industrial standard and best compromise between accuracy and computation time. For more details see Modelica.Media.Water.IF97_Utilities. Three variable pairs can be the independent variables of the model:

  1. Pressure p and specific enthalpy h are the most natural choice for general applications. This is the recommended choice for most general purpose applications, in particular for power plants.
  2. Pressure p and temperature T are the most natural choice for applications where water is always in the same phase, both for liquid water and steam.
  3. Density d and temperature T are explicit variables of the Helmholtz function in the near-critical region and can be the best choice for applications with super-critical or near-critial states.
The following quantities are always computed:

Variable Unit Description
T K temperature
u J/kg specific internal energy
d kg/m^3 density
p Pa pressure
h J/kg specific enthalpy

In some cases additional medium properties are needed. A component that needs these optional properties has to call one of the functions listed in Modelica.Media.UsersGuide.MediumUsage.OptionalProperties and in Modelica.Media.UsersGuide.MediumUsage.TwoPhase.

Many further properties can be computed. Using the well-known Bridgman's Tables, all first partial derivatives of the standard thermodynamic variables can be computed easily.

Parameters

TypeNameDefaultDescription
Realf_psat1
Booleanpsat_Antoinefalse
Real[nSubstance]phi{1, 2.26}association factor of each substance, if this substance is to be the solvent - used for claculation of diffusion coeffcients
IntegernSubstance (from BaseMediumLiquid)2number of components
SI.Temperature[nSubstance]Tcrit (from BaseMediumLiquid)
SI.Pressure[nSubstance]pcrit (from BaseMediumLiquid)
SI.MolarVolume[nSubstance]Vcrit (from BaseMediumLiquid)
Real[nSubstance]omega (from BaseMediumLiquid)acentric factor
SI.ElectricDipoleMomentOfMolecule[nSubstance]mu (from BaseMediumLiquid)
SI.MolarMass[nSubstance]MMX (from BaseMediumLiquid)
Integer[nSubstance]eq_Tsonopoulos (from BaseMediumLiquid)no. of equation for equation a and b in Table 4-5 in Properties of Gases and Liquids, 5th ed.
Boolean[nSubstance]henry (from BaseMediumLiquid)true if liquid fugacity of substance is to be calculated with Henry's law
Boolean[nSubstance]has_etaSubstance (from BaseMediumLiquid)true if substance i provides a value for the pure dynamic viscosity at system pressure and temperature
Integer[nSubstance]ic (from BaseMediumLiquid)zeros(nSubstance)ionic charge of the components, i.e. H+ = 1, OH- = -1, H2O=0
StringmediumName (from PartialMedium)"unusablePartialMedium"Name of the medium
String[:]substanceNames (from PartialMedium){mediumName}Names of the mixture substances. Set substanceNames={mediumName} if only one substance.
String[:]extraPropertiesNames (from PartialMedium)fill("", 0)Names of the additional (extra) transported properties. Set extraPropertiesNames=fill("",0) if unused
BooleansingleState (from PartialMedium)= true, if u and d are not a function of pressure
BooleanreducedX (from PartialMedium)true= true if medium contains the equation sum(X) = 1.0; set reducedX=true if only one substance (see docu for details)
BooleanfixedX (from PartialMedium)false= true if medium contains the equation X = reference_X
AbsolutePressurereference_p (from PartialMedium)101325Reference pressure of Medium: default 1 atmosphere
Temperaturereference_T (from PartialMedium)298.15Reference temperature of Medium: default 25 deg Celsius
MassFraction[nX]reference_X (from PartialMedium)if nX == 0 then fill(0, nX) else fill(1/nX, nX)Default mass fractions of medium
AbsolutePressurep_default (from PartialMedium)101325Default value for pressure of medium (for initialization)
TemperatureT_default (from PartialMedium)Modelica.Units.Conversions.from_degC(20)Default value for temperature of medium (for initialization)
SpecificEnthalpyh_default (from PartialMedium)ThermalSeparation.Media.WaterBasedLiquid.BaseClasses.PartialMedium.specificEnthalpy_pTX(p_default, T_default, X_default)Default value for specific enthalpy of medium (for initialization)
MassFraction[nX]X_default (from PartialMedium)reference_XDefault value for mass fractions of medium (for initialization)
IntegernS (from PartialMedium)size(substanceNames, 1)Number of substances
IntegernX (from PartialMedium)if nS == 1 then 0 else nSNumber of mass fractions (= 0, if only one substance)
IntegernXi (from PartialMedium)if fixedX then 0 else if reducedX then nS - 1 else nXNumber of structurally independent mass fractions (see docu for details)
IntegernC (from PartialMedium)size(extraPropertiesNames, 1)Number of extra (outside of standard mass-balance) transported properties
Booleanph_explicit (from PartialMedium)falsetrue if explicit in pressure and specific enthalpy
BooleandT_explicit (from PartialMedium)falsetrue if explicit in density and temperature
BooleanpT_explicit (from PartialMedium)truetrue if explicit in pressure and temperature
FluidConstantsfluidConstants (from PartialMedium)constant data for the fluid
BooleansmoothModel (from PartialWaterBased)true if the (derived) model should not generate state events
BooleanonePhase (from PartialWaterBased)true if the (derived) model should never be called with two-phase inputs
IntegernnSubstancenumber of components
SI.MolarMass[n]MM_substancesMMX

Contents

NameDescription
BasePropertiesBase properties of water
CalcSpecificEnthalpy
EvaporationEnthalpy
HenryCoefficient
DiffusionCoefficient
SaturationPressure