.ThermalSeparation.Media.WaterBasedLiquid.BaseClasses.PartialMedium.BaseProperties

Information

Model BaseProperties is a model within package PartialMedium and contains the declarations of the minimum number of variables that every medium model is supposed to support. A specific medium inherits from model BaseProperties and provides the equations for the basic properties. Note, that in package PartialMedium the following constants are defined:

Type Name Description
StringmediumName Unique name of the medium (used to check whether two media in a model are the same)
StringsubstanceNames Names of the mixture substances that are treated as independent. If medium consists of a single substance, set substanceNames=fill("",0). If medium consists of n substances, provide either n-1 or n substance names, depending whether mass fractions PartialMedium.BaseProperties.X shall have dimension PartialMedium.nX = n-1 or PartialMedium.nX = n
Booleanincompressible = true, if density is constant; otherwise set it to false

In every medium 3+nX equations have to be defined that provide relations between the following 5+nX variables, declared in model BaseProperties, where nX is the number of independent mass fractions defined in package PartialMedium:

Variable Unit Description
T K temperature
p Pa absolute pressure
d kg/m^3 density
h J/kg specific enthalpy
u J/kg specific internal energy
X[nX] kg/kg independent mass fractions m_i/m

In some components, such as "Ambient", explicit equations for medium variables are provided as "boundary conditions". For example, the "Ambient" component may define a temperature T_ambient.


Generated at 2024-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos