Class ComponentDesmukhMather

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

public class ComponentDesmukhMather extends ComponentGE

ComponentDesmukhMather class.

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

    • serialVersionUID

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

      private double deshMathIonicDiameter
    • logger

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

    • ComponentDesmukhMather

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

      Constructor for ComponentDesmukhMather.

      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.

      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)

      getGamma.

      Parameters:
      phase - a PhaseInterface object
      numberOfComponents - a int
      temperature - a double
      pressure - a double
      pt - the PhaseType of the phase
      Returns:
      a double
    • fugcoef

      public double fugcoef(PhaseInterface phase)

      Calculate, set and return fugacity coefficient.

      Specified by:
      fugcoef in interface ComponentInterface
      Overrides:
      fugcoef in class ComponentGE
      Parameters:
      phase - a PhaseInterface object to get fugacity coefficient of.
      Returns:
      Fugacity coefficient
    • getLngamma

      public double getLngamma()
      Getter for property lngamma.
      Returns:
      Value of property lngamma.
    • getMolality

      public double getMolality(PhaseInterface phase)

      getMolality.

      Specified by:
      getMolality in interface ComponentInterface
      Overrides:
      getMolality in class Component
      Parameters:
      phase - a PhaseInterface object
      Returns:
      a double