Class SystemPitzer

All Implemented Interfaces:
Serializable, Cloneable, SystemInterface

public class SystemPitzer extends SystemEos
Thermodynamic system using the Pitzer GE model for the aqueous phase and SRK EOS for gas and optional oil phases.

Supports vapor-liquid-liquid equilibrium (VLLE): gas (SRK), oil (SRK), aqueous (Pitzer). Enable VLLE by calling setMultiPhaseCheck(true) before running the flash.

Author:
esol
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version UID.
      See Also:
  • Constructor Details

    • SystemPitzer

      public SystemPitzer()
      Default constructor.
    • SystemPitzer

      public SystemPitzer(double T, double P)

      Constructor for SystemPitzer.

      Parameters:
      T - temperature in K
      P - pressure in bara
    • SystemPitzer

      public SystemPitzer(double T, double P, boolean checkForSolids)

      Constructor for SystemPitzer.

      Parameters:
      T - temperature in K
      P - pressure in bara
      checkForSolids - include solid phase
  • Method Details

    • setMultiPhaseCheck

      public void setMultiPhaseCheck(boolean multiPhaseCheck)
      method to specify if calculations should check for more than two fluid phases.

      Overridden to create a SRK EOS oil phase (not a Pitzer clone) when enabling multi-phase (VLLE) checks. Phase layout: [0]=SRK(gas), [1]=Pitzer(aqueous), [2]=SRK(oil).

      Specified by:
      setMultiPhaseCheck in interface SystemInterface
      Overrides:
      setMultiPhaseCheck in class SystemThermo
      Parameters:
      multiPhaseCheck - Specify if the calculations should check for more than two fluid phases. Default is two fluid phases (gas and liquid). If set to true the program will check for gas and multiple liquid phases (eg. gas-oil-aqueous).
    • setMixingRule

      public void setMixingRule(String typename)
      method to set the mixing rule for the fluid.
      Parameters:
      typename - a String object
    • clone

      public SystemPitzer clone()

      clone.

      Specified by:
      clone in interface SystemInterface
      Overrides:
      clone in class SystemThermo
      Returns:
      a SystemInterface object