In a system, the mass
Differential Form of the Continuity Equation
To derive the differential form of the continuity equation let’s take a look at a small, stationary cubical element. This element in essence will represent the control volume. At the center of element there will be a fluid density
(Eq 1)
In addition to the volume integral, we will also need to show the rate of mass flow through the surface of the fluid element. To accomplish this, each coordinate direction will be defined separately. For example, let’s take a look at the x-direction. For the figure above, the mass rate of flow through the right face will represented by the following equation.
(Eq 2)
The next equation will represent the rate of flow moving through the left face of the fluid element.
(Eq 3)
Taylor series expansion of
(Eq 4)
In addition, we will also want to define the mas out flow for both the y and z directions. The process used above will allow us to do this.
(Eq 5)
and
(Eq 6)
Next, combining equations 4 – 6 will derive the total net rate of mass outflow.
(Eq 7)
Finally, the differential equation for conservation of mass is derived after combining the continuity equation of a control volume with equations 1 and 7.
(Eq 8)
The conservation of mass or continuity equation is one of the fundamental equation of fluid mechanics. As a result, it will work for steady and unsteady flow. In addition, it will also work for both compressible and incompressible fluids.