Class NeqSimSpanWagner

java.lang.Object
neqsim.thermo.util.spanwagner.NeqSimSpanWagner

public final class NeqSimSpanWagner extends Object
Utility class implementing the Span–Wagner reference equation of state for carbon dioxide. All properties are returned on a molar basis in SI units.
Author:
esol
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static class 
    Holder for Helmholtz energy derivatives.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final double[]
     
    private static final double[]
     
    private static final double[]
     
    private static final double[]
     
    private static final double[]
     
    private static final double[]
     
    private static final double[]
     
    private static final double[]
     
    private static final double[]
     
    private static final double
     
    private static final double
     
    private static final double
     
    private static final double[]
     
    private static final double[]
     
    private static final double
     
    private static final double
     
    private static final double
     
    private static final double
     
    private static final double[]
     
    private static final double[]
     
    private static final double
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static void
    alpha0(double delta, double tau, NeqSimSpanWagner.Derivs d)
    Evaluate ideal-gas contribution and derivatives.
    private static void
    alphar(double delta, double tau, NeqSimSpanWagner.Derivs d)
    Evaluate residual contribution and derivatives (power + gaussian terms).
    private static double
    density(double tau, double pressure, PhaseType type)
    Solve for reduced density delta given temperature and pressure.
    static double[]
    getProperties(double temperature, double pressure, PhaseType type)
    Compute thermodynamic properties for given temperature and pressure.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • R

      private static final double R
      See Also:
    • TC

      private static final double TC
      See Also:
    • RHOC

      private static final double RHOC
      See Also:
    • LEAD_A1

      private static final double LEAD_A1
      See Also:
    • LEAD_A2

      private static final double LEAD_A2
      See Also:
    • LOGTAU_A

      private static final double LOGTAU_A
      See Also:
    • OFFSET_A1

      private static final double OFFSET_A1
      See Also:
    • OFFSET_A2

      private static final double OFFSET_A2
      See Also:
    • N0

      private static final double[] N0
    • T0

      private static final double[] T0
    • N

      private static final double[] N
    • D

      private static final double[] D
    • T

      private static final double[] T
    • L

      private static final double[] L
    • GN

      private static final double[] GN
    • GD

      private static final double[] GD
    • GT

      private static final double[] GT
    • GBETA

      private static final double[] GBETA
    • GGAMMA

      private static final double[] GGAMMA
    • GEPS

      private static final double[] GEPS
    • GETA

      private static final double[] GETA
  • Constructor Details

    • NeqSimSpanWagner

      private NeqSimSpanWagner()
  • Method Details

    • alpha0

      private static void alpha0(double delta, double tau, NeqSimSpanWagner.Derivs d)
      Evaluate ideal-gas contribution and derivatives.
      Parameters:
      delta - reduced density (rho / rhoc)
      tau - inverse reduced temperature (Tc / T)
      d - holder for derivative terms that will be populated
    • alphar

      private static void alphar(double delta, double tau, NeqSimSpanWagner.Derivs d)
      Evaluate residual contribution and derivatives (power + gaussian terms).
      Parameters:
      delta - reduced density (rho / rhoc)
      tau - inverse reduced temperature (Tc / T)
      d - holder for derivative terms that will be populated
    • density

      private static double density(double tau, double pressure, PhaseType type)
      Solve for reduced density delta given temperature and pressure.
      Parameters:
      tau - inverse reduced temperature (Tc / T)
      pressure - system pressure in Pascal
      type - phase type used for the initial guess
      Returns:
      reduced density
    • getProperties

      public static double[] getProperties(double temperature, double pressure, PhaseType type)
      Compute thermodynamic properties for given temperature and pressure.
      Parameters:
      temperature - Kelvin
      pressure - Pascal
      type - phase type for which properties are calculated
      Returns:
      array [rho, Z, h, s, cp, cv, u, g, w]