Class ComponentGEWilson

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

public class ComponentGEWilson extends ComponentGE

ComponentGEWilson class.

Version:
$Id: $Id
Author:
Even Solbraa
See Also:
  • Field Details

    • serialVersionUID

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

    • ComponentGEWilson

      public ComponentGEWilson(String name, double moles, double molesInPhase, int compIndex)

      Constructor for ComponentGEWilson.

      Parameters:
      name - Name of component.
      moles - Total number of moles of component.
      molesInPhase - Number of moles in phase.
      compIndex - Index number of component in phase object component array.
  • Method Details

    • fugcoef

      public double fugcoef(PhaseInterface phase, int numberOfComponents, double temperature, double pressure, PhaseType pt)

      Calculate, set and return fugacity coefficient.

      Parameters:
      phase - a PhaseInterface object to get fugacity coefficient of.
      numberOfComponents - a int
      temperature - a double
      pressure - a double
      pt - the PhaseType of the phase
      Returns:
      Fugacity coefficient
    • getGamma

      public double getGamma(PhaseInterface phase, int numberOfComponents, double temperature, double pressure, PhaseType pt)

      getGamma.

      Parameters:
      phase - a PhaseInterface object
      numberOfComponents - a int
      temperature - a double
      pressure - a double
      pt - the PhaseType of the phase
      Returns:
      a double
    • 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
    • getWilsonActivityCoefficient

      public double getWilsonActivityCoefficient(PhaseInterface phase1)

      getWilsonActivityCoefficient.

      Parameters:
      phase1 - a PhaseInterface object
      Returns:
      a double
    • getCharEnergyParamter

      public double getCharEnergyParamter(PhaseInterface phase1, int comp1, int comp2)

      getCharEnergyParamter.

      Parameters:
      phase1 - a PhaseInterface object
      comp1 - a int
      comp2 - a int
      Returns:
      a double
    • getWilsonInteractionEnergy

      public double getWilsonInteractionEnergy(PhaseInterface phase1)

      getWilsonInteractionEnergy.

      Parameters:
      phase1 - a PhaseInterface object
      Returns:
      a double