Class PhaseCSPsrkEos

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

public class PhaseCSPsrkEos extends PhaseSrkEos

PhaseCSPsrkEos class.

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

    • serialVersionUID

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

      double f_scale_mix
    • h_scale_mix

      double h_scale_mix
    • refBWRSPhase

      PhaseSrkEos refBWRSPhase
    • brefBWRSPhase

      double brefBWRSPhase
    • acrefBWRSPhase

      double acrefBWRSPhase
    • mrefBWRSPhase

      double mrefBWRSPhase
  • Constructor Details

    • PhaseCSPsrkEos

      public PhaseCSPsrkEos()

      Constructor for PhaseCSPsrkEos.

  • Method Details

    • clone

      public PhaseCSPsrkEos clone()

      clone.

      Specified by:
      clone in interface PhaseInterface
      Overrides:
      clone in class PhaseSrkEos
      Returns:
      a PhaseInterface object
    • 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 PhaseSrkEos
      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.
    • init

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

      init.

      initType used in component.init()

      Calls component.init(initType)

      Specified by:
      init in interface PhaseInterface
      Overrides:
      init in class PhaseEos
      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.
    • getF

      public double getF()

      getF.

      Overrides:
      getF in class PhaseEos
      Returns:
      a double
    • dFdV

      public double dFdV()

      Calculate derivative of F per Volume, i.e., dF/dV.

      Specified by:
      dFdV in interface PhaseInterface
      Overrides:
      dFdV in class PhaseEos
      Returns:
      a double
    • dFdVdV

      public double dFdVdV()

      dFdVdV.

      Specified by:
      dFdVdV in interface PhaseInterface
      Overrides:
      dFdVdV in class PhaseEos
      Returns:
      a double
    • dFdVdVdV

      public double dFdVdVdV()

      dFdVdVdV.

      Overrides:
      dFdVdVdV in class PhaseEos
      Returns:
      a double
    • getF_scale_mix

      public double getF_scale_mix()
      Getter for property f_scale_mix.
      Returns:
      Value of property f_scale_mix.
    • setF_scale_mix

      public void setF_scale_mix(double f_scale_mix)
      Setter for property f_scale_mix.
      Parameters:
      f_scale_mix - New value of property f_scale_mix.
    • getH_scale_mix

      public double getH_scale_mix()
      Getter for property h_scale_mix.
      Returns:
      Value of property h_scale_mix.
    • setH_scale_mix

      public void setH_scale_mix(double h_scale_mix)
      Setter for property h_scale_mix.
      Parameters:
      h_scale_mix - New value of property h_scale_mix.
    • getBrefBWRSPhase

      public double getBrefBWRSPhase()
      Getter for property brefBWRSPhase.
      Returns:
      Value of property brefBWRSPhase.
    • setBrefBWRSPhase

      public void setBrefBWRSPhase(double brefBWRSPhase)
      Setter for property brefBWRSPhase.
      Parameters:
      brefBWRSPhase - New value of property brefBWRSPhase.
    • getAcrefBWRSPhase

      public double getAcrefBWRSPhase()
      Getter for property acrefBWRSPhase.
      Returns:
      Value of property acrefBWRSPhase.
    • setAcrefBWRSPhase

      public void setAcrefBWRSPhase(double acrefBWRSPhase)
      Setter for property acrefBWRSPhase.
      Parameters:
      acrefBWRSPhase - New value of property acrefBWRSPhase.
    • getRefBWRSPhase

      public PhaseSrkEos getRefBWRSPhase()
      Getter for property refBWRSPhase.
      Returns:
      Value of property refBWRSPhase.
    • setRefBWRSPhase

      public void setRefBWRSPhase(PhaseBWRSEos refBWRSPhase)
      Setter for property refBWRSPhase.
      Parameters:
      refBWRSPhase - New value of property refBWRSPhase.
    • molarVolume

      public double molarVolume(double pressure, double temperature, double A, double B, PhaseType pt) throws IsNaNException, TooManyIterationsException

      molarVolume.

      Specified by:
      molarVolume in interface PhaseInterface
      Overrides:
      molarVolume in class PhaseEos
      Parameters:
      pressure - a double
      temperature - a double
      A - a double
      B - a double
      pt - the PhaseType of the phase
      Returns:
      a double
      Throws:
      IsNaNException - if any.
      TooManyIterationsException - if any.