Class SystemWaterIF97

All Implemented Interfaces:
Serializable, Cloneable, SystemInterface

public class SystemWaterIF97 extends SystemEos
Thermodynamic system using the IAPWS-IF97 reference model for water.
Author:
esol
See Also:
  • Field Details

    • serialVersionUID

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

    • SystemWaterIF97

      public SystemWaterIF97()
      Default constructor setting 298.15 K and 1.0 bara.
    • SystemWaterIF97

      public SystemWaterIF97(double T, double P)
      Create a system with specified temperature and pressure.
      Parameters:
      T - temperature in K
      P - pressure in bara
    • SystemWaterIF97

      public SystemWaterIF97(double T, double P, boolean checkForSolids)
      Create a system with temperature, pressure and optional solid phase check.
      Parameters:
      T - a double
      P - a double
      checkForSolids - a boolean
  • Method Details

    • clone

      public SystemWaterIF97 clone()

      clone.

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

      public void commonInitialization()
      Common initialisation of flags.
    • 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.