### 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:

- -1001: The pressure is outside the acceptable range specified in IFC formulation for Industrial use!

0.01 bar < P < 1000 bar

- -1002: The temperature is outside the acceptable range specified in IFC formulation for Industrial use!

0 C < T < 800 C

- -1003: Dryness fraction should be within the following limits:

0.0= < Q < = 1.0

- -1004: Pressure of the wet steam may not be more than 221.0 bar (pressure at critical point is 221.2 bar) i.e.

P <= 221.0 bar

- -1005: Temperature of the wet steam may not be more than 374.0 C (temperature at critical point is 374.15 C) i.e.

T <= 374.0 C

- -1012: It is impossible to find a point with the specified pressure [P] and specific entropy [s]!
- -1013: It is impossible to find a point with the specified pressure [P] and specific volume [v]!
- -1014: It is impossible to find a point with the specified pressure [P] and specific enthalpy [h]!
- -1015: Inputs are not enough to determine the state of the steam or water. Pressure and temperature are too close to wet steam data.
- -1016: Pressure and temperature are too close to critical point.
- -1017: Specific volume is too small.

#### 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:

- -21E+9: Moisture content, mc, is not acceptable!

0 =< mc < 0.30

- -22E+9: Volumetric compositions should be within the interval zero and one and the sum must be one.
- -23E+9: Temperature should be within the following limits:

-40 C < T < 1500 C

- -24E+9: It is impossible to find a temperature with the specified specific enthalpy.
- -25E+9: It is impossible to find a temperature with the specified specific entropy.
- -26E+9: It is impossible to find a temperature with the specified specific heat capacity.
- -27E+9: The wet bulb temperature is limited to:

-40 C < T < 70 C

- -28E+9: The following condition should be satisfied:

DryBulbT >= WetBulbT

- -29E+9: This combination of dry and wet bulb temperatures are not possible!
- -30E+9: Pressure is outside the acceptable range:

0.001 bar < P < 20 bar

- -31E+9: Gas constant is too small.

#### 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:

- -2001: The pressure is outside the acceptable range!

0.01 < Pr < 10

Pr = Reduced pressure = P/Pcr

Pcr = Critical pressure

P = Pressure

- -2002: The temperature is outside the acceptable range!

0.3 < Tr < 4.0

Tr = Reduced temperature = T/Tcr

Tcr = Critical temperature

T = Temperature

- -2003: Dryness fraction should be within the following limits:

0.0= < Q < = 1.0

- -2004: Pressure of wet vapor may not be more than Pcr i.e.

Pr < = 1.0

- -2005: Temperature of wet vapor may not be more than Tcr i.e.

Tr < = 1.0

- -2012: It is impossible to find a point with the specified reduced pressure [Pr] and reduced specified entropy [sr]!

- -2013: It is impossible to find a point with the specified reduced pressure [Pr] and compressibility factor [Z]!

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

V = Specific volume

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

- -2014: It is impossible to find a point with the specified reduced pressure [Pr] and reduced specific enthalpy [h]!
- -2015: Inputs are not enough to determine the state of the fluid. Pressure and temperature are too close to wet vapor data.
- -2016: It is impossible to find a point with the specified reduced pressure [Pr] and reduced fugacity-pressure ratio [f]!
- -2020: Acentric factor is out of acceptable range.

-0.5 < Af < 2.0

Back to content