modelIdealMixture

Extends from PartialMixture (Interface for real mixture gas models).

Parameters

TypeNameDefaultDescription
BooleancomputeEnthalpyCondensation (from PartialMixture)falseUsed to decide if it is necessary to calculate enthalpy condensation
BooleancomputeTransport (from PartialMixture)trueUsed to decide if it is necessary to calculate the transport properties
BooleancomputeEntropy (from PartialMixture)trueUsed to decide if it is necessary to calculate the entropy of the fluid
IntegerdominantSpecies (from PartialMixture)integer(Modelica.Math.Vectors.find(max(X_start), X_start))
IntegernX (from PartialMixture)5Number of elements in the mass fraction array that influence fluid properties
IntegernXi (from PartialMixture)Number of independent elements in the mass fraction array that influence fluid properties
IntegernC (from PartialMixture)Number of mass fractions of components that are not used to compute the fluid properties
Types.MassFraction[nXi]Xi_start (from PartialMixture)Start value of the indepentend elements of fluid mass composition
Types.Pressurep_start (from PartialMixture)Start value of the fluid pressure
Types.TemperatureT_start (from PartialMixture)Start value of the fluid temperature
Types.MassFraction[nX]X_start (from PartialMixture)X_defaultStart value of the fluid mass composition
Types.MassFraction[nX]X_default (from PartialMixture)ones(nX)/nXDefault composition
Types.LowerHeatingValue[nX]LHV (from PartialMixture)ones(nX)*1e6
BooleananodicFlowfalse
BooleancathodicFlowfalse
BooleanreducedXfalse
IntegerposCond1Position of H2O in the array
IntegerposOxygen3Position of O2 in the array
Integerord_cp3Order of cp polynomials
Integerord_cp_cond3order of the polynomial ideal cp(T)
Real[nX,ord_cp + 1]cp_coeffCoefficients for ideal cp evaluation of each species of the mixture
Types.TemperatureDifferencedT_smooth1Smoothing temperature interval for cp_cond calculation
Types.SpecificEnthalpy[nX]HfSpecific enthalpies of formation of the species
Types.MolarMass[nX]MMMolar masses of the species
Types.InvMolarMass[nX]invMMones(nX)./MMElementwise inverse of the molar mass vector to evaluate MMmix
Types.SpecificHeatCapacityMolRModelica.Constants.RUniversal gas constant per unit mol
Types.Pressurep01e5Reference pressure
Types.TemperatureT0298.15Reference temperature for enthalpy calculation
Types.MoleFractioneps1e-9small constant to avoid 'log(0)' when a gas component molar mass is zero
Types.Densityrho_startMM[dominantSpecies]*p_start/(R*T_start)
Types.SpecificVolumev_start1/rho_start
Types.MolarMassMMmix_startMM[dominantSpecies]

Connectors

TypeNameDefaultDescription
InputPressurep (from PartialMixture)Absolute pressure
InputTemperatureT (from PartialMixture)Temperature
InputMassFraction[nXi]Xi (from PartialMixture)Mass fraction vector

Components

TypeNameDefaultDescription
Types.MassFraction[nX]X (from PartialMixture)Mass fraction vector
Types.MassFraction[nC]C (from PartialMixture)Mass fraction vector for tracking components
Types.SpecificEnergyu (from PartialMixture)Specific Internal Energy of the fluid
Types.SpecificEnthalpyh (from PartialMixture)Specific Enthalpy of the fluid
Types.SpecificEntropys (from PartialMixture)Specific Entropy
Types.DerSpecEnergyByPressuredu_dp (from PartialMixture)Pressure derivative of the Specific Internal Energy
Types.DerSpecEnergyByTemperaturedu_dT (from PartialMixture)Temperature derivative of the Specific Internal Energy
Types.SpecificEnergy[nX]du_dX (from PartialMixture)Mass fraction derivative of Specific Internal Energy at constant pressure, per each component
Types.SpecificHeatCapacitycp (from PartialMixture)Specific heat capacity of the fluid
Types.SpecificHeatCapacitycv (from PartialMixture)Specific heat capacity of the fluid
Types.DerSpecificVolumeByPressuredv_dp (from PartialMixture)Pressure derivative of specific volume at constant Temperature
Types.DerSpecificVolumeByTemperaturedv_dT (from PartialMixture)Temperature derivative of specific volume at constant pressure
Types.DerSpecificVolumeByComposition[nX]dv_dX (from PartialMixture)Mass fraction derivative of specific volumen, per each component
Types.DynamicViscositymu (from PartialMixture)Dynamic viscosity
Types.ThermalConductivityk (from PartialMixture)Thermal Conductivity
Types.Densityrho (from PartialMixture)Density of the fluid, needed in the pipe
Types.LowerHeatingValueLHVmix (from PartialMixture)
Types.SpecificHeatCapacitycp_condEquivalent cp to evaluate condensation enthalpy
Real[ord_cp_cond + 1]cp_cond_coeffCoefficients for the evaluation of cp_cond
Types.SpecificHeatCapacity[nX]cp_speciesCp of each species of the mixture
Types.SpecificEnthalpyh_condWater enthalpy of condensation
Types.SpecificEnthalpy[nX]h_speciesEnthalpy of each component of the mixture referred to standard conditions
Types.MolarMassMMmixMolar mass of the mixture
Types.SpecificEntropy[nX]s_species
Types.SpecificVolumevSpecific volume of rhe mixture
Types.MoleFraction[nX]YMolar fractions of the components of the mixture
Types.SpecificEnthalpy[nX]hTemperature
Types.SpecificEnthalpyhPROVATEMP

Contents

NameDescription
MediumH2O
MMmixEvalprotectedFunction to evaluate mixture molar mass from mass fractions
cp_TprotectedFunction to evaluate cp given cp coefficients and T
h_TprotectedFunction to evaluate mixture enthalpy from cp coefficients and T
s_Tprotected