Enum Class PhaseType

java.lang.Object
java.lang.Enum<PhaseType>
neqsim.thermo.phase.PhaseType
All Implemented Interfaces:
Serializable, Comparable<PhaseType>, Constable

public enum PhaseType extends Enum<PhaseType>
Types of phases.
Author:
ASMF
  • Enum Constant Details

    • LIQUID

      public static final PhaseType LIQUID
    • GAS

      public static final PhaseType GAS
    • OIL

      public static final PhaseType OIL
    • AQUEOUS

      public static final PhaseType AQUEOUS
    • HYDRATE

      public static final PhaseType 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

      public static final PhaseType WAX
    • SOLID

      public static final PhaseType SOLID
    • SOLIDCOMPLEX

      public static final PhaseType SOLIDCOMPLEX
    • ASPHALTENE

      public static final PhaseType ASPHALTENE
    • LIQUID_ASPHALTENE

      public static final PhaseType 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 value
      Holder for old style integer pt.
    • desc

      private final String desc
      Holder for old style string phasetypename.
    • copyOfValues

      private static final PhaseType[] copyOfValues
  • Constructor Details

    • PhaseType

      private PhaseType(String desc, int value)
      Constructor for PhaseType enum.
      Parameters:
      desc - Single word descriptor of phase type
      value - Numeric value index for phase type
  • Method Details

    • values

      public static PhaseType[] 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

      public static PhaseType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      @Deprecated public int getValue()
      Deprecated.
      Getter for property value.
      Returns:
      Numeric index of phase type
    • getDesc

      public String getDesc()
      Getter for property desc.
      Returns:
      Single word descriptor for phase type.
    • byName

      public static PhaseType byName(String name)
      Get PhaseType by name.
      Parameters:
      name - Name to get PhaseType for.
      Returns:
      PhaseType object
    • byDesc

      public static PhaseType byDesc(String desc)
      Get PhaseType by desc.
      Parameters:
      desc - Description to get PhaseType for.
      Returns:
      PhaseType object.
    • byValue

      public static PhaseType byValue(int value)
      Get PhaseType by value.
      Parameters:
      value - Value to get PhaseType for.
      Returns:
      PhaseType object