packageN2_O2_CO2_SO2_HCl_HF_H2O
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:
- 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.
- 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.
- 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.
| 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
| Type | Name | Default | Description |
|---|---|---|---|
| Real[nSubstance] | phi | {1, 1, 1, 1, 1, 1, 2.26} | association factor of each substance, if this substance is to be the solvent - used for claculation of diffusion coeffcients |
| Integer | nSubstance (from BaseMediumLiquid) | 2 | number 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 |
| String | mediumName (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 |
| Boolean | singleState (from PartialMedium) | = true, if u and d are not a function of pressure | |
| Boolean | reducedX (from PartialMedium) | true | = true if medium contains the equation sum(X) = 1.0; set reducedX=true if only one substance (see docu for details) |
| Boolean | fixedX (from PartialMedium) | false | = true if medium contains the equation X = reference_X |
| AbsolutePressure | reference_p (from PartialMedium) | 101325 | Reference pressure of Medium: default 1 atmosphere |
| Temperature | reference_T (from PartialMedium) | 298.15 | Reference 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 |
| AbsolutePressure | p_default (from PartialMedium) | 101325 | Default value for pressure of medium (for initialization) |
| Temperature | T_default (from PartialMedium) | Modelica.Units.Conversions.from_degC(20) | Default value for temperature of medium (for initialization) |
| SpecificEnthalpy | h_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_X | Default value for mass fractions of medium (for initialization) |
| Integer | nS (from PartialMedium) | size(substanceNames, 1) | Number of substances |
| Integer | nX (from PartialMedium) | if nS == 1 then 0 else nS | Number of mass fractions (= 0, if only one substance) |
| Integer | nXi (from PartialMedium) | if fixedX then 0 else if reducedX then nS - 1 else nX | Number of structurally independent mass fractions (see docu for details) |
| Integer | nC (from PartialMedium) | size(extraPropertiesNames, 1) | Number of extra (outside of standard mass-balance) transported properties |
| Boolean | ph_explicit (from PartialMedium) | false | true if explicit in pressure and specific enthalpy |
| Boolean | dT_explicit (from PartialMedium) | false | true if explicit in density and temperature |
| Boolean | pT_explicit (from PartialMedium) | true | true if explicit in pressure and temperature |
| FluidConstants | fluidConstants (from PartialMedium) | constant data for the fluid | |
| Boolean | smoothModel (from PartialWaterBased) | true if the (derived) model should not generate state events | |
| Boolean | onePhase (from PartialWaterBased) | true if the (derived) model should never be called with two-phase inputs | |
| Integer | n | nSubstance | number of components |
| SI.MolarMass[n] | MM_substances | MMX |
Contents
| Name | Description |
|---|---|
| Base properties of water | |