Class SystemAmmoniaEos

All Implemented Interfaces:
Serializable, Cloneable, SystemInterface

public class SystemAmmoniaEos extends SystemEos
Thermodynamic system using a simplified ammonia reference equation of state.
Author:
esol
See Also:
  • Field Details

  • Constructor Details

    • SystemAmmoniaEos

      public SystemAmmoniaEos()

      Constructor for SystemAmmoniaEos.

    • SystemAmmoniaEos

      public SystemAmmoniaEos(double T, double P)

      Constructor for SystemAmmoniaEos.

      Parameters:
      T - a double
      P - a double
    • SystemAmmoniaEos

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

      Constructor for SystemAmmoniaEos.

      Parameters:
      T - a double
      P - a double
      checkForSolids - a boolean
  • Method Details

    • clone

      public SystemAmmoniaEos 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.