packageInterfaces

Multi-phase multi-component interface

Extends from Modelica.Icons.InterfacesPackage (Icon for packages containing interfaces).

Parameters

TypeNameDefaultDescription
StringmediumName"unusablePartialMedium"Name of the medium
String[:]substanceNames{mediumName}Array of substance names
IntegernCsize(substanceNames, 1)Number of compounds
Modelica.SIunits.MolarMassMMXArray of molar mass for each compound
IntegernP2Number of potential phases
PhasesphasesList of supported phases with additional information
Modelica.SIunits.MassFractionreference_Xfill(1/nC, nC)Reference mass fractions
Modelica.SIunits.MoleFractionreference_Yfill(1/nC, nC)Reference molar fraction
Modelica.SIunits.AbsolutePressurep_default101325Default value for pressure of medium (for initialization)
Modelica.SIunits.TemperatureT_default300Default value for temperature of medium (for initialization)
BooleanexcludeEnthalpyOfFormationtrueIf true, enthalpy of formation Hf is not included in specific enthalpy h
BooleanexternalEquilibriumSolverExternal equilibrium solver provided, may be used to have a different application implementation
IntegerPhaseLabelLiquidgetPhaseIndex("Liquid")Index of phase Liquid
IntegerPhaseLabelOverall0Overall phase label
IntegerPhaseLabelVaporgetPhaseIndex("Vapor")Index of phase Vapor

Contents

NameDescription
CompoundCompund , data that may be used to identify a compound
FlashProperties
PhasesDefinition and additional information of supported phases
InputsInput type
SatInputsInput type
checkPhaseNamesCheck phaseNames so they are included in phaseList
compoundsIndexreturns position of compound in X array, -1 if not present
createPhaseFractionVectorCreate a phase fraction vector, unset phase element are distributed evenly so sum(phaseVector) = 1
createPhaseSubstanceVectorCreate a phase substance vector, unset phase element are set to 0
createPresentPhaseVectorCreate a present phase vector, a vector with phase index corresponding to phaseId
getPhaseIndexreturns position of phase in phaseList array, -1 if not present
massToMoleFractionsCompute mole fraction vector from mass fraction vector
moleToMassFractionsCompute mass fractions vector from mole fractions and molar masses
ActivityCoefficientActivity coefficient
BaseMultiPhaseProperties
BaseProperties
CriticalPropertiesCritical properties
Fugacity
Properties
MultiPhaseProperties
SatPhaseEquilibriumProperties
ThermoPropertiesBase properties (p, d, T, h, u, X) of a medium