Class PhaseKentEisenberg

All Implemented Interfaces:
Serializable, Cloneable, PhaseGEInterface, PhaseInterface, ThermodynamicConstantsInterface

public class PhaseKentEisenberg extends PhaseGENRTL

PhaseKentEisenberg class.

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

    • serialVersionUID

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

    • PhaseKentEisenberg

      public PhaseKentEisenberg()

      Constructor for PhaseKentEisenberg.

  • Method Details

    • addComponent

      public void addComponent(String name, double moles, double molesInPhase, int compNumber)

      Add component to component array and update moles variables.

      Specified by:
      addComponent in interface PhaseInterface
      Overrides:
      addComponent in class PhaseGENRTL
      Parameters:
      name - Name of component.
      moles - Total number of moles of component.
      molesInPhase - Number of moles in phase.
      compNumber - Index number of component in phase object component array.
    • getActivityCoefficient

      public double getActivityCoefficient(int k, int p)

      getActivityCoefficient.

      Specified by:
      getActivityCoefficient in interface PhaseInterface
      Overrides:
      getActivityCoefficient in class Phase
      Parameters:
      k - a int
      p - a int
      Returns:
      a double