The continuity equation is a mathematical expression of mass conservation, stating that the rate of change of mass in a given region is equal to the net mass flux entering or leaving that region.

Differential form

where
density at a given point of the continuum, measured in kilograms per meter cubed
position vector in three-dimensional space, typically expressed as and measured in meters
time, measured in seconds
vector field describing the movement of some quantity , measured in meters per second ,
divergence operator which when applied to is:



measured in kilograms per cubic meter per second .
generation of the quantity described by per unit volume per unit time; with terms that generate (i.e. ) or remove (i.e. ) being referred to as sources and sinks, respectively,