packageInterfaces
Multi-phase multi-component interface
Extends from Modelica.Icons.InterfacesPackage (Icon for packages containing interfaces).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | mediumName | "unusablePartialMedium" | Name of the medium |
| String[:] | substanceNames | {mediumName} | Array of substance names |
| Integer | nC | size(substanceNames, 1) | Number of compounds |
| Modelica.SIunits.MolarMass | MMX | Array of molar mass for each compound | |
| Integer | nP | 2 | Number of potential phases |
| Phases | phases | List of supported phases with additional information | |
| Modelica.SIunits.MassFraction | reference_X | fill(1/nC, nC) | Reference mass fractions |
| Modelica.SIunits.MoleFraction | reference_Y | fill(1/nC, nC) | Reference molar fraction |
| Modelica.SIunits.AbsolutePressure | p_default | 101325 | Default value for pressure of medium (for initialization) |
| Modelica.SIunits.Temperature | T_default | 300 | Default value for temperature of medium (for initialization) |
| Boolean | excludeEnthalpyOfFormation | true | If true, enthalpy of formation Hf is not included in specific enthalpy h |
| Boolean | externalEquilibriumSolver | External equilibrium solver provided, may be used to have a different application implementation | |
| Integer | PhaseLabelLiquid | getPhaseIndex("Liquid") | Index of phase Liquid |
| Integer | PhaseLabelOverall | 0 | Overall phase label |
| Integer | PhaseLabelVapor | getPhaseIndex("Vapor") | Index of phase Vapor |
Contents
| Name | Description |
|---|---|
| Compund , data that may be used to identify a compound | |
| Phases | Definition and additional information of supported phases |
| Inputs | Input type |
| SatInputs | Input type |
| checkPhaseNames | Check phaseNames so they are included in phaseList |
| compoundsIndex | returns position of compound in X array, -1 if not present |
| createPhaseFractionVector | Create a phase fraction vector, unset phase element are distributed evenly so sum(phaseVector) = 1 |
| createPhaseSubstanceVector | Create a phase substance vector, unset phase element are set to 0 |
| createPresentPhaseVector | Create a present phase vector, a vector with phase index corresponding to phaseId |
| getPhaseIndex | returns position of phase in phaseList array, -1 if not present |
| Compute mole fraction vector from mass fraction vector | |
| Compute mass fractions vector from mole fractions and molar masses | |
| Activity coefficient | |
| BaseMultiPhaseProperties | |
| Critical properties | |
| Base properties (p, d, T, h, u, X) of a medium |