Class PhaseGE

java.lang.Object
neqsim.thermo.phase.Phase
neqsim.thermo.phase.PhaseGE
All Implemented Interfaces:
Serializable, Cloneable, PhaseGEInterface, PhaseInterface, ThermodynamicConstantsInterface
Direct Known Subclasses:
PhaseDesmukhMather, PhaseDuanSun, PhaseGENRTL, PhaseGEUniquac, PhaseGEWilson, PhasePitzer

public abstract class PhaseGE extends Phase implements PhaseGEInterface

Abstract class PhaseGE.

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

  • Constructor Details

    • PhaseGE

      public PhaseGE()

      Constructor for PhaseGE.

  • Method Details

    • init

      public void init(double temperature, double pressure, double totalNumberOfMoles, double beta, int numberOfComponents, PhaseType pt, int phaseNum)

      init.

      Parameters:
      temperature - a double
      pressure - a double
      totalNumberOfMoles - a double
      beta - a double
      numberOfComponents - a int
      pt - the PhaseType of the phase
      phaseNum - a int
    • init

      public void init(double totalNumberOfMoles, int numberOfComponents, int initType, PhaseType pt, double beta)

      init.

      initType used in component.init()

      Specified by:
      init in interface PhaseInterface
      Overrides:
      init in class Phase
      Parameters:
      totalNumberOfMoles - Total number of moles in all phases of Stream.
      numberOfComponents - Number of components in system.
      initType - a int. Use 0 to init, and 1 to reset.
      pt - Type of phase.
      beta - Mole fraction of this phase in system.
    • setMixingRuleGEModel

      public void setMixingRuleGEModel(String name)

      setMixingRuleGEModel.

      Specified by:
      setMixingRuleGEModel in interface PhaseInterface
      Parameters:
      name - a String object
    • getMixingRule

      public EosMixingRulesInterface getMixingRule()
      Get mixing rule.
      Specified by:
      getMixingRule in interface PhaseInterface
      Returns:
      a MixingRulesInterface
    • setMixingRule

      public void setMixingRule(MixingRuleTypeInterface mr)

      setMixingRule.

      Specified by:
      setMixingRule in interface PhaseInterface
      Parameters:
      mr - a MixingRuleTypeInterface
    • resetMixingRule

      public void resetMixingRule(MixingRuleTypeInterface mr)

      resetMixingRule.

      Specified by:
      resetMixingRule in interface PhaseInterface
      Parameters:
      mr - a int
    • getActivityCoefficientSymetric

      public double getActivityCoefficientSymetric(int k)

      getActivityCoefficientSymetric.

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

      public double getActivityCoefficient(int k)

      getActivityCoefficient.

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

      public double getActivityCoefficientInfDilWater(int k, int p)

      getActivityCoefficientInfDilWater.

      Parameters:
      k - a int
      p - a int
      Returns:
      a double
    • getActivityCoefficientInfDil

      public double getActivityCoefficientInfDil(int k)

      getActivityCoefficientInfDil.

      Parameters:
      k - a int
      Returns:
      a double
    • getEnthalpy

      public double getEnthalpy()
      method to return enthalpy of a phase in unit Joule.
      Specified by:
      getEnthalpy in interface PhaseInterface
      Overrides:
      getEnthalpy in class Phase
      Returns:
      a double
    • getEntropy

      public double getEntropy()
      method to return entropy of the phase.
      Specified by:
      getEntropy in interface PhaseInterface
      Overrides:
      getEntropy in class Phase
      Returns:
      a double
    • getCp

      public double getCp()
      method to return specific heat capacity (Cp).
      Specified by:
      getCp in interface PhaseInterface
      Overrides:
      getCp in class Phase
      Returns:
      Cp in unit J/K
    • getCv

      public double getCv()
      method to return specific heat capacity (Cv).
      Specified by:
      getCv in interface PhaseInterface
      Overrides:
      getCv in class Phase
      Returns:
      Cv in unit J/K
    • getZ

      public double getZ()

      getZ.

      Specified by:
      getZ in interface PhaseInterface
      Overrides:
      getZ in class Phase
      Returns:
      a double
    • getSoundSpeed

      public double getSoundSpeed()
      Get the speed of sound of a phase note: implemented in phaseEos.
      Specified by:
      getSoundSpeed in interface PhaseInterface
      Specified by:
      getSoundSpeed in class Phase
      Returns:
      speed of sound in m/s
    • getJouleThomsonCoefficient

      public double getJouleThomsonCoefficient()
      Get the Joule Thomson Coefficient of a phase.

      Return speed of JT coefficient of water at K/bar (assumed constant) -0.0125

      Specified by:
      getJouleThomsonCoefficient in interface PhaseInterface
      Overrides:
      getJouleThomsonCoefficient in class Phase
      Returns:
      Joule Thomson coefficient in K/bar
    • getDensity

      public double getDensity()
      Get density of a phase note: does not use Peneloux volume correction.

      note: at the moment return density of water (997 kg/m3)

      Specified by:
      getDensity in interface PhaseInterface
      Overrides:
      getDensity in class Phase
      Returns:
      density with unit kg/m3
    • getMolarVolume

      public double getMolarVolume()
      method to return molar volume of the phase note: without Peneloux volume correction.
      Specified by:
      getMolarVolume in interface PhaseInterface
      Overrides:
      getMolarVolume in class Phase
      Returns:
      molar volume volume in unit m3/mol*1e5