Class SystemSoreideWhitson

All Implemented Interfaces:
Serializable, Cloneable, SystemInterface

public class SystemSoreideWhitson extends SystemPrEos1978
This class defines a thermodynamic system using the Søreide-Whitson Peng-Robinson EoS (modified alpha and mixing rule).
Author:
sviat
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • salinity

      private double salinity
  • Constructor Details

    • SystemSoreideWhitson

      public SystemSoreideWhitson()
      Default constructor: 298.15 K, 1.0 bara, no solid check.
    • SystemSoreideWhitson

      public SystemSoreideWhitson(double T, double P)
      Constructor with temperature and pressure.
      Parameters:
      T - temperature in Kelvin
      P - pressure in bara
    • SystemSoreideWhitson

      public SystemSoreideWhitson(double T, double P, boolean checkForSolids)
      Full constructor.
      Parameters:
      T - temperature in Kelvin
      P - pressure in bara
      checkForSolids - check for solids
  • Method Details

    • addSalinity

      public void addSalinity(double value, String unit)
      Add the salinity value.
      Parameters:
      value - the salinity value
      unit - the unit of the value ("mole/hr" or "mole/sec")
    • addSalinity

      public void addSalinity(String saltType, double value, String unit)
      Add the salinity value for a specific salt type and unit.
      Parameters:
      saltType - the type of salt (e.g., "Na2SO4", "MgSO4", "Mg(NO3)2", "NaCl", "NaNO3", "KCl", "KNO3")
      value - the amount of salt added
      unit - the unit of the value ("mole/hr" or "mole/sec")
    • setSalinity

      public void setSalinity(double value, String unit)
      Set the salinity value.
      Parameters:
      value - the salinity value
      unit - the unit of the value ("mole/hr" or "mole/sec")
    • getSalinity

      public double getSalinity()
      Get the salinity value in mole/sec.
      Returns:
      salinity in mole/sec
    • calcSalinity

      public boolean calcSalinity()

      calcSalinity.

      Returns:
      a boolean
    • clone

      public SystemSoreideWhitson clone()

      clone.

      Creates a deep copy of this SystemPrEos instance.

      Specified by:
      clone in interface SystemInterface
      Overrides:
      clone in class SystemPrEos1978
      Returns:
      a SystemInterface object