Class ComponentHydrateGF

All Implemented Interfaces:
Serializable, Cloneable, ComponentInterface, ThermodynamicConstantsInterface

public class ComponentHydrateGF extends ComponentHydrate

ComponentHydrateGF class.

Version:
$Id: $Id
Author:
esol
See Also:
  • Field Details

    • serialVersionUID

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

      static org.apache.logging.log4j.Logger logger
      Logger object for class.
    • Ak

      double[][] Ak
    • Bk

      double[][] Bk
  • Constructor Details

    • ComponentHydrateGF

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

      Constructor for ComponentHydrateGF.

      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 numberOfComps, double temp, double pres)

      Calculate, set and return fugacity coefficient.

      Overrides:
      fugcoef in class ComponentHydrate
      Parameters:
      phase - a PhaseInterface object to get fugacity coefficient of.
      numberOfComps - a int
      temp - a double
      pres - a double
      Returns:
      Fugacity coefficient
    • fugcoef2

      public double fugcoef2(PhaseInterface phase, int numberOfComps, double temp, double pres)

      fugcoef2.

      Parameters:
      phase - a PhaseInterface object
      numberOfComps - a int
      temp - a double
      pres - a double
      Returns:
      a double
    • calcYKI

      public double calcYKI(int stucture, int cavityType, PhaseInterface phase)

      calcYKI.

      Overrides:
      calcYKI in class ComponentHydrate
      Parameters:
      stucture - a int
      cavityType - a int
      phase - a PhaseInterface object
      Returns:
      a double
    • calcCKI

      public double calcCKI(int stucture, int cavityType, PhaseInterface phase)

      calcCKI.

      Overrides:
      calcCKI in class ComponentHydrate
      Parameters:
      stucture - a int
      cavityType - a int
      phase - a PhaseInterface object
      Returns:
      a double