Class SystemDuanSun

All Implemented Interfaces:
Serializable, Cloneable, SystemInterface

public class SystemDuanSun extends SystemEos
This class defines a thermodynamic system using the Duan Sun method used for CO2.
Version:
$Id: $Id
Author:
Even Solbraa
See Also:
  • Field Details

    • serialVersionUID

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

      protected String[] CapeOpenProperties11
  • Constructor Details

    • SystemDuanSun

      public SystemDuanSun()

      Constructor for SystemDuanSun.

    • SystemDuanSun

      public SystemDuanSun(double T, double P)

      Constructor for SystemDuanSun.

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

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

      Constructor for SystemDuanSun.

      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

    • clone

      public SystemDuanSun clone()

      clone.

      Specified by:
      clone in interface SystemInterface
      Overrides:
      clone in class SystemThermo
      Returns:
      a SystemInterface object
    • 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
    • addComponent

      public void addComponent(ComponentInterface inComponent)
      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:
      inComponent - Component object to add.