© 2021 Jasper van Baten, AmsterCHEM

capeFlash

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 Phase Equilibrium button on the Unit Operation ribbon.

Example:

=capeFlash("temperature", 160, "pressure", 1e5, F3:F4)

may result the following matrix:

Flash results

In this example, phase Liquid2 does not exist at equilibrium.

This function can be inserted by clicking the Phase Equilibrium Phase Equilibrium button on the Unit Operation ribbon.

INDEX
add-In
aggregation state
available properties
capeCompoundConstant
capePropertyUnit
capeFlash
capeFlashedFeed
capeOverallFeedProperty
capeOverallProperty
capePDependentProperty
capeSinglePhaseProperty
capeCompoundNames
compound names
unit of measure
capeStateOfAggregation
capeTDependentProperty
capeTwoPhaseProperty
capeUnitOperationName
compound constants
control sheet
defined phases
Disclaimer
equilibrium calculations
examples
Excel solver
Export Model
feeds
flash calculations
getting started
Import Model
input parameters
Loading and storing models
macros
output parameters
overall properties
parameters
ports
pressure dependent properties
products
property calculations
quick reference
reports
requirements
run-time error
security
single phase properties
solver
state of aggregation
streams
temperature dependent properties
thermodynamic equilibrium calculations
thermodynamic property calculations
two-phase properties
unit operation name
Update links
validation
VBA
welcome
CONTENT
 Introduction
 Ports and streams
 Parameters
 Function reference
 capeUnitOperationName
 capeStateOfAggregation
 capeCompoundConstant
 capePropertyUnit
 capeCompoundNames
 capeTDependentProperty
 capePDependentProperty
 capeSinglePhaseProperty
 capeTwoPhaseProperty
 capeFlash
 capeFlashedFeed
 capeOverallProperty
 capeOverallFeedProperty
 The control sheet
 Using the Excel solver
 Using Macros
 Loading and storing models
 Persistence in AspenPlus
 Examples
 Disclaimer