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.
stateID=getAggregationState(phaseName)
phaseName
String; name of the phase to check. Defined phases depend on the underlying thermodynamic system.
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;
-->getAggregationState("liquid")==AGGSTATE_LIQUID
ans =
T
-->getAggregationState("vapor")==AGGSTATE_LIQUID
ans =
F