recordBaseVLEFluid
Extends from TILMedia.Internals.ClassTypes.Record (Partial Record).
Information
Every VLEFluid substance model contains a substance record as replaceable parameter extending from this base VLEFluid 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" - VLEFluidName 1, VLEFluidName 2, and so on. Array which lists the substance names. (Mixture calculations only with REFPROP possible.)
- mixingRatio_propertyCalculation - Array with the mixing ratio of all substances.
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 VLEFluide base record, using a VLEFluid substance name, listed in the substance names documentation. An example how to parameterize the base VLEFluid 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.VLEFluidName | vleFluidNames | {""} | Array of VLEFluid names e.g. {"vleFluidName"} 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 | ID | 0 | ID is used to map the selected VLEFluid to the sim.cumulatedVLEFluidMass array item |
| Internals | |||
| String | concatVLEFluidName | TILMedia.Internals.concatNames(vleFluidNames) | |