Class PhaseGEUnifacUMRPRU

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

public class PhaseGEUnifacUMRPRU extends PhaseGEUnifac

PhaseGEUnifacUMRPRU 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.
    • Qmix

      double[] Qmix
    • QmixdN

      double[][] QmixdN
    • gropuNames

      String[] gropuNames
    • VCommontemp

      double VCommontemp
    • FCommontemp

      double FCommontemp
  • Constructor Details

    • PhaseGEUnifacUMRPRU

      public PhaseGEUnifacUMRPRU()

      Constructor for PhaseGEUnifacUMRPRU.

    • PhaseGEUnifacUMRPRU

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

      Constructor for PhaseGEUnifacUMRPRU.

      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

    • calcCommontemp

      public void calcCommontemp(PhaseInterface phase, int numberOfComponents, double temperature, double pressure, PhaseType pt)
      Calculate common temp.
      Parameters:
      phase - a PhaseInterface
      numberOfComponents - a int
      temperature - a double
      pressure - a double
      pt - the PhaseType of the phase
    • getVCommontemp

      public double getVCommontemp()

      getVCommontemp.

      Returns:
      a double
    • getFCommontemp

      public double getFCommontemp()

      getFCommontemp.

      Returns:
      a double
    • 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
    • initQmix

      public void initQmix()

      initQmix.

    • initQmixdN

      public void initQmixdN()

      initQmixdN.

    • getQmix

      public double getQmix(String name)

      getQmix.

      Parameters:
      name - a String object
      Returns:
      a double
    • getQmixdN

      public double[] getQmixdN(String name)

      getQmixdN.

      Parameters:
      name - a String object
      Returns:
      an array of type double
    • calcaij

      public void calcaij()

      calcaij.

      Overrides:
      calcaij in class PhaseGEUnifac
    • calcbij

      public void calcbij()

      calcbij.

    • calccij

      public void calccij()

      calccij.