Class Iapws_if97

java.lang.Object
neqsim.thermo.util.steam.Iapws_if97

public final class Iapws_if97 extends Object
Utility class implementing a compact version of the full IAPWS IF97 steam tables.

The implementation is intentionally compact and only provides a few thermodynamic properties in the SI unit system. Input pressure is in MPa and temperature in Kelvin.

Author:
esol
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final int[]
     
    private static final int[]
     
    private static final int[]
     
    private static final int[]
     
    private static final int[]
     
    private static final double[]
     
    private static final double[]
     
    private static final double[]
     
    private static final double
    Specific gas constant for water [kJ/(kg*K)].
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    cp_pt(double p, double T)
    Calculates the specific heat capacity of steam at given pressure and temperature.
    private static double
    gamma0(double pi, double tau)
     
    private static double
    gamma0_pi(double pi)
     
    private static double
    gamma0_tau(double pi, double tau)
     
    private static double
    gamma0_tautau(double tau)
     
    private static double
    gamma1(double pi, double tau)
     
    private static double
    gamma1_pi(double pi, double tau)
     
    private static double
    gamma1_pipi(double pi, double tau)
     
    private static double
    gamma1_pitau(double pi, double tau)
     
    private static double
    gamma1_tau(double pi, double tau)
     
    private static double
    gamma1_tautau(double pi, double tau)
     
    private static double
    gammar(double pi, double tau)
     
    private static double
    gammar_pi(double pi, double tau)
     
    private static double
    gammar_pipi(double pi, double tau)
     
    private static double
    gammar_pitau(double pi, double tau)
     
    private static double
    gammar_tau(double pi, double tau)
     
    private static double
    gammar_tautau(double pi, double tau)
     
    static double
    h_pt(double p, double T)
    Calculates the enthalpy of steam at given pressure and temperature.
    static double
    p4_T(double T)
    Calculates the pressure at the boundary between region 4 and region 3 as a function of temperature.
    static double
    psat_t(double T)
    Calculates the saturation pressure at a given temperature.
    static double
    s_pt(double p, double T)
    Calculates the entropy of steam at given pressure and temperature.
    static double
    T4_p(double p)
    Calculates the temperature at the boundary between region 4 and region 3 as a function of pressure.
    static double
    tsat_p(double p)
    Calculates the saturation temperature at a given pressure.
    static double
    v_pt(double p, double T)
    Calculates the specific volume of steam at given pressure and temperature.
    static double
    w_pt(double p, double T)
    Calculates the speed of sound in steam at given pressure and temperature.

    Methods inherited from class Object

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

    • R

      private static final double R
      Specific gas constant for water [kJ/(kg*K)].
      See Also:
    • I1

      private static final int[] I1
    • J1

      private static final int[] J1
    • N1

      private static final double[] N1
    • J0

      private static final int[] J0
    • N0

      private static final double[] N0
    • IR

      private static final int[] IR
    • JR

      private static final int[] JR
    • NR

      private static final double[] NR
  • Constructor Details

    • Iapws_if97

      private Iapws_if97()
  • Method Details

    • p4_T

      public static double p4_T(double T)
      Calculates the pressure at the boundary between region 4 and region 3 as a function of temperature.
      Parameters:
      T - temperature in K
      Returns:
      pressure in MPa
    • T4_p

      public static double T4_p(double p)
      Calculates the temperature at the boundary between region 4 and region 3 as a function of pressure.
      Parameters:
      p - pressure in MPa
      Returns:
      temperature in K
    • gamma1

      private static double gamma1(double pi, double tau)
    • gamma1_pi

      private static double gamma1_pi(double pi, double tau)
    • gamma1_tau

      private static double gamma1_tau(double pi, double tau)
    • gamma0

      private static double gamma0(double pi, double tau)
    • gamma0_pi

      private static double gamma0_pi(double pi)
    • gamma0_tau

      private static double gamma0_tau(double pi, double tau)
    • gammar

      private static double gammar(double pi, double tau)
    • gammar_pi

      private static double gammar_pi(double pi, double tau)
    • gammar_tau

      private static double gammar_tau(double pi, double tau)
    • gamma1_pipi

      private static double gamma1_pipi(double pi, double tau)
    • gamma1_pitau

      private static double gamma1_pitau(double pi, double tau)
    • gamma1_tautau

      private static double gamma1_tautau(double pi, double tau)
    • gamma0_tautau

      private static double gamma0_tautau(double tau)
    • gammar_pipi

      private static double gammar_pipi(double pi, double tau)
    • gammar_pitau

      private static double gammar_pitau(double pi, double tau)
    • gammar_tautau

      private static double gammar_tautau(double pi, double tau)
    • v_pt

      public static double v_pt(double p, double T)
      Calculates the specific volume of steam at given pressure and temperature.
      Parameters:
      p - pressure in MPa
      T - temperature in K
      Returns:
      specific volume in m^3/kg
    • h_pt

      public static double h_pt(double p, double T)
      Calculates the enthalpy of steam at given pressure and temperature.
      Parameters:
      p - pressure in MPa
      T - temperature in K
      Returns:
      enthalpy in kJ/kg
    • s_pt

      public static double s_pt(double p, double T)
      Calculates the entropy of steam at given pressure and temperature.
      Parameters:
      p - pressure in MPa
      T - temperature in K
      Returns:
      entropy in kJ/kg/K
    • cp_pt

      public static double cp_pt(double p, double T)
      Calculates the specific heat capacity of steam at given pressure and temperature.
      Parameters:
      p - pressure in MPa
      T - temperature in K
      Returns:
      specific heat capacity in kJ/kg/K
    • w_pt

      public static double w_pt(double p, double T)
      Calculates the speed of sound in steam at given pressure and temperature.
      Parameters:
      p - pressure in MPa
      T - temperature in K
      Returns:
      speed of sound in m/s
    • tsat_p

      public static double tsat_p(double p)
      Calculates the saturation temperature at a given pressure.
      Parameters:
      p - pressure in MPa
      Returns:
      saturation temperature in K
    • psat_t

      public static double psat_t(double T)
      Calculates the saturation pressure at a given temperature.
      Parameters:
      T - temperature in K
      Returns:
      saturation pressure in MPa