recordBaseGas

Base record for gas definitions

Extends from TILMedia.Internals.ClassTypes.Record (Partial Record).

Information


Every gas substance model contains a substance record as replaceable parameter extending from this base gas model. The substance record contains the following parameters:

  • fixedMixingRatio - Boolean = true, if mixing ratio is fixed during simulation.
  • nc_propertyCalculation - Integer with number of components which are calculated.
  • 'substanceNames' - gasName 1, liquidName 2, and so on. Array which lists the substance names.
  • mixingRatio_propertyCalculation - Array with the mixing ratio of all substances.
  • condensingIndex - Only for gas mixtures: Integer with the index of the component that can condense.

Access additional substances:

To acces the properties of an additional substance, it is possible to create a new substance reccord. For more information on the acces of additional propeties see the substance record documentation.

Furthermore it is possible to parameterize this gase base record, using a gas substance name, listed in the substance names documentation. An example how to parameterize the base gas model is shown below. However note that this is only a local configuration and therefore only accesible in the corresponding model.

Parameters

TypeNameDefaultDescription
BooleanfixedMixingRatioTreat medium as pseudo pure in Modelica if it is a mixture
Integernc_propertyCalculationNumber of components for fluid property calculations
Integerncif fixedMixingRatio then 1 else nc_propertyCalculationNumber of components in Modelica models
TILMedia.Internals.GasNamegasNames{""}Array of gas names e.g. {"gasName"} for pure component
RealmixingRatio_propertyCalculation{1}Mixing ratio for fluid property calculation (={1} for pure components)
RealdefaultMixingRatioif fixedMixingRatio then {1} else mixingRatio_propertyCalculationDefault composition for models in Modelica (={1} for pure components)
Real[nc - 1]xi_defaultdefaultMixingRatio[1:end - 1]/sum(defaultMixingRatio)Default mass fractions
IntegercondensingIndexIndex of condensing component (=0, if no condensation is desired)
IntegerID0ID is used to map the selected Gas to the sim.cumulatedGasMass array item
Internals
StringconcatGasNameTILMedia.Internals.concatNames(gasNames)