Continuity equation
From PlasmaWiki
The mass continuity equation is the first of the MHD equations. It essentially states that the mass flowing into a volume must equal the increase in mass of that volume:

It is also written as particle, rather than mass, conservation:

[edit] Heuristic derivation
We know that the change in mass of a volume V must be equal to the net flux through its surface S:
![\frac{\partial}{\partial t}\left[\int_{V}\rho dV\right]=-\int_{S}\rho\mathbf{v}\cdot d\mathbf{s}](http://localhost/mediawiki/images/math/c/3/b/c3b910d61ef00f876271565179bcbe72.png)
(here our surface vector points outward, so the negative is the inward flux). By Stokes's theorem, and the commutation of the time derivative with the spatial integral this is equivelent to:

We can choose V to be whatever we want:

Which is sometimes written using the total derivative:

[edit] See also
- Continuity equation for continuity of particles

