Lably
Skip to content

Continuity equation

Equation describing the transport of some quantity

  • 14 min read
  • 11 chapters

Related on Lably

Through Equation, Mass and Energy

Continuity equations are a stronger, local form of conservation laws. For example, a weak version of the law of conservation of energy states that energy can neither be created nor destroyed—i.e., the total amount of energy in the universe is fixed. This statement does not rule out the possibility that a quantity of energy could disappear from one point while simultaneously appearing at another point. A stronger statement is that energy is locally conserved: energy can neither be created nor destroyed, nor can it "teleport" from one place to another—it can only move by a continuous flow. A continuity equation is the mathematical way to express this kind of statement. For example, the continuity equation for electric charge states that the amount of electric charge in any volume of space can only change by the amount of electric current flowing into or out of that volume through its boundaries.

Continuity equations more generally can include "source" and "sink" terms, which allow them to describe quantities that are often but not always conserved, such as the density of a molecular species which can be created or destroyed by chemical reactions. In an everyday example, there is a continuity equation for the number of people alive; it has a "source term" to account for people being born, and a "sink term" to account for people dying.

Any continuity equation can be expressed in an "integral form" (in terms of a flux integral), which applies to any finite region, or in a "differential form" (in terms of the divergence operator) which applies at a point.

Continuity equations underlie more specific transport equations such as the convection–diffusion equation, Boltzmann transport equation, and Navier–Stokes equations.

Flows governed by continuity equations can be visualized using a Sankey diagram.

General equation

Definition of flux

A continuity equation is useful when a flux can be defined. To define flux, first there must be a quantity q which can flow or move, such as mass, energy, electric charge, momentum, number of molecules, etc. Let ρ be the volume density of this quantity, that is, the amount of q per unit volume.

The way that this quantity q is flowing is described by its flux. The flux of q is a vector field, which we denote as j. Here are some examples and properties of flux:

  • The dimension of flux is "amount of q flowing per unit time, through a unit area". For example, in the mass continuity equation for flowing water, if 1 gram per second of water is flowing through a pipe with cross-sectional area 1 cm2, then the average mass flux j inside the pipe is (1 g/s) / cm2, and its direction is along the pipe in the direction that the water is flowing. Outside the pipe, where there is no water, the flux is zero.
  • If there is a velocity field u which describes the relevant flow—in other words, if all of the quantity q at a point x is moving with velocity u(x)—then the flux is by definition equal to the density times the velocity field:
j=ρu
For example, if in the mass continuity equation for flowing water, u is the water's velocity at each point, and ρ is the water's density at each point, then j would be the mass flux, also known as the material discharge.
  • If there is an imaginary surface S, then the surface integral of flux over S is equal to the amount of q that is passing through the surface S per unit time:

(Rate that q is flowing through the imaginary surface S)=∬Sj⋅dS

in which ∬SdS is a surface integral.

(Note that the concept that is here called "flux" is alternatively termed flux density in some literature, in which context "flux" denotes the surface integral of flux density. See the main article on Flux for details.)

Integral form

The integral form of the continuity equation states that:

  • The amount of q in a region increases when additional q flows inward through the surface of the region, and decreases when it flows outward;
  • The amount of q in a region increases when new q is created inside the region, and decreases when q is destroyed;
  • Apart from these two processes, there is no other way for the amount of q in a region to change.

Mathematically, the integral form of the continuity equation expressing the rate of increase of q within a volume V is:

∂q∂t+∮Sj⋅dS=Σ

where

  • S is any imaginary closed surface, that encloses a volume V,
  • ∮SdS denotes a surface integral over that closed surface,
  • q is the total amount of the quantity in the volume V,
  • j is the flux of q,
  • t is time,
  • Σ is the net rate that q is being generated inside the volume V per unit time. When q is being generated (i.e., when ∂q∂t>0 ), the region is called a source of q, and it makes Σ more positive. When q is being destroyed (i.e., when ∂q∂t<0), the region is called a sink of q, and it makes Σ more negative. The term Σ is sometimes written as dq/dt|gen or the total change of q from its generation or destruction inside the control volume.

In a simple example, V could be a building, and q could be the number of living people in the building. The surface S would consist of the walls, doors, roof, and foundation of the building. Then the continuity equation states that the number of living people in the building (1) increases when living people enter the building (i.e., when there is an inward flux through the surface), (2) decreases when living people exit the building (i.e., when there is an outward flux through the surface), (3) increases when someone in the building gives birth to new life (i.e., when there is a positive time rate of change within the volume), and (4) decreases when someone in the building no longer lives (i.e., when there is a negative time rate of change within the volume). In conclusion, in this example there are four distinct ways that the net rate Σ may be altered.

Differential form

By the divergence theorem, a general continuity equation can also be written in a "differential form":

∂ρ∂t+∇⋅j=σ

where

  • ∇⋅ is divergence,
  • ρ is the density of the amount q (i.e. the quantity q per unit volume),
  • j is the flux of q (i.e. j = ρv, where v is the vector field describing the movement of the quantity q),
  • t is time,
  • σ is the generation of q per unit volume per unit time. Terms that generate q (i.e., σ > 0) or remove q (i.e., σ < 0) are referred to as sources and sinks respectively.

This general equation may be used to derive any continuity equation, ranging from as simple as the volume continuity equation to as complicated as the Navier–Stokes equations. This equation also generalizes the advection equation. Other equations in physics, such as Gauss's law of the electric field and Gauss's law for gravity, have a similar mathematical form to the continuity equation, but are not usually referred to by the term "continuity equation", because j in those cases does not represent the flow of a real physical quantity.

In the case that q is a conserved quantity that cannot be created or destroyed (such as energy), σ = 0 and the equations become: ∂ρ∂t+∇⋅j=0

Sign in to keep reading

10 more chapters are free with a Lably account.

More in Physics