Here is another 0 divergence example. Consider the electric field, emanating from an electron at the origin. This is an inverse square field. This can be written as some constant (which we will ignore) times x y or z over r3, where r is the radial distance sqrt(x2+y2+z2). The partial with respect to x is 1/r3 - 3x2/r5. Do the same for y and z and add them up, giving 3/r3 - 3r2/r5, or 0. The electric field gets weaker as you move away from its source, but it gets weaker in proportion to the surface area of the expanding shell. This is the inverse square law, and it implies a divergence of 0 everywhere, except at the origin, where 1/r is not defined. Electric charge bursts into existence at the origin, and charge is conserved everywhere else.
An inverse square law may be necessary for the consistency of our universe. Any other relationship would imply a nonzero divergence, as though electric or gravitational energy could be created or destroyed. That's not suppose to happen. In Flatland, gravity is proportional to 1/r, and in 4 dimensional space, gravity is proportional to 1/r3. That's what we think would happen, if those universes were well behaved.
Fluid flow equations are simpler when the fluid is, well, a fluid, rather than a gas. Water is virtually incompressible. Assuming a constant temperature and salinity, the density of water at the bottom of the ocean is only a tweak higher than the density of water at the top. When water moves about, the divergence can be set to 0, thus simplifying the equations. In contrast, air is easily compressed. Squeeze a column of air inside a piston, and the divergence is everywhere negative, as molecules crowd together.
Recall the proof of Green's theorem. We broke the region up into small squares, and/or partial squares, and proved the theorem for each square, whence the theorem was valid for the entire region. This proof works the same way. If the divergence theorem is true for two adjacent cubes, sharing a common wall, then it holds for the larger, rectangular box. The two triple integrals (from the two cubes) combine to form the triple integral throughout the entire rectangular box, and the two surface normal integrals sum to the surface normal integral on the outside of the box, since the surface normal integrals cancel on the common wall. Water flowing out of the left cube, through the common wall, has to flow into the right cube; a positive and a negative, and they cancel each other out. Therefore, we only need prove the theorem for arbitrarily small, manageable regions in space.
The simplest shape is a box, as described above. Let's look at f3, the third component of f, in the z direction. This runs parallel to the walls of the box, hence the walls contribute nothing to the surface normal integral. The flow into the box, from below, is the double integral of f3 on the floor. The flow out of the box is the double integral of f3 on the ceiling. The difference is the surface normal integral, as far as f3 is concerned. At the same time, restrict the triple integral of ∇.f to f3, whence the integrand becomes the partial of f3 with respect to z. Integrate this as z runs from floor to ceiling. Apply the fundamental theorem of calculus, and the result is f3(z1) - f3(z0). In other words, the difference of f3 at the ceiling and at the floor. Integrate this over the area of the box to complete the triple integral. This is precisely the same formula as the surface normal integral.
Do the same thing for left and right, and front and back, and add up the three equations. The result is the triple integral of the divergence, and the surface normal integral over the entire box. These are equal per component, and they are equal in aggregate. The divergence theorem holds for every rectangular box of any size.
Next consider a partial box, whose ceiling curves downward. This tiny cell lies at the boundary of the region of interest in 3 space. For convenience, let the floor lie at z = 0, and let z = h(x,y) determine the ceiling. The triple integral has not changed. It still becomes the difference of f3, at the ceiling and at the floor, integrated over the area of the cell. The flow into the cell from below is still the double integral of f3 on the floor. The flow out of the cell, through the ceiling, is equal to the double integral of f3 on the ceiling, thanks to the umbrella theorem. Nothing has changed, and the divergence theorem holds.
If the cell has a curved front wall, rather than a curved ceiling, integrate with respect to y, rather than z. The result is the same. Similarly, cells with curved back walls, or side walls, behave as expected. Almost any shape can be partitioned into cells and/or partial cells of this type, and that completes the proof.