capeFlash performs a thermodynamic equilibrium calculation at specified conditions. The result is presented as a table of all defined phases. For present phases, a valid phase fraction and composition is listed. For phases that are not present at equilibrium, the composition values are set to zero. In addition to phase information, pressure and temperature are returned. The Flash function returns a matrix with (2 + number of compounds) rows and (3 + number of phases) columns; the size of the matrix is indicated at the control sheet.
Note that when the Material Object of the simulator only provides CAPE-OPEN version 1.0 support, and not CAPE-OPEN version 1.1 support, the total list of phases is not known to the Excel CAPE-OPEN Unit Operation. Therefore, the flash results are returned only for the phases that are present; the layout of the flash result matrix therefore depends on the phases that are present at phase equilibrium.
Feed streams are already flashed. So instead of using capeFlash at feed conditions, use capeFlashedFeed, that returns outputs in the same format.
Syntax:
=capeFlash(specProp1, specValue1, specProp2, specValue2, moleFractions)
Arguments:
specProp1 | Property for first flash specification. In addition to all overall properties, properties Pressure and Temperature can be used as flash specification, as well as special property vaporFraction (molar phase fraction of the vapor phase). |
specValue1 | Value of the first flash specification property. |
specProp2 | Property for second flash specification. |
specValue2 | Value of the second flash specification property. |
moleFractions | Overall composition for which to calculate the equilibrium; number of values must correspond to the number of compounds. Composition must be normalized. |
This function can be inserted by clicking the Phase Equilibrium button on the Unit Operation ribbon.
Example:
=capeFlash("temperature", 160, "pressure", 1e5, F3:F4)
may result the following matrix:
In this example, phase Liquid2 does not exist at equilibrium.
This function can be inserted by clicking the Phase Equilibrium button on the Unit Operation ribbon.