Tube Wall Temperature, tw: It should be noted that film coefficients are calculated at bulk temperatures whereas heat transfer occurs at the wall.  A viscosity correction factor is employed to find the correct heat transfer coefficient.  Tube wall temperature relationships depend upon whether cold or hot fluid is flowing in the pipe.  See Table 5.6.

more...

Module for caluclation of tube wall temperature

tb (Tube fluid bulk temperature, deg F)
Tb (Annular fluid bulk temperature, fluid, deg F)
ho_phi (Uncorrected outside film coefficient, BTU per hr per ft2 per deg F)
hio_phi (Uncorrected inside film coefficient, BTU per hr per ft2 per deg F)
Tube Fluid cold hot