modelIdealMixture
Extends from PartialMixture (Interface for real mixture gas models).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | computeEnthalpyCondensation (from PartialMixture) | false | Used to decide if it is necessary to calculate enthalpy condensation |
| Boolean | computeTransport (from PartialMixture) | true | Used to decide if it is necessary to calculate the transport properties |
| Boolean | computeEntropy (from PartialMixture) | true | Used to decide if it is necessary to calculate the entropy of the fluid |
| Integer | dominantSpecies (from PartialMixture) | integer(Modelica.Math.Vectors.find(max(X_start), X_start)) | |
| Integer | nX (from PartialMixture) | 5 | Number of elements in the mass fraction array that influence fluid properties |
| Integer | nXi (from PartialMixture) | Number of independent elements in the mass fraction array that influence fluid properties | |
| Integer | nC (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.Pressure | p_start (from PartialMixture) | Start value of the fluid pressure | |
| Types.Temperature | T_start (from PartialMixture) | Start value of the fluid temperature | |
| Types.MassFraction[nX] | X_start (from PartialMixture) | X_default | Start value of the fluid mass composition |
| Types.MassFraction[nX] | X_default (from PartialMixture) | ones(nX)/nX | Default composition |
| Types.LowerHeatingValue[nX] | LHV (from PartialMixture) | ones(nX)*1e6 | |
| Boolean | anodicFlow | false | |
| Boolean | cathodicFlow | false | |
| Boolean | reducedX | false | |
| Integer | posCond | 1 | Position of H2O in the array |
| Integer | posOxygen | 3 | Position of O2 in the array |
| Integer | ord_cp | 3 | Order of cp polynomials |
| Integer | ord_cp_cond | 3 | order of the polynomial ideal cp(T) |
| Real[nX,ord_cp + 1] | cp_coeff | Coefficients for ideal cp evaluation of each species of the mixture | |
| Types.TemperatureDifference | dT_smooth | 1 | Smoothing temperature interval for cp_cond calculation |
| Types.SpecificEnthalpy[nX] | Hf | Specific enthalpies of formation of the species | |
| Types.MolarMass[nX] | MM | Molar masses of the species | |
| Types.InvMolarMass[nX] | invMM | ones(nX)./MM | Elementwise inverse of the molar mass vector to evaluate MMmix |
| Types.SpecificHeatCapacityMol | R | Modelica.Constants.R | Universal gas constant per unit mol |
| Types.Pressure | p0 | 1e5 | Reference pressure |
| Types.Temperature | T0 | 298.15 | Reference temperature for enthalpy calculation |
| Types.MoleFraction | eps | 1e-9 | small constant to avoid 'log(0)' when a gas component molar mass is zero |
| Types.Density | rho_start | MM[dominantSpecies]*p_start/(R*T_start) | |
| Types.SpecificVolume | v_start | 1/rho_start | |
| Types.MolarMass | MMmix_start | MM[dominantSpecies] |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| InputPressure | p (from PartialMixture) | Absolute pressure | |
| InputTemperature | T (from PartialMixture) | Temperature | |
| InputMassFraction[nXi] | Xi (from PartialMixture) | Mass fraction vector |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Types.MassFraction[nX] | X (from PartialMixture) | Mass fraction vector | |
| Types.MassFraction[nC] | C (from PartialMixture) | Mass fraction vector for tracking components | |
| Types.SpecificEnergy | u (from PartialMixture) | Specific Internal Energy of the fluid | |
| Types.SpecificEnthalpy | h (from PartialMixture) | Specific Enthalpy of the fluid | |
| Types.SpecificEntropy | s (from PartialMixture) | Specific Entropy | |
| Types.DerSpecEnergyByPressure | du_dp (from PartialMixture) | Pressure derivative of the Specific Internal Energy | |
| Types.DerSpecEnergyByTemperature | du_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.SpecificHeatCapacity | cp (from PartialMixture) | Specific heat capacity of the fluid | |
| Types.SpecificHeatCapacity | cv (from PartialMixture) | Specific heat capacity of the fluid | |
| Types.DerSpecificVolumeByPressure | dv_dp (from PartialMixture) | Pressure derivative of specific volume at constant Temperature | |
| Types.DerSpecificVolumeByTemperature | dv_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.DynamicViscosity | mu (from PartialMixture) | Dynamic viscosity | |
| Types.ThermalConductivity | k (from PartialMixture) | Thermal Conductivity | |
| Types.Density | rho (from PartialMixture) | Density of the fluid, needed in the pipe | |
| Types.LowerHeatingValue | LHVmix (from PartialMixture) | ||
| Types.SpecificHeatCapacity | cp_cond | Equivalent cp to evaluate condensation enthalpy | |
| Real[ord_cp_cond + 1] | cp_cond_coeff | Coefficients for the evaluation of cp_cond | |
| Types.SpecificHeatCapacity[nX] | cp_species | Cp of each species of the mixture | |
| Types.SpecificEnthalpy | h_cond | Water enthalpy of condensation | |
| Types.SpecificEnthalpy[nX] | h_species | Enthalpy of each component of the mixture referred to standard conditions | |
| Types.MolarMass | MMmix | Molar mass of the mixture | |
| Types.SpecificEntropy[nX] | s_species | ||
| Types.SpecificVolume | v | Specific volume of rhe mixture | |
| Types.MoleFraction[nX] | Y | Molar fractions of the components of the mixture | |
| Types.SpecificEnthalpy[nX] | hTemperature | ||
| Types.SpecificEnthalpy | hPROVATEMP |
Contents
| Name | Description |
|---|---|
| MMmixEvalprotected | Function to evaluate mixture molar mass from mass fractions |
| cp_Tprotected | Function to evaluate cp given cp coefficients and T |
| h_Tprotected | Function to evaluate mixture enthalpy from cp coefficients and T |
| s_Tprotected |