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
| Type | Name | Default | Description |
|---|---|---|---|
| PropertySetupInformation | setupInfo | ||
| Boolean | printExternalFunctionCall | false | Print function calls to log if true |
| MultiPhaseMixture.Templates.ExternalObjects.ExternalMediaObject | eo | MultiPhaseMixture.Templates.ExternalObjects.ExternalMediaObject(setupInfo) | |
| String | mediumName (from Interfaces) | "unusablePartialMedium" | Name of the medium |
| String[:] | substanceNames (from Interfaces) | {mediumName} | Array of substance names |
| Integer | nC (from Interfaces) | size(substanceNames, 1) | Number of compounds |
| Modelica.SIunits.MolarMass | MMX (from Interfaces) | Array of molar mass for each compound | |
| Integer | nP (from Interfaces) | 2 | Number of potential phases |
| Phases | phases (from Interfaces) | List of supported phases with additional information | |
| Modelica.SIunits.MassFraction | reference_X (from Interfaces) | fill(1/nC, nC) | Reference mass fractions |
| Modelica.SIunits.MoleFraction | reference_Y (from Interfaces) | fill(1/nC, nC) | Reference molar fraction |
| Modelica.SIunits.AbsolutePressure | p_default (from Interfaces) | 101325 | Default value for pressure of medium (for initialization) |
| Modelica.SIunits.Temperature | T_default (from Interfaces) | 300 | Default value for temperature of medium (for initialization) |
| Boolean | excludeEnthalpyOfFormation (from Interfaces) | true | If true, enthalpy of formation Hf is not included in specific enthalpy h |
| Boolean | externalEquilibriumSolver (from Interfaces) | External equilibrium solver provided, may be used to have a different application implementation | |
| Integer | PhaseLabelLiquid (from Interfaces) | getPhaseIndex("Liquid") | Index of phase Liquid |
| Integer | PhaseLabelOverall (from Interfaces) | 0 | Overall phase label |
| Integer | PhaseLabelVapor (from Interfaces) | getPhaseIndex("Vapor") | Index of phase Vapor |
Contents
| Name | Description |
|---|---|
| PropertySetupInformation | |
| Properties | |
| MultiPhaseProperties | |
| Auxilary | |
| UnitBasis | |
| getPhases | Returns a preconfigured Phases record |