packageExternalTwoPhaseMixture

Extends from Interfaces (Multi-phase multi-component interface).

Information

Template for using a fluid via the external C-interface, see MultiPhaseMixture.Information.ExternalPropertyPackages. For examples how to use it, take a look at pre-defined fluids at MultiPhaseMixture.PreDefined.Mixtures.

Parameters

TypeNameDefaultDescription
PropertySetupInformationsetupInfo
BooleanprintExternalFunctionCallfalsePrint function calls to log if true
MultiPhaseMixture.Templates.ExternalObjects.ExternalMediaObjecteoMultiPhaseMixture.Templates.ExternalObjects.ExternalMediaObject(setupInfo)
StringmediumName (from Interfaces)"unusablePartialMedium"Name of the medium
String[:]substanceNames (from Interfaces){mediumName}Array of substance names
IntegernC (from Interfaces)size(substanceNames, 1)Number of compounds
Modelica.SIunits.MolarMassMMX (from Interfaces)Array of molar mass for each compound
IntegernP (from Interfaces)2Number of potential phases
Phasesphases (from Interfaces)List of supported phases with additional information
Modelica.SIunits.MassFractionreference_X (from Interfaces)fill(1/nC, nC)Reference mass fractions
Modelica.SIunits.MoleFractionreference_Y (from Interfaces)fill(1/nC, nC)Reference molar fraction
Modelica.SIunits.AbsolutePressurep_default (from Interfaces)101325Default value for pressure of medium (for initialization)
Modelica.SIunits.TemperatureT_default (from Interfaces)300Default value for temperature of medium (for initialization)
BooleanexcludeEnthalpyOfFormation (from Interfaces)trueIf true, enthalpy of formation Hf is not included in specific enthalpy h
BooleanexternalEquilibriumSolver (from Interfaces)External equilibrium solver provided, may be used to have a different application implementation
IntegerPhaseLabelLiquid (from Interfaces)getPhaseIndex("Liquid")Index of phase Liquid
IntegerPhaseLabelOverall (from Interfaces)0Overall phase label
IntegerPhaseLabelVapor (from Interfaces)getPhaseIndex("Vapor")Index of phase Vapor

Contents

NameDescription
PropertySetupInformation
getPhaseInformation
getNumberOfPhases
getNumberOfCompounds
ThermoProperties
Properties
MultiPhaseProperties
Auxilary
SatPhaseEquilibriumProperties
UnitBasis
getPhasesReturns a preconfigured Phases record