Feeds to a unit operation are in equilibrium when the unit operation is calculated. getFeedEquilibrium can be obtained to obtain the equilibrium values. To calculate an equilibrium other than at feed conditions, use getEquilibrium.
[phases,phasefractions,compositions,T,P]=getFeedEquilibrium(feedIndex)
feedIndex
Integer; the index of the feed to obtain the property from. The index must be between one and the number of feeds - inclusive.
phases
String; name of each phase present at equilibrium
phasefractions
Double; phase fraction for each phase present at equilibrium. Column vector with one value for each phase.
compositions
Double; composition (mole fractions) for each phase present at equilibrium. Matrix with 1 column for each compound, and one row for each phase present
at equilibrium.
T
Double; equilibrium temperature (K)
P
Double; equilibrium pressure (Pa)
-->[phases,phaseFractions,composition]=getFeedEquilibrium(1)
composition =
0.1349325 0.4033096 0.0596304 0.4021275
0.4374615 0.0002365 0.5601396 0.0021624
phaseFractions =
0.6196481
0.3803519
phases =
!Vapor !
! !
!Liquid !
-->[phases,phaseFractions,composition,T,P]=getFeedEquilibrium(2)
P =
100000.
T =
350.
composition =
0.25 0.25 0.25 0.25
phaseFractions =
1.
phases =
Vapor