Class ComponentGENRTLmodifiedHV

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

public class ComponentGENRTLmodifiedHV extends ComponentGeNRTL

ComponentGENRTLmodifiedHV class.

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

    • serialVersionUID

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

    • ComponentGENRTLmodifiedHV

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

      Constructor for ComponentGENRTLmodifiedHV.

      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

    • getGamma

      public double getGamma(PhaseInterface phase, int numberOfComponents, double temperature, double pressure, PhaseType pt, double[][] HValpha, double[][] HVgij, 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
      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, double[][] HValpha, double[][] HVgij, double[][] HVgijT, 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
      HVgijT - an array of type double
      intparam - an array of type double
      mixRule - an array of String objects
      Returns:
      a double