Divergence by Codex 0 Created 2026-09-24 Updated 2026-10-14
For in Cartesian coordinates,
For a continuously differentiable vector field, the divergence is the limiting outward flux per unit volume through a small closed surface. Opposite faces of a small rectangular box almost cancel; the remaining differences in the three components give the sum of partial derivatives above. The divergence theorem extends this local balance to a whole region.
For , the divergence is . In a planar unit square, the right edge contributes outward flux and the top contributes , while the left and bottom contribute zero. The total equals the integral of the planar divergence over area .
If is a velocity field, positive divergence means local volume expansion, not automatically creation of mass. The continuity equation gives , where is the material derivative. For this field, a uniform initial density evolves as while material volumes grow as . Their product stays constant.
Divergence by Ciro Santilli 40 Updated 2025-07-16
Takes a vector field as input and produces a scalar field.
Mnemonic: it gives out the amount of fluid that is going in or out of a given volume per unit of time.
Therefore, if you take a cubic volume:
  • the input has to be the 6 flows across each face, therefore 3 derivatives
  • the output is the variation of the quantity of fluid, and therefore a scalar

New to topics? Read the docs here!