Class ComponentWaxWilson

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

public class ComponentWaxWilson extends ComponentSolid

ComponentWaxWilson 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.
  • Constructor Details

    • ComponentWaxWilson

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

      Constructor for ComponentWaxWilson.

      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 phase1)

      Calculate, set and return fugacity coefficient.

      Uses Claperyons equation to calculate the solid fugacity

      Specified by:
      fugcoef in interface ComponentInterface
      Overrides:
      fugcoef in class ComponentSolid
      Parameters:
      phase1 - a PhaseInterface object to get fugacity coefficient of.
      Returns:
      Fugacity coefficient
    • fugcoef2

      public double fugcoef2(PhaseInterface phase1)

      Calculate, set and return fugacity coefficient.

      Overrides:
      fugcoef2 in class ComponentSolid
      Parameters:
      phase1 - a PhaseInterface object to get fugacity coefficient of.
      Returns:
      Fugacity coefficient
    • getWilsonActivityCoefficient

      public double getWilsonActivityCoefficient(PhaseInterface phase1)

      getWilsonActivityCoefficient.

      Parameters:
      phase1 - a PhaseInterface object
      Returns:
      a double
    • getCharEnergyParamter

      public double getCharEnergyParamter(PhaseInterface phase1, int comp1, int comp2)

      getCharEnergyParamter.

      Parameters:
      phase1 - a PhaseInterface object
      comp1 - a int
      comp2 - a int
      Returns:
      a double
    • getWilsonInteractionEnergy

      public double getWilsonInteractionEnergy(PhaseInterface phase1)

      getWilsonInteractionEnergy.

      Parameters:
      phase1 - a PhaseInterface object
      Returns:
      a double