recordBaseGas
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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | fixedMixingRatio | Treat medium as pseudo pure in Modelica if it is a mixture | |
| Integer | nc_propertyCalculation | Number of components for fluid property calculations | |
| Integer | nc | if fixedMixingRatio then 1 else nc_propertyCalculation | Number of components in Modelica models |
| TILMedia.Internals.GasName | gasNames | {""} | Array of gas names e.g. {"gasName"} for pure component |
| Real | mixingRatio_propertyCalculation | {1} | Mixing ratio for fluid property calculation (={1} for pure components) |
| Real | defaultMixingRatio | if fixedMixingRatio then {1} else mixingRatio_propertyCalculation | Default composition for models in Modelica (={1} for pure components) |
| Real[nc - 1] | xi_default | defaultMixingRatio[1:end - 1]/sum(defaultMixingRatio) | Default mass fractions |
| Integer | condensingIndex | Index of condensing component (=0, if no condensation is desired) | |
| Integer | ID | 0 | ID is used to map the selected Gas to the sim.cumulatedGasMass array item |
| Internals | |||
| String | concatGasName | TILMedia.Internals.concatNames(gasNames) | |