packageBaseIdealGasMixture

Extends from ThermalSeparation.Media.BaseMediumVapour (base class for vapour medium package), Modelica.Icons.Package (Icon for standard packages).

Parameters

TypeNameDefaultDescription
IntegernSubstance (from BaseMediumVapour)2number of substances
SI.Volume[nSubstance]V (from BaseMediumVapour)diffusion volumes, Taylor p. 69
Integer[nSubstance]eq_Tsonopoulos (from BaseMediumVapour)no. of equation for equation a and b in Table 4-5 in Properties of Gases and Liquids, 5th ed.
Real[nSubstance]sigma (from BaseMediumVapour)surface tension
Real[nSubstance]epsilon_k (from BaseMediumVapour)Lennard-Jones force constant (epsilon/k), constant value
SI.MolarMassMMX (from BaseMediumVapour)molar masses of components
Booleandelta_hv_medium (from BaseMediumVapour)truetrue, if evaporation enthalpy is considered in medium model
ThermalSeparation.Media.IdealGasMixtures.BaseClasses.Common.DataRecorddata
StringmediumName"unusablePartialMedium"Name of the medium
String[:]extraPropertiesNamesfill("", 0)Names of the additional (extra) transported properties. Set extraPropertiesNames=fill("",0) if unused
BooleansingleStatefalse= true, if u and d are not a function of pressure
BooleanreducedXfalse= true if medium contains the equation sum(X) = 1.0; set reducedX=true if only one substance (see docu for details)
BooleanfixedXfalse= true if medium contains the equation X = reference_X
AbsolutePressurereference_p101325Reference pressure of Medium: default 1 atmosphere
Temperaturereference_T298.15Reference temperature of Medium: default 25 deg Celsius
MassFraction[nX]reference_Xif nX == 0 then fill(0, nX) else fill(1/nX, nX)Default mass fractions of medium
AbsolutePressurep_default101325Default value for pressure of medium (for initialization)
TemperatureT_defaultModelica.Units.Conversions.from_degC(20)Default value for temperature of medium (for initialization)
SpecificEnthalpyh_defaultThermalSeparation.Media.IdealGasMixtures.BaseClasses.BaseIdealGasMixture.specificEnthalpy_pTX(p_default, T_default, X_default)Default value for specific enthalpy of medium (for initialization)
MassFraction[nX]X_defaultreference_XDefault value for mass fractions of medium (for initialization)
IntegernSNumber of substances
IntegernXnSNumber of mass fractions (= 0, if only one substance)
IntegernXiif fixedX then 0 else if reducedX then nS - 1 else nXNumber of structurally independent mass fractions (see docu for details)
IntegernCsize(extraPropertiesNames, 1)Number of extra (outside of standard mass-balance) transported properties
SI.Temperature[nX]TcritcritTemp()
SI.Pressure[nX]pcritcritPressure()
SI.MolarVolume[nX]VcritcritVolume()
Real[nX]omegaacentricFac()
DipoleMoment[nX]mudipoleMoment()
Real[nX]R_const
BooleanexcludeEnthalpyOfFormationtrueIf true, enthalpy of formation Hf is not included in specific enthalpy h
Choices.ReferenceEnthalpy.TempreferenceChoiceChoices.ReferenceEnthalpy.ZeroAt0KChoice of reference enthalpy
SpecificEnthalpyh_offset0.0User defined offset for reference enthalpy, if referenceChoice = UserDefined
FluidConstantsfluidConstantsconstant data for the fluid

Contents

