Class ComponentGePitzer

All Implemented Interfaces:
Serializable, Cloneable, ComponentGEInterface, ComponentInterface, ThermodynamicConstantsInterface

public class ComponentGePitzer extends ComponentGE
Component class for the Pitzer model.
Author:
Even Solbraa
See Also:
  • Field Details

    • serialVersionUID

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

    • ComponentGePitzer

      public ComponentGePitzer(String name, double moles, double molesInPhase, int compIndex)
      Constructor for ComponentGePitzer.
      Parameters:
      name - Name of component
      moles - total number of moles
      molesInPhase - moles in phase
      compIndex - component index
  • Method Details

    • fugcoef

      public double fugcoef(PhaseInterface phase)

      Calculate, set and return fugacity coefficient.

      Specified by:
      fugcoef in interface ComponentInterface
      Overrides:
      fugcoef in class ComponentGE
      Parameters:
      phase - a PhaseInterface object to get fugacity coefficient of.
      Returns:
      Fugacity coefficient
    • getGamma

      public double getGamma(PhaseInterface phase, int numberOfComponents, double temperature, double pressure, PhaseType pt, double[][] HValpha, double[][] HVgij, double[][] intparam, String[][] mixRule)

      getGamma.

      Parameters:
      phase - a PhaseInterface object
      numberOfComponents - a int
      temperature - a double
      pressure - a double
      pt - the PhaseType of the phase
      HValpha - an array of type double
      HVgij - an array of type double
      intparam - an array of type double
      mixRule - an array of String objects
      Returns:
      a double
    • getGamma

      public double getGamma(PhaseInterface phase, int numberOfComponents, double temperature, double pressure, PhaseType pt)
      Calculate activity coefficient using the Pitzer model.
      Parameters:
      phase - phase object
      numberOfComponents - number of components in phase
      temperature - temperature
      pressure - pressure
      pt - phase type
      Returns:
      activity coefficient
    • getMolality

      public double getMolality(PhaseInterface phase)

      getMolality.

      Specified by:
      getMolality in interface ComponentInterface
      Overrides:
      getMolality in class Component
      Parameters:
      phase - a PhaseInterface object
      Returns:
      a double