Enum Class PhaseType
- All Implemented Interfaces:
Serializable, Comparable<PhaseType>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGas hydrate phase type.Asphaltene-rich liquid phase for Pedersen's liquid-liquid approach. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PhaseTypeGet PhaseType by desc.static PhaseTypeGet PhaseType by name.static PhaseTypebyValue(int value) Get PhaseType by value.getDesc()Getter for property desc.intgetValue()Deprecated.static PhaseTypeReturns the enum constant of this class with the specified name.static PhaseType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LIQUID
-
GAS
-
OIL
-
AQUEOUS
-
HYDRATE
Gas hydrate phase type.Gas hydrates are crystalline solid compounds formed when water molecules create a cage-like structure around small guest molecules (hydrate formers) such as methane, ethane, propane, CO2, H2S, etc. Structure I and Structure II hydrates are supported.
-
WAX
-
SOLID
-
SOLIDCOMPLEX
-
ASPHALTENE
-
LIQUID_ASPHALTENE
Asphaltene-rich liquid phase for Pedersen's liquid-liquid approach.This phase type is used when modeling asphaltene precipitation as a liquid-liquid equilibrium (Pedersen's classical cubic EOS approach) rather than as a solid precipitate. The LIQUID_ASPHALTENE phase behaves like a heavy oil phase with EOS-calculated properties.
-
-
Field Details
-
value
private final int valueHolder for old style integer pt. -
desc
Holder for old style string phasetypename. -
copyOfValues
-
-
Constructor Details
-
PhaseType
Constructor for PhaseType enum.- Parameters:
desc- Single word descriptor of phase typevalue- Numeric value index for phase type
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
Deprecated.Getter for property value.- Returns:
- Numeric index of phase type
-
getDesc
-
byName
-
byDesc
-
byValue
Get PhaseType by value.- Parameters:
value- Value to get PhaseType for.- Returns:
- PhaseType object
-