packageDryAir
Extends from MultiPhaseMixture.Interfaces (Multi-phase multi-component interface), MultiPhaseMixture.Icons.Media.
Information
Dry air mixture model consisting of nitrogen, oxygen and argon. This model is based on work by [1] but has been rewritten to the new media structure.
Implementation
It is a three component model (nitrogen,oxygen,argon) were the phase equilibria conditions are described by the Rachford-Rice equation (Lämås, 2012) using a declarative approach. The equations are solved by the tool’s non-linear solver.
The vapor phase is described by an ideal gas volumetric equation of state, a linear polynomial for the heat capacity and polynomials adapted to experiment data of the fugacities. The liquid phase uses an incompressible assumption where density and specific heat capacity are constant and activity coefficients have been adapted to experimental data.
References
[1] Yasaman Mirsadraee. Dynamic modeling and simulation of a cryogenic air separation plant, Msc Thesis, Linköping, Sweden, 2012
[2] Hans Lämås, Algorithms for Multi-component Phase Equilibrium Models in Modelica, MSc Thesis, Chalmers University of Technology, Gothenburg, Sweden, 2012.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | mediumName (from Interfaces) | "unusablePartialMedium" | Name of the medium |
| String[:] | substanceNames (from Interfaces) | {mediumName} | Array of substance names |
| Integer | nC (from Interfaces) | size(substanceNames, 1) | Number of compounds |
| Modelica.SIunits.MolarMass | MMX (from Interfaces) | Array of molar mass for each compound | |
| Integer | nP (from Interfaces) | 2 | Number of potential phases |
| Phases | phases (from Interfaces) | List of supported phases with additional information | |
| Modelica.SIunits.MassFraction | reference_X (from Interfaces) | fill(1/nC, nC) | Reference mass fractions |
| Modelica.SIunits.MoleFraction | reference_Y (from Interfaces) | fill(1/nC, nC) | Reference molar fraction |
| Modelica.SIunits.AbsolutePressure | p_default (from Interfaces) | 101325 | Default value for pressure of medium (for initialization) |
| Modelica.SIunits.Temperature | T_default (from Interfaces) | 300 | Default value for temperature of medium (for initialization) |
| Boolean | excludeEnthalpyOfFormation (from Interfaces) | true | If true, enthalpy of formation Hf is not included in specific enthalpy h |
| Boolean | externalEquilibriumSolver (from Interfaces) | External equilibrium solver provided, may be used to have a different application implementation | |
| Integer | PhaseLabelLiquid (from Interfaces) | getPhaseIndex("Liquid") | Index of phase Liquid |
| Integer | PhaseLabelOverall (from Interfaces) | 0 | Overall phase label |
| Integer | PhaseLabelVapor (from Interfaces) | getPhaseIndex("Vapor") | Index of phase Vapor |
Contents
| Name | Description |
|---|---|
| molarMass_z | Molar weight of mixture |
| GasEoS | |
| LiquidEoS | |
| specificVolume_pTX | |
| specificEnthalpy_pTX | |
| enthalpy_pTM | |
| volume_pTM | |
| EquationsOfState |