Error handling

  1. steam/water functions
  2. Air and flue gas functions
  3. Lee-Kesler functions


Steam/water functions

All functions return large negative numbers in case of error. No function returns a negative number less than -1000 no matter what units are used. The returned values and reasons are:

          0.01 bar < P < 1000 bar

          0 C < T < 800 C

          0.0= < Q < = 1.0

          P <= 221.0 bar

         T <= 374.0 C


Air and flue gas functions

All functions return large negative numbers in case of error. No function returns a negative number less than -20E+9 no matter what units are used. The returned values and reasons are:

      0 =< mc < 0.30

        -40 C < T < 1500 C

        -40 C < T < 70 C

        DryBulbT >= WetBulbT

        0.001 bar < P < 20 bar


Lee-Kesler functions

All functions return large negative numbers in case of error. No function returns a negative number less than -2000. No matter what units are used. The returned values and reasons are:

        0.01 < Pr < 10

        Pr = Reduced pressure = P/Pcr

        Pcr = Critical pressure

        P = Pressure

        0.3 < Tr < 4.0

        Tr = Reduced temperature = T/Tcr

       Tcr = Critical temperature

       T = Temperature

       0.0= < Q < = 1.0

       Pr < = 1.0

       Tr < = 1.0

          Z = ( V * P ) / ( R * T )

          V = Specific volume

          R = Gas Constant = 8.3144 J/(mol.K) = 10.732 psia.ft2/(lb-mol.R)

         -0.5 < Af < 2.0


Back to content