Consider a hollow cylinder of inner radius $r_1$ and outer radius $r_2$. The entire surface of the cylinder is kept at constant (but distinct) temperatures along the interior and exterior.
I found that the steady state temperature function is (in cylindrical coordinates) $$T = -kr_2 \log \left(\frac{r}{r_1}\right) + T_0.$$
I am then asked to find the heat flux through a Gaussian cylinder of radius $r\in (r_1,r_2)$. The answer given is that the flux per unit length $\phi$ is $$\phi = 2\pi r h_r,$$ where $h_r$ is the $r$ component of $\nabla \mathbf{h}$ (in cylindrical coordinates). My question is, how is this consistent with Gauss' Theorem (Divergence Theorem)? Because I found that $\nabla \cdot \mathbf{h} = 0$, so shouldn't the flux be $$\iint_S \mathbf{h}\cdot\mathrm{d}\mathbf{S} = \iiint_V \nabla\cdot \mathbf{h}\, \mathrm{d}V = \iiint_V 0\, \mathrm{d}V = 0?$$
Any help would be appreciated.