20 Continuity Equation
Introduction
Having laid down the fundamental forms of the flow models used in aerodynamic analyses, the governing equations can now be formulated to describe fluid dynamic or aerodynamic flows. The approach uses the three physical conservation principles: mass, momentum, and energy. In this first case, the applicable physical principle is that mass can neither be created nor destroyed. The resulting governing equation is the continuity equation. It is a general governing equation valid for three-dimensional, unsteady flows and applies to all types of flows, e.g., compressible or incompressible, viscous or inviscid, steady or unsteady.
Learning Objectives
- Know how to derive the most general form of the continuity equation in its control volume or integral form.
- Learn how to solve simple flow problems using the continuity equation.
- See how the continuity equation can be derived from the Reynolds Transport Equation.
Continuity Equation – Integral Form
As previously discussed, the flow model is a control volume that may either be fixed in space with the fluid moving through it (the most common application), which is called an Eulerian description of the flow, or the volume can move with the fluid such that the identical fluid particles are inside it, which is called a Lagrangian model. In either case, the physical conservation principles must be applied to the fluid inside the control volume and any fluid crossing its boundaries.
Flow Model
Consider a fixed finite control volume bounded by a surface of area , which is in an Eulerian frame of reference, as shown in the figure below. The symbol defines the area of the closed surface that bounds the control volume containing a fluid of volume . The control volume is abbreviated to “C.V.” and the control surface to “C.S.” All properties are allowed to vary with spatial location (i.e., with respect to , , and ) and in time so that
(1)
At any point on the C.S., the velocity is , which is given in terms of the Cartesian components as
(2)
At the same point, the unit normal vector area is . Also, let be an elemental fluid volume inside the totality of the C.V.
Conservation of Mass
The fundamental principle of the conservation of mass requires that the net mass flow out of the C.V. over surface is equal to the time rate of decrease of mass inside . Now, that physical statement must be translated into mathematics.
Following the concept of mass flow and mass flux discussed previously, the elemental mass flow across area is . Remember that by convention, always points out of the C.V., so the value of will be positive. Therefore, the total mass flow rate (i.e., the integral of the mass flow rate over the entire surface area) is
(3)
which can be physically interpreted as a net outflow leaving the C.V. Notice that the double integral here means the summation over the surface , i.e., an area integral.
The small fluid mass contained within the elemental volume inside the C.V. is . Hence, the total mass inside the C.V. is
(4)
where the triple integral means a volume integral. So, the time rate of decrease of mass inside the C.V. is
(5)
noting that the minus sign represents a decrease of mass, i.e., what is leaving the C.V.
Because the principle of conservation of mass requires that the net mass flow out of the C.V. be zero, then Eq. 3 must equal Eq. 5, i.e.,
(6)
(7)
This latter equation in Eq. 7 is called the continuity equation for a fluid flow, in this case, in the integral or control volume form. It is a “star” equation because it is the most general form of the governing equation, i.e., it is valid for three-dimensional, unsteady flows. It applies to all types of flows, e.g., compressible or incompressible, viscous or inviscid. In addition, it can be used to relate aerodynamic phenomena over a finite region of the flow, e.g., the properties of the flow as it comes into and leaves the specified control volume. The unknowns in the equation include the flow velocities and the flow density.
Simplifications of the Continuity Equation
Various reductions or simplifications of the continuity equation can be used to solve practical problems, and these forms also allow commensurate simplifications in the overall mathematics. For example, for a steady flow, nothing changes with respect to time, i.e., . This simplification means that the continuity equation reduces to
(8)
In other words, the mass flow that comes into the control volume per unit of time then leaves the control volume simultaneously, i.e., no mass accumulates inside the control volume. If this assumption can be justified, eliminating time dependencies in aerodynamic problems is a significant and worthwhile simplification in most forms of practical analysis.
Proceeding further by assuming that the flow is a steady () single stream system and one-dimensional, e.g., a uniformly axisymmetric flow, then the reduced form of the continuity equation is
(9)
where is the unit vector area, which is positive when it points out of the C.V., as shown in the figure below. A much easier way to express this one-dimensional result for the continuity equation is in scalar form such that
(10)
which is a statement that the summation of the mass flow rates through the C.V. is constant for a steady flow.
For the situation of a single stream inlet and outlet, then
(11)
noting the sign on the first term because is in the opposite direction to . This result can also be written in scalar form in terms of magnitudes as
(12)
or
(13)
which is just a statement that = , i.e., mass flow is conserved.
If the flow is incompressible, i.e., = constant, then the continuity equation becomes
(14)
which leads to a further simplification because of the elimination of as an unknown. Therefore, only the flow velocities need to be related, i.e.,
(15)
where is the volume flow rate. In this case, then
(16)
or
(17)
which means that = , i.e., volume flow is conserved.
Finally, consider a reduction to a steady (but compressible), uniform, one-dimensional flow in the direction. In this case, and so
(18)
or
(19)
Notice that the areas and become areas per unit length, i.e., and , respectively.
Flow Through a Converging/Diverging Duct
Consider the steady, uniform flow through a converging/diverging duct with a circular cross-section with inlet area and outlet area , as shown in the figure below. This is a classic problem when learning fluid dynamics. The two sectional areas are known, such as by measurement. If the flow is assumed to be steady and uniformly axisymmetric (i.e., one-dimensional), then determine the relevant form of the continuity equation to relate the flow conditions at the outlet to those at the inlet.
The first step in the solution is to define a coordinate system and the control surface/volume over which to apply the principle of conservation of mass. In this case, the decision on the C.S. and C.V. is relatively easy as the duct itself bounds the flow. There can be no mass flow over the walls of the duct, which naturally applies no matter the duct’s shape.
The flow is steady, so , and no further justification is needed in this case. However, nothing is mentioned about whether the flow is compressible or incompressible. Because air is a gas, it must be assumed that the flow is compressible and that density must be retained as a variable. Furthermore, suppose the flow is uniformly axisymmetric. In that case, the flow velocity changes only in one direction, i.e., in the direction based on the adopted coordinate system, another significant simplification toward the solution of this problem.
In light of the preceding assumptions, therefore, in this case, then
(20)
where the latter term is zero because there is no mass flow over the walls, i.e.,
(21)
The mass flow coming into the C.V. through the left-hand side (face 1) is
(22)
the one-dimensional assumption being used and the minus sign on the first term indicating that the flow is in the opposite direction to . Similarly, the flow coming out of the right-hand side (face 2) is then
(23)
which is positive in this case because the flow is now in the direction of . Therefore, because the flow is steady, the principle of conservation of mass states that the net mass flow is zero, so what mass flow comes into the C.V. per unit time must equal the net mass flow out of the C.V. per unit time, i.e.,
(24)
or simply that
(25)
Rearranging the latter equation gives the outlet conditions
(26)
i.e., the mass fluxes are related by the area ratio . If the flow was further assumed to be incompressible, then = constant, and so
(27)
Finally, this latter result must be examined to see if it reconciles expectations and makes sense. Engineers get into the habit of asking such questions in practical problem solving, i.e., based on the final equation(s), does (do) the result(s) make physical sense?
For example, if the outlet area were to be smaller than the inlet area (i.e., ), then the expectation is that the flow velocity will increase as it flows into and out of the C.V, which it does according to the equations because . Notice that while this particular problem may appear easy, and indeed it is in this case, it provides an excellent example of how the conservation laws, in the integral form, can be applied to a fluid dynamics or aerodynamics problem.
Check Your Understanding #1 – Calculating flow velocities in a converging duct
Consider the steady flow of a particular gas through a horizontal, converging pipe with an inlet diameter of 0.22 m and an outlet diameter of 0.16 m. The density of the gas is known to change from kg/m at the inlet to kg/m at the outlet. If the inlet flow velocity of the gas is 5.1 m/s, what is its exit velocity ? Assume one-dimensional flow.
Show solution/hide solution.
The general form of the continuity equation is
In this case, for steady, one-dimensional flow, then
(28)
or
where the density must be retained as a variable. In terms of diameters, then
And solving for gives
Substituting the numerical values gives
Flow Through a Branched Pipe
Consider the flow of fluid through a branch circuit of a pipe, as shown below. The objective, again, is to use the principles of the conservation of mass to determine a relationship between the flow properties and the inlet and outlet conditions. The inlet and outlet areas of the pipe are assumed to be known. Remember that the first step in the analysis is to think about a sketch of the C.V. and the C.S., and annotate it appropriately. It will be assumed that the fluid is incompressible, i.e., constant, steady, and one-dimensional; the one-dimensional assumption is that the flow velocities are constant over every cross-section.
The governing equation for continuity of flow, in this case, becomes
(29)
where the mass flow over the solid walls would be zero, i.e.,
(30)
If the flow velocities are constant over their respective areas (the one-dimensional assumption), then
(31)
And if the density is constant (which it is for a liquid), then
(32)
noting the negative sign on the first term and its significance. Another way of looking at this latter result for the branch flow is to write it as
(33)
where is the volume flow rate. Of course, if there was no third exit, then the problem could be reduced to the one previously considered, and
(34)
In general, considering the flow out of the junction as positive and the flow into the junction as negative, then for steady flow at any junction, the algebraic sum of all the mass flows must be zero, i.e.,
(35)
For an incompressible flow, i.e., a liquid, then volume is also conserved, i.e.,
(36)
Check Your Understanding #2 – Converging flows into a junction
Two pipes of diameters and converge to form a single pipe of diameter . If a liquid flows with a velocity of and in the two pipes, respectively, what will be the flow velocity in the third pipe? Assume steady, one-dimensional, incompressible flow with no losses.
Show solution/hide solution
In this case, two pipes merge to produce one pipe. Conserving mass and using average flow properties, then
If the fluid is a liquid then the assumption that = = = = constant is justified so
Therefore, the flow velocity in the third pipe is
Flow Through Parallel Pipes
Consider the flow of fluid that splits through a branch circuit with parallel circular pipes, as shown in the figure below, and then joins together again. The flow enters at 1 and leaves at 4. The two branches, 2 and 3, could have different cross-sectional areas. Again, it will be assumed that the fluid is incompressible, i.e., constant, steady, and one-dimensional; recall that the one-dimensional assumption is that the flow velocities are constant over every cross-section.
The governing continuity equation is
(37)
Notice also that for the two branches that
(38)
If the flow velocities are constant over their respective areas (i.e., the one-dimensional assumption), then
(39)
If the density is constant, then
(40)
or
(41)
where is the volume flow rate. Notice that for the branches, then
(42)
Check Your Understanding #3 – Flows through parallel pipes
Water flows through a main pipe, which splits into two parallel pipes and then rejoins into a single pipe downstream. The main pipe has a diameter of 10 cm, one parallel pipe has a diameter of 6 cm, and the other has a diameter of 4 cm. If the velocity of the water in the main pipe before the split is 2.0 m/s, find the velocities in each parallel pipe. Assume steady, one-dimensional, incompressible flow with no losses.
Show solution/hide solution
For the main pipe, the area is
For the first parallel pipe (6 cm diameter), the area is
and for the second parallel pipe (4 cm diameter)
The continuity equation for incompressible flow states that the flow rate in the main pipe must equal the combined flow rate in the parallel pipes, i.e.,
Substituting the numerical values gives
leading to
It will be apparent that and can only be solved uniquely with additional information or assumptions. One reasonable assumption is to assume that the flow is split proportionally based on the cross-sectional areas, which means the velocity in each pipe is inversely proportional to its sectional area, i.e.,
Proceeding with this assumption gives
Substituting this into the continuity equation gives
Therefore,
Continuity Equation – Differential Form
To derive the continuity equation in its differential form, consider a small fluid element in the flow field defined in a Cartesian coordinate system with length dimensions , , and , as shown in the figure below. The volume of this fluid element is , and so the mass of the fluid element is
(43)
where is the density of the fluid at point B in three-dimensional space and time , i.e., .
The net mass flow rate through the differential element is the sum of the mass rates through each pair of opposite faces of the element. Consider first the mass flow in the direction through the left face of the element of area , i.e.,
(44)
where is the velocity component of the flow in the direction. Likewise, for the right face of the element of area , then
(45)
Therefore, the total mass flow rate through the element in the direction is
(46)
Similarly, for the and directions, then
(47)
and
(48)
where and are the velocity components in the and directions, respectively. Therefore, the total net mass flow rate out of the differential element is the sum of the net fluxes in all three directions, i.e.,
(49)
Now consider the time rate of change of mass inside the differential element (fixed volume), which will be
(50)
If mass is conserved (and the volume element is fixed in space and time), then the net mass flow rate out of the fluid element is equal to the time rate of decrease of mass inside the fluid element, i.e.,
(51)
and rearranging and simplifying gives
(52)
Therefore, the differential form of the continuity equation (using vector notation) becomes
(53)
where . This is a mathematical statement in the differential form that mass is neither created nor destroyed.
Proceeding by noticing that expanding using the product rule gives
(54)
so the continuity equation now becomes
(55)
The left-hand side contains the terms that make up the substantial derivative of , i.e.,
(56)
so the final form of the continuity equation becomes
(57)
As in the case of the integral form in Eq. 7, the result in Eq. 57 applies to all types of flows, e.g., compressible or incompressible, viscous or inviscid.
Simplifications to the general form of the continuity equation include steady flow, i.e., , and incompressible flow, i.e., = constant. If the flow is steady and incompressible, the continuity equation becomes
or in terms of the scalar components when , then
Therefore, this latter equation states that to satisfy the conservation of mass, the divergence of the local velocity field must be identically zero. If it is not, then the flow would be non-physical. Notice that this condition must be satisfied regardless of whether the flow is steady or unsteady.
Check Your Understanding #4 – Physically possible flow?
Consider a steady, incompressible flow of an inviscid fluid in a two-dimensional space described by the velocity field
Does this flow exist (physically)?
Derive the equations of the streamlines for this velocity field.
Sketch the streamlines and show their direction.
Show solution/hide solution
The differential form of the continuity equation is
For and :
Therefore, the continuity equation is satisfied, i.e.,
so this IS a physically possible flow.
The equation of the streamline in 2D is
Separating variables and integrating both sides gives
The solution is
These are clockwise-rotating circular streamlines centered at the origin, which is called a forced vortex.
Continuity Equation from the RTE
Recall that the Reynolds Transport Equation (RTE) can be expressed as
(58)
Integral Form
In the case of mass, then , and for a fixed C.V., the mass of the system and the C.V. are the same, so
(59)
Therefore, the RTE becomes
(60)
or
(61)
which will be recognized as the continuity equation in its integral form, i.e., Eq. 7.
Differential form
The differential form of the continuity equation can also be derived from the RTE. Recall that using the divergence theorem, the RTE for a fixed control volume becomes
The control volume is arbitrary, so the integrand must also be zero, and the differential form of the RTE becomes
where in this case, and the mass of the system and the C.V. are the same. Therefore,
which will be recognized as Eq. 57 given previously and will apply at every point in the flow.
Check Your Understanding #5 — Discerning a Velocity Field
Consider an incompressible, two-dimensional, steady flow field where the velocity components are given by and where is a constant. 1. Show that the given velocity field satisfies the incompressible continuity equation. 2. Explain the physical significance of the given velocity components and what type of flow they represent.
The incompressible continuity equation in two dimensions is
Computing the partial derivatives gives
and
so that
Because , the given velocity field does not satisfy the incompressible continuity equation. This outcome suggests an error or assumption violation in the problem setup. To ensure incompressibility, we can proceed to correct the velocity field to satisfy the continuity equation. Suppose the corrected velocity components are and , then
and
so that
which now satisfies the incompressible continuity equation. Notice that the corrected velocity components represent a rotational flow where implies a velocity in the direction that varies linearly with , and implies a velocity in the direction that varies linearly with ith . This type of flow is often seen in vortex or rotational motion, where the fluid exhibits circular or spiral patterns around a central point.
Summary & Closure
Applying the principle of the conservation of mass to fluids results in a governing “star” equation called the continuity equation. This equation applies to all fluids, viscous or inviscid, compressible or incompressible, steady or unsteady. In application, the continuity equation can be simplified from its most general form by making various assumptions as they may apply to the problem of interest. However, it should be remembered that all assumptions must be justified, which in some cases may be challenging to establish a priori, so caution should be used. The most common simplification is to write the continuity equation in one-dimensional form, i.e., in terms of fluid properties that change in only one direction. While the continuity equation can help solve certain simple classes of fluid flow problems, the solution of most real problems will generally need to invoke conservation principles of momentum and energy to elicit the required information.
5-Question Self-Assessment Quickquiz
For Further Thought or Discussion
- Think about a situation where the size of the control volume changes with time. What form of the continuity equation would be needed in this case?
- Think of some fluid flow problems where a Lagrangian flow model might be preferable to solve the problem.
- How might the continuity equation be applied to analyze blood flow in arteries and veins in the human circulatory system?
- Explain how the continuity equation could be used to design and analyze water distribution systems, such as municipal water supply networks.
- How does the continuity equation relate to streamlines in fluid flow? Provide an example to illustrate this relationship.
Additional Online Resources
- A good video on some basics of the continuity equation.
- Another video on the use of the continuity equation in fluid mechanics.
- A simple application of the conservation of mass for a fire hose.