recordBaseLiquid

Base record for liquid definitions

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

Information


Every liquid substance model contains a substance record as replaceable parameter extending from this base liquid 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" - liquidName 1, liquidName 2, and so on. Array which lists the substance names.
  • 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 liquide base record, using a liquid substance name, listed in the substance names documentation. An example how to parameterize the base liquid 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.LiquidNameliquidNames{""}Array of liquid names e.g. {"liquidName"} 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
IntegerID0ID is used to map the selected Liquid to the sim.cumulatedLiquidMass array item
Internals
StringconcatLiquidNameTILMedia.Internals.concatNames(liquidNames)