Class SystemVegaEos

All Implemented Interfaces:
Serializable, Cloneable, SystemInterface

public class SystemVegaEos extends SystemEos
This class defines a thermodynamic system using the VegaEos 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

    • SystemVegaEos

      public SystemVegaEos()

      Constructor for SystemVegaEos.

    • SystemVegaEos

      public SystemVegaEos(double T, double P)

      Constructor for SystemVegaEos.

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

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

      Constructor for SystemVegaEos.

      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 SystemVegaEos clone()

      clone.

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

      public void commonInitialization()

      commonInitialization.

    • 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.