Class NeqSimLeachman

java.lang.Object
neqsim.thermo.util.leachman.NeqSimLeachman

public class NeqSimLeachman extends Object

NeqSimLeachman class.

Author:
victorigi99
  • Field Details

  • Constructor Details

    • NeqSimLeachman

      public NeqSimLeachman()
      Constructor for NeqSimLeachman.
    • NeqSimLeachman

      public NeqSimLeachman(PhaseInterface phase, String hydrogenType)
      Constructor for NeqSimLeachman. If hydrogenType is provided (non-empty), it uses that; otherwise, it auto-detects based on the phase's component name.
      Parameters:
      phase - a PhaseInterface representing the stream.
      hydrogenType - a String representing the desired hydrogen type; can be empty.
  • Method Details

    • getMolarDensity

      public double getMolarDensity(PhaseInterface phase)
      Get the molar density of the specified phase.
      Parameters:
      phase - a PhaseInterface object
      Returns:
      a double representing the molar density
    • getDensity

      public double getDensity(PhaseInterface phase)
      Get the density of the specified phase.
      Parameters:
      phase - a PhaseInterface object
      Returns:
      a double representing the density
    • getDensity

      public double getDensity()
      Get the density.
      Returns:
      a double representing the density
    • getPressure

      public double getPressure()
      Get the pressure.
      Returns:
      a double representing the pressure
    • getMolarDensity

      public double getMolarDensity()
      Get the molar density.
      Returns:
      a double representing the molar density
    • propertiesLeachman

      public double[] propertiesLeachman(PhaseInterface phase)
      Get various thermodynamic properties of the specified phase.
      Parameters:
      phase - a PhaseInterface object
      Returns:
      an array of type double representing various thermodynamic properties
    • getProperties

      public double[] getProperties(PhaseInterface phase, String[] properties)
      Get specific thermodynamic properties of the specified phase.
      Parameters:
      phase - a PhaseInterface object
      properties - an array of String objects representing the properties to retrieve
      Returns:
      an array of type double representing the requested properties
    • propertiesLeachman

      public double[] propertiesLeachman()
      Get various thermodynamic properties.
      Returns:
      an array of type double representing various thermodynamic properties
    • setPhase

      public void setPhase(PhaseInterface phase)
      Setter for the field phase.
      Parameters:
      phase - a PhaseInterface object
    • getAlpha0_Leachman

      public org.netlib.util.doubleW[] getAlpha0_Leachman()

      getAlpha0_Leachman.

      Returns:
      an array of doubleW objects
    • getAlphares_Leachman

      public org.netlib.util.doubleW[][] getAlphares_Leachman()
      Get reduced residual helmholtz free energy and its derivatives. The returned array has the following structure:
      • ar(0,0) - Residual Helmholtz energy (dimensionless, =a/RT)
      • ar(0,1) - delta*partial (ar)/partial(delta)
      • ar(0,2) - delta^2*partial^2(ar)/partial(delta)^2
      • ar(0,3) - delta^3*partial^3(ar)/partial(delta)^3
      • ar(1,0) - tau*partial (ar)/partial(tau)
      • ar(1,1) - tau*delta*partial^2(ar)/partial(tau)/partial(delta)
      • ar(2,0) - tau^2*partial^2(ar)/partial(tau)^2
      Returns:
      a doubleW[][] representing the reduced residual helmholtz free energy
    • main

      public static void main(String[] args)
      main method.
      Parameters:
      args - an array of String objects