Class SystemSrkCPA

All Implemented Interfaces:
Serializable, Cloneable, SystemInterface
Direct Known Subclasses:
SystemElectrolyteCPAMM, SystemSrkCPAs

public class SystemSrkCPA extends SystemSrkEos
This class defines a thermodynamic system using the CPA EoS equation of state.
Version:
$Id: $Id
Author:
Even Solbraa
See Also:
  • Field Details

    • serialVersionUID

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

    • SystemSrkCPA

      public SystemSrkCPA()

      Constructor for SystemSrkCPA.

    • SystemSrkCPA

      public SystemSrkCPA(double T, double P)

      Constructor for SystemSrkCPA.

      Parameters:
      T - The temperature in unit Kelvin
      P - The pressure in unit bara (absolute pressure)
    • SystemSrkCPA

      public SystemSrkCPA(double T, double P, boolean checkForSolids)

      Constructor for SystemSrkCPA.

      Parameters:
      T - The temperature in unit Kelvin
      P - The pressure in unit bara (absolute pressure)
      checkForSolids - Set true to do solid phase check and calculations
  • Method Details

    • addComponent

      public void addComponent(String componentName, double moles)
      add a component to a fluid. If component already exists, the moles will be added to the existing component.
      Specified by:
      addComponent in interface SystemInterface
      Overrides:
      addComponent in class SystemThermo
      Parameters:
      componentName - Name of the component to add. See NeqSim database for component in the database.
      moles - number of moles (per second) of the component to be added to the fluid
    • clone

      public SystemSrkCPA clone()

      clone.

      Specified by:
      clone in interface SystemInterface
      Overrides:
      clone in class SystemSrkEos
      Returns:
      a SystemInterface object
    • commonInitialization

      public void commonInitialization()

      commonInitialization.