NameDescription
FluidConstantsextended fluid constants
BasePropertiesBase properties (p, d, T, h, u, R, MM and, if applicable, X) of a medium
gasConstantReturn the gas constant of the mixture (also for liquids)
moleToMassFractionsReturn mass fractions X from mole fractions
massToMoleFractionsReturn mole fractions from mass fractions X
setState_pTXReturn thermodynamic state as function of p, T and composition X
setState_phXReturn thermodynamic state as function of p, h and composition X
setState_psXReturn thermodynamic state as function of p, s and composition X
setState_dTXReturn thermodynamic state as function of d, T and composition X
pressureReturn pressure of ideal gas
temperatureReturn temperature of ideal gas
densityReturn density of ideal gas
specificEnthalpyReturn specific enthalpy
specificInternalEnergyReturn specific internal energy
specificEntropyReturn specific entropy
specificGibbsEnergyReturn specific Gibbs energy
specificHelmholtzEnergyReturn specific Helmholtz energy
h_TXReturn specific enthalpy
h_TX_derReturn specific enthalpy derivative
specificHeatCapacityCpReturn specific heat capacity at constant pressure
heatCapacity_cpalias for deprecated name
specificHeatCapacityCvReturn specific heat capacity at constant volume from temperature and gas data
heatCapacity_cvalias for deprecated name
MixEntropyReturn mixing entropy of ideal gases / R
s_TXReturn temperature dependent part of the entropy, expects full entropy vector
isentropicExponentReturn isentropic exponent
velocityOfSoundReturn velocity of sound
isentropicEnthalpyApproximationApproximate method of calculating h_is from upstream properties and downstream pressure
isentropicEnthalpyReturn isentropic enthalpy
gasMixtureViscosityReturn viscosities of gas mixtures at low pressures (Wilke method)
dynamicViscosityReturn mixture dynamic viscosity
mixtureViscosityChungReturn the viscosity of gas mixtures without access to component viscosities (Chung, et. al. rules)
lowPressureThermalConductivityReturn thermal conductivites of low-pressure gas mixtures (Mason and Saxena Modification)
thermalConductivityReturn thermal conductivity for low pressure gas mixtures
isobaricExpansionCoefficientReturn isobaric expansion coefficient beta
betaalias for isobaricExpansionCoefficient for user convenience
isothermalCompressibilityReturn isothermal compressibility factor
kappaalias of isothermalCompressibility for user convenience
density_derp_TReturn density derivative by temperature at constant pressure
density_derT_pReturn density derivative by temperature at constant pressure
density_derXReturn density derivative by mass fraction
molarMassReturn molar mass of mixture
T_hXReturn temperature from specific enthalpy and mass fraction
T_psXReturn temperature from pressure, specific entropy and mass fraction
dipoleMomentReturn mixture dynamic viscosity
critTempReturn mixture dynamic viscosity
critPressureReturn mixture dynamic viscosity
critVolumeReturn mixture dynamic viscosity
acentricFacReturn mixture dynamic viscosity
prandtlNumberReturn the Prandtl number
specificEnthalpy_pTXReturn specific enthalpy from p, T, and X or Xi
temperature_phXReturn temperature from p, h, and X or Xi
temperature_psXReturn temperature from p,s, and X or Xi
specificEnthalpy_psXReturn specific enthalpy from p, s, and X or Xi
AbsolutePressureType for absolute pressure with medium specific attributes
DensityType for density with medium specific attributes
DynamicViscosityType for dynamic viscosity with medium specific attributes
EnthalpyFlowRateType for enthalpy flow rate with medium specific attributes
MassFlowRateType for mass flow rate with medium specific attributes
MassFractionType for mass fraction with medium specific attributes
MoleFractionType for mole fraction with medium specific attributes
MolarMassType for molar mass with medium specific attributes
MolarVolumeType for molar volume with medium specific attributes
IsentropicExponentType for isentropic exponent with medium specific attributes
SpecificEnergyType for specific energy with medium specific attributes
SpecificInternalEnergyType for specific internal energy with medium specific attributes
SpecificEnthalpyType for specific enthalpy with medium specific attributes
SpecificEntropyType for specific entropy with medium specific attributes
SpecificHeatCapacityType for specific heat capacity with medium specific attributes
SurfaceTensionType for surface tension with medium specific attributes
TemperatureType for temperature with medium specific attributes
ThermalConductivityType for thermal conductivity with medium specific attributes
PrandtlNumberType for Prandtl number with medium specific attributes
VelocityOfSoundType for velocity of sound with medium specific attributes
ExtraPropertyType for unspecified, mass-specific property transported by flow
CumulativeExtraPropertyType for conserved integral of unspecified, mass specific property
ExtraPropertyFlowRateType for flow rate of unspecified, mass-specific property
IsobaricExpansionCoefficientType for isobaric expansion coefficient with medium specific attributes
DipoleMomentType for dipole moment with medium specific attributes
DerDensityByPressureType for partial derivative of density with resect to pressure with medium specific attributes
DerDensityByEnthalpyType for partial derivative of density with resect to enthalpy with medium specific attributes
DerEnthalpyByPressureType for partial derivative of enthalpy with resect to pressure with medium specific attributes
DerDensityByTemperatureType for partial derivative of density with resect to temperature with medium specific attributes
ChoicesTypes, constants to define menu choices
FugacityCoefficient