© 2024 Jasper van Baten, AmsterCHEM

getFeedEquilibrium

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.

Syntax

[phases,phasefractions,compositions,T,P]=getFeedEquilibrium(feedIndex)

Arguments:

feedIndex
Integer; the index of the feed to obtain the property from. The index must be between one and the number of feeds - inclusive.

Returns:

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)

Example

-->[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   

INDEX
Acknowledgements
Additional files
Boolean parameters
Calculation
compNames
Dimensionality
Disclaimer
DOs and DONTs
Error trapping
Examples
Feeds
Files
Formulas
Function reference
getAggregationState
getAggregationStateName
getCompoundConstant
getEquilibrium
getEquilibriumProperty
getFeedEquilibrium
getFeedProp
getNumberOfFeeds
getNumberOfProducts
getParameter
getPDependentProperty
getPropertyUnitOfMeasure
getSinglePhaseProperty
getTDependentProperty
getTwoPhaseProperty
getUnitOperationName
Global variables
Integer parameters
License
Loading models
logMessage
Model files
nComp
nPhase
Parameters
phaseAggregationStates
phaseNames
Products
Real parameters
Reports
Requirements
Saving models
SCI files
setParameter
setProduct
setReport
String parameters
SUM files
Welcome
CONTENT
 Welcome
 Feed and product ports
 Parameters
 Reports
 SciLab Calculation Script
 Additional files
 Global variables
 Function reference
 getAggregationState
 getAggregationStateName
 getCompoundConstant
 getEquilibrium
 getEquilibriumProperty
 getFeedEquilibrium
 getFeedProp
 getNumberOfFeeds
 getNumberOfProducts
 getParameter
 getPDependentProperty
 getPropertyUnitOfMeasure
 getSinglePhaseProperty
 getTDependentProperty
 getTwoPhaseProperty
 getUnitOperationName
 logMessage
 setParameter
 setProduct
 setReport
 Saving and loading models
 License and disclaimer