packageDryAir

Dry air (N2,O2,Ar)

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

TypeNameDefaultDescription
StringmediumName (from Interfaces)"unusablePartialMedium"Name of the medium
String[:]substanceNames (from Interfaces){mediumName}Array of substance names
IntegernC (from Interfaces)size(substanceNames, 1)Number of compounds
Modelica.SIunits.MolarMassMMX (from Interfaces)Array of molar mass for each compound
IntegernP (from Interfaces)2Number of potential phases
Phasesphases (from Interfaces)List of supported phases with additional information
Modelica.SIunits.MassFractionreference_X (from Interfaces)fill(1/nC, nC)Reference mass fractions
Modelica.SIunits.MoleFractionreference_Y (from Interfaces)fill(1/nC, nC)Reference molar fraction
Modelica.SIunits.AbsolutePressurep_default (from Interfaces)101325Default value for pressure of medium (for initialization)
Modelica.SIunits.TemperatureT_default (from Interfaces)300Default value for temperature of medium (for initialization)
BooleanexcludeEnthalpyOfFormation (from Interfaces)trueIf true, enthalpy of formation Hf is not included in specific enthalpy h
BooleanexternalEquilibriumSolver (from Interfaces)External equilibrium solver provided, may be used to have a different application implementation
IntegerPhaseLabelLiquid (from Interfaces)getPhaseIndex("Liquid")Index of phase Liquid
IntegerPhaseLabelOverall (from Interfaces)0Overall phase label
IntegerPhaseLabelVapor (from Interfaces)getPhaseIndex("Vapor")Index of phase Vapor

Contents

NameDescription
ThermoProperties
Properties
ActivityCoefficient
Fugacity
MultiPhaseProperties
SatPhaseEquilibriumProperties
molarMass_zMolar weight of mixture
GasEoS
LiquidEoS
specificVolume_pTX
specificEnthalpy_pTX
enthalpy_pTM
volume_pTM
EquationsOfState