Class ComponentCSPsrk

All Implemented Interfaces:
Serializable, Cloneable, ComponentEosInterface, ComponentInterface, ThermodynamicConstantsInterface

public class ComponentCSPsrk extends ComponentSrk

ComponentCSPsrk 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_i

      double f_scale_mix_i
    • h_scale_mix_i

      double h_scale_mix_i
    • refPhaseBWRS

      PhaseCSPsrkEos refPhaseBWRS
  • Constructor Details

    • ComponentCSPsrk

      public ComponentCSPsrk(String name, double moles, double molesInPhase, int compIndex)

      Constructor for ComponentCSPsrk.

      Parameters:
      name - Name of component.
      moles - Total number of moles of component.
      molesInPhase - Number of moles in phase.
      compIndex - Index number of component in phase object component array.
    • ComponentCSPsrk

      public ComponentCSPsrk(int number, double TC, double PC, double M, double a, double moles)

      Constructor for ComponentCSPsrk.

      Parameters:
      number - a int. Not used.
      TC - Critical temperature [K]
      PC - Critical pressure [bara]
      M - Molar mass
      a - Acentric factor
      moles - Total number of moles of component.
  • Method Details

    • clone

      public ComponentCSPsrk clone()

      clone.

      Specified by:
      clone in interface ComponentInterface
      Overrides:
      clone in class ComponentSrk
      Returns:
      a ComponentInterface object
    • init

      public void init(double temperature, double pressure, double totalNumberOfMoles, double beta, int initType)

      Initialize component.

      Specified by:
      init in interface ComponentInterface
      Overrides:
      init in class ComponentEos
      Parameters:
      temperature - Temperature in unit ?. Used to calculate K.
      pressure - Pressure in unit ?. Used to calculate K.
      totalNumberOfMoles - Total number of moles of component.
      beta - Beta value, i.e.,
      initType - Init type. Calculate K, z, x if type == 0.
    • dFdN

      public double dFdN(PhaseInterface phase, int numberOfComponentphases, double temperature, double pressure)

      dFdN.

      Specified by:
      dFdN in interface ComponentEosInterface
      Overrides:
      dFdN in class ComponentEos
      Parameters:
      phase - a PhaseInterface object
      numberOfComponentphases - a int
      temperature - a double
      pressure - a double
      Returns:
      a double
    • getF_scale_mix_i

      public double getF_scale_mix_i()
      Getter for property f_scale_mix_i.
      Returns:
      Value of property f_scale_mix_i.
    • setF_scale_mix_i

      public void setF_scale_mix_i(double f_scale_mix_i)
      Setter for property f_scale_mix_i.
      Parameters:
      f_scale_mix_i - New value of property f_scale_mix_i.
    • getH_scale_mix_i

      public double getH_scale_mix_i()
      Getter for property h_scale_mix_i.
      Returns:
      Value of property h_scale_mix_i.
    • setH_scale_mix_i

      public void setH_scale_mix_i(double h_scale_mix_i)
      Setter for property h_scale_mix_i.
      Parameters:
      h_scale_mix_i - New value of property h_scale_mix_i.
    • getRefPhaseBWRS

      public PhaseCSPsrkEos getRefPhaseBWRS()
      Getter for property refPhaseBWRS.
      Returns:
      Value of property refPhaseBWRS.
    • setRefPhaseBWRS

      public void setRefPhaseBWRS(PhaseCSPsrkEos refPhaseBWRS)
      Setter for property refPhaseBWRS.
      Parameters:
      refPhaseBWRS - New value of property refPhaseBWRS.