packageSteam
Extends from Modelica.Media.Interfaces.PartialMedium (Partial medium properties (base package of all media packages)), Modelica.Icons.Package (Icon for standard packages).
Information
This medium package models water vapor (pure steam, region 2, quality=1).
Thermodynamic properties are calculated primarily in terms of pressure and temperature. For thermodynamic property functions, the IAPWS-IF97 formulations are adapted, and approximate relationships are provided for commonly used functions to improve computational efficiency and provide backward compatability.
Detailed functions from Modelica.Media.Water.WaterIF97_R2pT are generally used, except for IBPSA.Media.Steam.specificEnthalpy and IBPSA.Media.Steam.specificEntropy (both "forward" functions), as well as their "backward" inverse functions IBPSA.Media.Steam.temperature_ph and IBPSA.Media.Steam.temperature_ps, which are numerically consistent with the forward functions. The following modifications were made relative to the Modelica.Media.Water.WaterIF97_R2pT medium package:
- Analytic expressions for the derivatives are provided for all thermodynamic property functions.
- The implementation is generally simpler in order to increase the likelihood of more efficient simulations.
Limitations
- The valid temperature range is 100°C ≤ T ≤ 160°C, and the valid pressure range is 100 kPa ≤ p ≤ 550 kPa.
- When phase change is required, this model is to be used in combination with
IBPSA.Media.Water
for the liquid phase (quality=0). Please note that the maximum temperature for liquid
water is
T_max=130°C. This is suitable for real-world condensate return and boiler feedwater systems, which are typically vented to the atmosphere with steam contained via steam traps (thus,T_max=100°Cfor the condensate or feedwater in properly functioning systems).
Applications
This model is intended for first generation district heating systems and other steam heating processes involving low and medium pressure steam.
References
W. Wagner et al., “The IAPWS industrial formulation 1997 for the thermodynamic properties of water and steam,” J. Eng. Gas Turbines Power, vol. 122, no. 1, pp. 150–180, 2000.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Media.Interfaces.Choices.IndependentVariables | ThermoStates (from PartialMedium) | Enumeration type for independent variables | |
| 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) | 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) | 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) |
| ExtraProperty[nC] | C_default (from PartialMedium) | fill(0, nC) | Default value for trace substances of medium (for initialization) |
| Integer | nS (from PartialMedium) | size(substanceNames, 1) | Number of substances |
| Integer | nX (from PartialMedium) | nS | Number of mass fractions |
| Integer | nXi (from PartialMedium) | if fixedX then 0 else if reducedX then nS - 1 else nS | 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 |
| Real[nC] | C_nominal (from PartialMedium) | 1.0e-6*ones(nC) | Default for the nominal values for the extra properties |
Contents
| Name | Description |
|---|---|
| ThermodynamicState | Thermodynamic state variables |
| Base properties (p, d, T, h, u, R, MM) of water | |
| Returns density | |
| Return dynamic viscosity | |
| Return the molar mass of the medium | |
| Return pressure | |
| Return saturation pressure of condensing fluid | |
| saturationTemperature | Return saturation temperature |
| Returns specific enthalpy | |
| Return specific entropy | |
| Return specific internal energy | |
| Specific heat capacity at constant pressure | |
| Specific heat capacity at constant volume | |
| Specific Gibbs energy | |
| Specific Helmholtz energy | |
| Return the thermodynamic state as function of d and T | |
| Return the thermodynamic state as function of p and T | |
| Return the thermodynamic state as function of p and h | |
| Return the thermodynamic state as function of p and s | |
| Return temperature | |
| Return thermal conductivity | |
| Density derivative by specific enthalpy | |
| Density derivative by pressure | |
| Return isentropic exponent | |
| Isothermal compressibility of water | |
| Isobaric expansion coefficient of water | |
| Isentropic enthalpy | |
| Coefficient data record for properties of perfect gases | |
| Gibbs function for region 2: g(p,T) | |
| temperature_phprotected | Return temperature from p and h, inverse function of h(p,T) |
| temperature_psprotected | Return temperature from p and s, inverse function of s(p,T) |
| Density as function of temperature and pressure | |
| pressure_dTprotected | Computes pressure as a function of density and temperature |
Revisions
-
April 13, 2021, by Kathryn Hinkelman:
Changed pressure from constant to variable and reduced applicable pressure-temperature range to improve accuracy of polynomial approximations. -
October 30, 2020, by Kathryn Hinkelman:
Complete new reimplementation to eliminate numerical inefficiencies and improve accuracy of property function calculations.