|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.chemistry.vapor.VLEContext
public class VLEContext
This class provides the context for the application.
| Constructor Summary | |
|---|---|
VLEContext()
|
|
| Method Summary | |
|---|---|
double |
calcBUBLP(double T)
Calculates the BUBL P at the given temperature. |
double |
calcBUBLT(double P)
Calculates the BUBL T at the given pressure. |
double |
calcDEWP(double T)
Calculates the DEW P at the given temperature. |
double |
calcDEWT(double P)
Calculates the DEW T at the given pressure. |
double |
calcFlashPoint(double P,
double T)
Calculates the flash point compositions at given P and T. |
static IActivityCalculator |
getActivityCalculator(int activityMethod)
Returns the instance of actual activity calculator class given the method ID. |
int |
getActivityMethod()
Returns the currently selected activity method. |
static java.util.ArrayList |
getActivityMethodList()
Returns the list of activity methods supported by application. |
ComponentData[] |
getComponents()
Returns the list of components in the current system. |
static IFugacityCalculator |
getFugacityCalculator(int fugacityMethod)
Returns the instance of actual fugacity calculator class given the method ID. |
int |
getFugacityMethod()
Returns the currently selected fugacity method. |
static java.util.ArrayList |
getFugacityMethodList()
Returns the list of fugacity methods supported by application. |
double[] |
getLiquidMoleFractions()
Returns the liquid mole fractions of the components. |
int |
getNumOfComps()
Returns the number of components in current system. |
double[] |
getVapourMoleFractions()
Returns the vapour mole fractions of the components. |
static void |
initialize()
Initialize the context for the application. |
void |
setActivityMethod(int method,
java.lang.Object[] params)
Sets the activity method for calculations. |
void |
setComponents(ComponentData[] compData)
Sets the list of components for the current system. |
void |
setFugacityMethod(int method)
Sets the fugacity method for calculations. |
void |
setLiquidMoleFractions(double[] fractions)
Sets the liquid mole fractions of the components. |
void |
setVapourMoleFractions(double[] fractions)
Sets the vapour mole fractions of the components. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VLEContext()
| Method Detail |
|---|
public static void initialize()
public static java.util.ArrayList getActivityMethodList()
public static java.util.ArrayList getFugacityMethodList()
public int getNumOfComps()
public int getActivityMethod()
public void setActivityMethod(int method,
java.lang.Object[] params)
throws VLEException
method - Method IDparams - Optional parameter list for the methods
VLEException - DOCUMENT ME!public int getFugacityMethod()
public void setFugacityMethod(int method)
method - Method IDpublic ComponentData[] getComponents()
public void setComponents(ComponentData[] compData)
compData - DOCUMENT ME!public double[] getVapourMoleFractions()
public void setVapourMoleFractions(double[] fractions)
fractions - DOCUMENT ME!public double[] getLiquidMoleFractions()
public void setLiquidMoleFractions(double[] fractions)
fractions - DOCUMENT ME!public double calcBUBLP(double T)
T - DOCUMENT ME!
public double calcDEWP(double T)
T - DOCUMENT ME!
public double calcBUBLT(double P)
P - DOCUMENT ME!
public double calcDEWT(double P)
P - DOCUMENT ME!
public double calcFlashPoint(double P,
double T)
throws VLEException
P - DOCUMENT ME!T - DOCUMENT ME!
VLEException - DOCUMENT ME!public static IActivityCalculator getActivityCalculator(int activityMethod)
activityMethod - DOCUMENT ME!
public static IFugacityCalculator getFugacityCalculator(int fugacityMethod)
fugacityMethod - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||