© 2024 Jasper van Baten, AmsterCHEM

getAggregationState

getAggregationState obtains a number identifying the aggregation state of a given phase name. Can be used in conjunction with getFeedEquilibrium or getEquilibrium to check the phases returned in thermodynamic equilibrium.

Syntax

stateID=getAggregationState(phaseName)

Arguments:

phaseName
String; name of the phase to check. Defined phases depend on the underlying thermodynamic system.

Returns:

stateID
Integer; identifier for the aggregation state. The following identifiers are defined:


//definition of phase constants
AGGSTATE_UNKNOWN=0;
AGGSTATE_VAPOR=1;
AGGSTATE_LIQUID=2;
AGGSTATE_SOLID=3;

Example

» getAggregationState('liquid')==AGGSTATE_LIQUID

ans =

     1

» getAggregationState('liquid')==AGGSTATE_VAPOR

ans =

     0
INDEX
Acknowledgements
Additional files
Boolean parameters
Calculation
compNames
Dimensionality
Disclaimer
DOs and DONTs
Error trapping
Example
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
M files
Model files
nComp
nPhase
Parameters
phaseAggregationStates
phaseNames
Products
Real parameters
Reports
Requirements
Saving models
setParameter
setProduct
setReport
String parameters
SUM files
Welcome
CONTENT
 Welcome
 Feed and product ports
 Parameters
 Reports
 Matlab 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
 Persistence in AspenPlus
 License and disclaimer