Class PhaseGEUnifacPSRK

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

public class PhaseGEUnifacPSRK extends PhaseGEUnifac

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

    • PhaseGEUnifacPSRK

      public PhaseGEUnifacPSRK()

      Constructor for PhaseGEUnifacPSRK.

    • PhaseGEUnifacPSRK

      public PhaseGEUnifacPSRK(PhaseInterface phase, double[][] alpha, double[][] Dij, String[][] mixRule, double[][] intparam)

      Constructor for PhaseGEUnifacPSRK.

      Parameters:
      phase - a PhaseInterface object
      alpha - an array of type double
      Dij - an array of type double
      mixRule - an array of String objects
      intparam - an array of type double
  • 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 PhaseGEUnifac
      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.
    • setMixingRule

      public void setMixingRule(MixingRuleTypeInterface mr)

      setMixingRule.

      Specified by:
      setMixingRule in interface PhaseInterface
      Overrides:
      setMixingRule in class PhaseGEUnifac
      Parameters:
      mr - a MixingRuleTypeInterface
    • getExcessGibbsEnergy

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

      getExcessGibbsEnergy.

      Specified by:
      getExcessGibbsEnergy in interface PhaseGEInterface
      Overrides:
      getExcessGibbsEnergy in class PhaseGEUnifac
      Parameters:
      phase - a PhaseInterface object
      numberOfComponents - a int
      temperature - a double
      pressure - a double
      pt - the PhaseType of the phase
      Returns:
      a double
    • calcbij

      public void calcbij()

      calcbij.

    • calccij

      public void calccij()

      calccij.