A surface σ is a closed surface iff it is the boundary of a solid region in R3.
For a closed surface, the positive orientation is the outward orientation.
Divergence Theorem
Let σ be a closed, piecewise smooth, orientable surface that encloses a solid region R in R3. Suppose F is a vector field whose component functions have continuous first-order partial derivatives on an open set containing R and its boundary σ. If n^ is the outward unit normal field for σ,
∬σF⋅n^dS=∭RdivFdV
Divergence as Flux Density
Let G be a small solid region centered at P0 with boundary surface σ(G) oriented outward, and let F be a vector field whose component functions have continuous first-order partial derivatives on an open set containing G. Denote the volume of G by Vol(G) and the flux of F across σ(G) by Φ(G).
Φ(G)=∬σ(G)F⋅n^dS=∭GdivFdV≈divF(P0)Vol(G)
As G shrinks to P0 in all directions,
divF(P0)=G→P0limVol(G)1∬σ(G)F⋅n^dS
If F is the velocity field of a fluid in steady-state flow, divF is the limiting outward flux per unit volume at a point.