packageMixtureGasNasa
Extends from Modelica.Media.Interfaces.PartialMixtureMedium (Base class for pure substances of several chemical substances).
Information
This model calculates the medium properties for single component ideal gases.
Sources for model and literature:
Original Data: Computer program for calculation of complex chemical
equilibrium compositions and applications. Part 1: Analysis
Document ID: 19950013764 N (95N20180) File Series: NASA Technical Reports
Report Number: NASA-RP-1311 E-8017 NAS 1.61:1311
Authors: Gordon, Sanford (NASA Lewis Research Center)
Mcbride, Bonnie J. (NASA Lewis Research Center)
Published: Oct 01, 1994.
Known limits of validity:
The data is valid for
temperatures between 200 K and 6000 K. A few of the data sets for
monatomic gases have a discontinuous 1st derivative at 1000 K, but
this never caused problems so far.
This model has been copied from the ThermoFluid library. It has been developed by Hubertus Tummescheit.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Media.Interfaces.Choices.IndependentVariables | ThermoStates (from PartialMedium) | Enumeration type for independent variables | |
| String | mediumName (from PartialMedium) | "unusablePartialMedium" | Name of the medium |
| String[:] | substanceNames (from PartialMedium) | {mediumName} | Names of the mixture substances. Set substanceNames={mediumName} if only one substance. |
| String[:] | extraPropertiesNames (from PartialMedium) | fill("", 0) | Names of the additional (extra) transported properties. Set extraPropertiesNames=fill("",0) if unused |
| Boolean | singleState (from PartialMedium) | = true, if u and d are not a function of pressure | |
| Boolean | reducedX (from PartialMedium) | true | = true, if medium contains the equation sum(X) = 1.0; set reducedX=true, if only one substance (see docu for details) |
| Boolean | fixedX (from PartialMedium) | false | = true, if medium contains the equation X = reference_X |
| AbsolutePressure | reference_p (from PartialMedium) | 101325 | Reference pressure of Medium: default 1 atmosphere |
| Temperature | reference_T (from PartialMedium) | 298.15 | Reference temperature of Medium: default 25 deg Celsius |
| MassFraction[nX] | reference_X (from PartialMedium) | fill(1/nX, nX) | Default mass fractions of medium |
| AbsolutePressure | p_default (from PartialMedium) | 101325 | Default value for pressure of medium (for initialization) |
| Temperature | T_default (from PartialMedium) | Modelica.Units.Conversions.from_degC(20) | Default value for temperature of medium (for initialization) |
| SpecificEnthalpy | h_default (from PartialMedium) | specificEnthalpy_pTX(p_default, T_default, X_default) | Default value for specific enthalpy of medium (for initialization) |
| MassFraction[nX] | X_default (from PartialMedium) | reference_X | Default value for mass fractions of medium (for initialization) |
| ExtraProperty[nC] | C_default (from PartialMedium) | fill(0, nC) | Default value for trace substances of medium (for initialization) |
| Integer | nS (from PartialMedium) | size(substanceNames, 1) | Number of substances |
| Integer | nX (from PartialMedium) | nS | Number of mass fractions |
| Integer | nXi (from PartialMedium) | if fixedX then 0 else if reducedX then nS - 1 else nS | Number of structurally independent mass fractions (see docu for details) |
| Integer | nC (from PartialMedium) | size(extraPropertiesNames, 1) | Number of extra (outside of standard mass-balance) transported properties |
| Real[nC] | C_nominal (from PartialMedium) | 1.0e-6*ones(nC) | Default for the nominal values for the extra properties |
| FluidConstants | fluidConstants (from PartialMixtureMedium) | Constant data for the fluid | |
| Modelica.Media.IdealGases.Common.DataRecord | data | Data records of ideal gas substances | |
| Boolean | excludeEnthalpyOfFormation | true | If true, enthalpy of formation Hf is not included in specific enthalpy h |
| ReferenceEnthalpy | referenceChoice | ReferenceEnthalpy.ZeroAt0K | Choice of reference enthalpy |
| SpecificEnthalpy | h_offset | 0.0 | User defined offset for reference enthalpy, if referenceChoice = UserDefined |
| MolarMass | MMX | data[:].MM | Molar masses of components |
| Integer | methodForThermalConductivity | 1 |
Contents
| Name | Description |
|---|---|
| Thermodynamic state variables | |
| Base properties (p, d, T, h, u, R_s, MM, X, and Xi of NASA mixture gas | |
| Return thermodynamic state as function of p, T and composition X | |
| Return thermodynamic state as function of p, h and composition X | |
| Return thermodynamic state as function of p, s and composition X | |
| Return thermodynamic state as function of d, T and composition X | |
| Return thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b | |
| Return pressure of ideal gas | |
| Return temperature of ideal gas | |
| Return density of ideal gas | |
| Return specific enthalpy | |
| Return specific internal energy | |
| Return specific entropy | |
| Return specific Gibbs energy | |
| Return specific Helmholtz energy | |
| Return specific enthalpy | |
| Return specific enthalpy derivative | |
| Return gasConstant | |
| Return specific heat capacity at constant pressure | |
| Return specific heat capacity at constant volume from temperature and gas data | |
| Return mixing entropy of ideal gases / R | |
| Return temperature dependent part of the entropy, expects full entropy vector | |
| Return isentropic exponent | |
| Return velocity of sound | |
| Approximate method of calculating h_is from upstream properties and downstream pressure | |
| Return isentropic enthalpy | |
| Return viscosities of gas mixtures at low pressures (Wilke method) | |
| Return mixture dynamic viscosity | |
| Return the viscosity of gas mixtures without access to component viscosities (Chung, et. al. rules) | |
| Return thermal conductivities of low-pressure gas mixtures (Mason and Saxena Modification) | |
| Return thermal conductivity for low pressure gas mixtures | |
| Return isobaric expansion coefficient beta | |
| Return isothermal compressibility factor | |
| Return density derivative by pressure at constant temperature | |
| Return density derivative by temperature at constant pressure | |
| Return density derivative by mass fraction | |
| Return molar mass of mixture | |
| Return temperature from specific enthalpy and mass fraction | |
| Return temperature from pressure, specific entropy and mass fraction | |
| Return specific entropy from pressure, temperature and mass fractions |