Class ComponentWonWax

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

public class ComponentWonWax extends ComponentSolid

ComponentWonWax class.

Version:
$Id: $Id
Author:
rahmat
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

    • ComponentWonWax

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

      Constructor for ComponentWonWax.

      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
    • getWonActivityCoefficient

      public double getWonActivityCoefficient(PhaseInterface phase1)

      getWonActivityCoefficient.

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

      public double getWonVolume(PhaseInterface phase1)

      getWonVolume.

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

      public double getWonParam(PhaseInterface phase1)

      getWonParam.

      Parameters:
      phase1 - a PhaseInterface object
      Returns:
      a double