modelPartialMixture

Interface for real mixture gas models

Extends from Modelica.Icons.MaterialProperty (Icon for property classes).

Information

Interface for real mixture gas models

The objetive of this model is to have an interface and use it as a base model for any real mixture model. For the Allam Cycle application, Peng-Robinson EoS is the one to be considered, however, it is possible to develop different real fluid models using other EoS.

The PartialMixture model includes three input variables for pressure, temperature and mass fraction, in order to define the full properties of the fluid. The other variables are going to be used when it comes to develop the real mixture fluid model.

Parameters

TypeNameDefaultDescription
BooleancomputeEnthalpyCondensationfalseUsed to decide if it is necessary to calculate enthalpy condensation
BooleancomputeTransporttrueUsed to decide if it is necessary to calculate the transport properties
BooleancomputeEntropytrueUsed to decide if it is necessary to calculate the entropy of the fluid
IntegerdominantSpeciesinteger(Modelica.Math.Vectors.find(max(X_start), X_start))
IntegernX5Number of elements in the mass fraction array that influence fluid properties
IntegernXiNumber of independent elements in the mass fraction array that influence fluid properties
IntegernCNumber of mass fractions of components that are not used to compute the fluid properties
Types.MassFraction[nXi]Xi_startStart value of the indepentend elements of fluid mass composition
Types.Pressurep_startStart value of the fluid pressure
Types.TemperatureT_startStart value of the fluid temperature
Types.MassFraction[nX]X_startX_defaultStart value of the fluid mass composition
Types.MassFraction[nX]X_defaultones(nX)/nXDefault composition
Types.LowerHeatingValue[nX]LHVones(nX)*1e6

Connectors

TypeNameDefaultDescription
InputPressurepAbsolute pressure
InputTemperatureTTemperature
InputMassFraction[nXi]XiMass fraction vector

Components

TypeNameDefaultDescription
Types.MassFraction[nX]XMass fraction vector
Types.MassFraction[nC]CMass fraction vector for tracking components
Types.SpecificEnergyuSpecific Internal Energy of the fluid
Types.SpecificEnthalpyhSpecific Enthalpy of the fluid
Types.SpecificEntropysSpecific Entropy
Types.DerSpecEnergyByPressuredu_dpPressure derivative of the Specific Internal Energy
Types.DerSpecEnergyByTemperaturedu_dTTemperature derivative of the Specific Internal Energy
Types.SpecificEnergy[nX]du_dXMass fraction derivative of Specific Internal Energy at constant pressure, per each component
Types.SpecificHeatCapacitycpSpecific heat capacity of the fluid
Types.SpecificHeatCapacitycvSpecific heat capacity of the fluid
Types.DerSpecificVolumeByPressuredv_dpPressure derivative of specific volume at constant Temperature
Types.DerSpecificVolumeByTemperaturedv_dTTemperature derivative of specific volume at constant pressure
Types.DerSpecificVolumeByComposition[nX]dv_dXMass fraction derivative of specific volumen, per each component
Types.DynamicViscositymuDynamic viscosity
Types.ThermalConductivitykThermal Conductivity
Types.DensityrhoDensity of the fluid, needed in the pipe
Types.LowerHeatingValueLHVmix

Contents

NameDescription
InputPressurePseudo-input to check model balancedness
InputTemperaturePseudo-input to check model balancedness
InputMassFractionThe fluid properties are defined by a temperature value