Class ComponentGENRTLmodifiedWS

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

public class ComponentGENRTLmodifiedWS extends ComponentGeNRTL

ComponentGENRTLmodifiedWS class.

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

    • serialVersionUID

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

    • ComponentGENRTLmodifiedWS

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

      Constructor for ComponentGENRTLmodifiedWS.

      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

    • getlnGammadt

      public double getlnGammadt()

      getlnGammadt.

      Specified by:
      getlnGammadt in interface ComponentGEInterface
      Overrides:
      getlnGammadt in class ComponentGE
      Returns:
      a double
    • getlnGammadn

      public double getlnGammadn(int k)

      getlnGammadn.

      Specified by:
      getlnGammadn in interface ComponentGEInterface
      Overrides:
      getlnGammadn in class ComponentGE
      Parameters:
      k - a int
      Returns:
      a double
    • getGamma

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

      getGamma.

      Specified by:
      getGamma in interface ComponentGEInterface
      Overrides:
      getGamma in class ComponentGeNRTL
      Parameters:
      phase - a PhaseInterface object
      numberOfComponents - a int
      temperature - a double
      pressure - a double
      pt - the PhaseType of the phase
      WSalpha - an array of type double
      WSgij - 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, double[][] WSalpha, double[][] WSgij, double[][] WSgijT, 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
      WSalpha - an array of type double
      WSgij - an array of type double
      WSgijT - an array of type double
      intparam - an array of type double
      mixRule - an array of String objects
      Returns:
      a double