Class ComponentGEUnifac

All Implemented Interfaces:
Serializable, Cloneable, ComponentGEInterface, ComponentInterface, ThermodynamicConstantsInterface
Direct Known Subclasses:
ComponentGEUnifacPSRK, ComponentGEUnifacUMRPRU

public class ComponentGEUnifac extends ComponentGEUniquac

ComponentGEUnifac class.

Version:
$Id: $Id
Author:
Even Solbraa
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.
    • unifacGroups

      ArrayList<UNIFACgroup> unifacGroups
    • unifacGroupsArray

      UNIFACgroup[] unifacGroupsArray
    • lnGammakComp

      double[] lnGammakComp
    • lnGammakMix

      double[] lnGammakMix
    • Q

      double Q
    • R

      double R
    • numberOfUnifacSubGroups

      int numberOfUnifacSubGroups
  • Constructor Details

    • ComponentGEUnifac

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

      Constructor for ComponentGEUnifac.

      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

    • addUNIFACgroup

      public void addUNIFACgroup(int p, int n)

      addUNIFACgroup.

      Parameters:
      p - a int
      n - a int
    • getQ

      public double getQ()

      getQ.

      Returns:
      a double
    • getR

      public double getR()
      Getter for property R.
      Returns:
      Value of property R.
    • fugcoef

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

      Calculate, set and return fugacity coefficient.

      Overrides:
      fugcoef in class ComponentGEUniquac
      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
    • calclnGammak

      public void calclnGammak(int k, PhaseInterface phase)

      calclnGammak.

      Parameters:
      k - a int
      phase - a PhaseInterface object
    • getGamma

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

      getGamma.

      Overrides:
      getGamma in class ComponentGEUniquac
      Parameters:
      phase - a PhaseInterface object
      numberOfComponents - a int
      temperature - a double
      pressure - a double
      pt - the PhaseType of the phase
      Returns:
      a double
    • fugcoefDiffPres

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

      fugcoefDiffPres.

      Overrides:
      fugcoefDiffPres in class ComponentGEUniquac
      Parameters:
      phase - a PhaseInterface object
      numberOfComponents - a int
      temperature - a double
      pressure - a double
      pt - the PhaseType of the phase
      Returns:
      a double
    • fugcoefDiffTemp

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

      fugcoefDiffTemp.

      Overrides:
      fugcoefDiffTemp in class ComponentGEUniquac
      Parameters:
      phase - a PhaseInterface object
      numberOfComponents - a int
      temperature - a double
      pressure - a double
      pt - the PhaseType of the phase
      Returns:
      a double
    • getUnifacGroups2

      public ArrayList<UNIFACgroup> getUnifacGroups2()
      Getter for property unifacGroups.
      Returns:
      an ArrayList of UNIFACgroup objects. Value of property unifacGroups.
    • getUnifacGroups

      public UNIFACgroup[] getUnifacGroups()

      Getter for the field unifacGroups.

      Returns:
      an array of UNIFACgroup objects
    • getUnifacGroup2

      public UNIFACgroup getUnifacGroup2(int i)

      getUnifacGroup2.

      Parameters:
      i - a int
      Returns:
      a UNIFACgroup object
    • getUnifacGroup

      public UNIFACgroup getUnifacGroup(int i)

      getUnifacGroup.

      Parameters:
      i - a int
      Returns:
      a UNIFACgroup object
    • setUnifacGroups

      public void setUnifacGroups(ArrayList<UNIFACgroup> unifacGroups)
      Setter for property unifacGroups.
      Parameters:
      unifacGroups - New value of property unifacGroups.
    • getNumberOfUNIFACgroups

      public int getNumberOfUNIFACgroups()

      getNumberOfUNIFACgroups.

      Returns:
      a int
    • setQ

      public void setQ(double Q)
      Setter for property Q.
      Parameters:
      Q - New value of property Q.
    • setR

      public void setR(double R)
      Setter for property R.
      Parameters:
      R - New value of property R.