Lably
Skip to content

Convection–diffusion equation

Combination of the diffusion and convection (advection) equations

  • 7 min read
  • 3 chapters

Related on Lably

Through Diffusion, Convection and Drift velocity

Equation

The general equation in conservative form is ∂c∂t=∇⋅(D∇c−vc)+R where

  • c is the variable of interest (species concentration for mass transfer, temperature for heat transfer),
  • D is the diffusivity (also called diffusion coefficient), such as mass diffusivity for particle motion or thermal diffusivity for heat transport,
  • v is the velocity field that the quantity is moving with. It is a function of time and space. For example, in advection, c might be the concentration of salt in a river, and then v would be the velocity of the water flow as a function of time and location. Another example, c might be the concentration of small bubbles in a calm lake, and then v would be the velocity of bubbles rising towards the surface by buoyancy (see below) depending on time and location of the bubble. For multiphase flows and flows in porous media, v is the (hypothetical) superficial velocity.
  • R describes sources or sinks of the quantity c, i.e. the creation or destruction of the quantity. For example, for a chemical species, R > 0 means that a chemical reaction is creating more of the species, and R < 0 means that a chemical reaction is destroying the species. For heat transport, R > 0 might occur if thermal energy is being generated by friction.
  • ∇ represents gradient and ∇ ⋅ represents divergence. In this equation, ∇c represents concentration gradient.

In general, D, v, and R may vary with space and time. In cases in which they depend on concentration as well, the equation becomes nonlinear, giving rise to many distinctive mixing phenomena such as Rayleigh–Bénard convection when v depends on temperature in the heat transfer formulation and reaction–diffusion pattern formation when R depends on concentration in the mass transfer formulation.

Often there are several quantities, each with its own convection–diffusion equation, where the destruction of one quantity entails the creation of another. For example, when methane burns, it involves not only the destruction of methane and oxygen but also the creation of carbon dioxide and water vapor. Therefore, while each of these chemicals has its own convection–diffusion equation, they are coupled together and must be solved as a system of differential equations.

Derivation

The convection–diffusion equation can be derived in a straightforward way from the continuity equation, which states that the rate of change for a scalar quantity in a differential control volume is given by flow and diffusion into and out of that part of the system along with any generation or consumption inside the control volume: ∂c∂t+∇⋅j=R, where j is the total flux and R is a net volumetric source for c. There are two sources of flux in this situation. First, diffusive flux arises due to diffusion. This is typically approximated by Fick's first law: jdiff=−D∇c i.e., the flux of the diffusing material (relative to the bulk motion) in any part of the system is proportional to the local concentration gradient. Second, when there is overall convection or flow, there is an associated flux called advective flux: jadv=vc The total flux (in a stationary coordinate system) is given by the sum of these two: j=jdiff+jadv=−D∇c+vc. Plugging into the continuity equation: ∂c∂t+∇⋅(−D∇c+vc)=R.

Common simplifications

In a common situation, the diffusion coefficient is constant, there are no sources or sinks, and the velocity field describes an incompressible flow (i.e., it has zero divergence). Then the formula simplifies to: ∂c∂t=D∇2c−v⋅∇c.

In this case the equation can be put in the simple diffusion form: dcdt=D∇2c,

where the derivative of the left hand side is the material derivative of the variable c. In non-interacting material, D=0 (for example, when temperature is close to absolute zero, dilute gas has almost zero mass diffusivity), hence the transport equation is simply the continuity equation: ∂c∂t+v⋅∇c=0.

Using Fourier transform in both temporal and spatial domain (that is, with integral kernel eiωt+ik⋅x), its characteristic equation can be obtained: iωc~+v⋅ikc~=0→ω=−k⋅v, which gives the general solution: c=f(x−vt), where f is any differentiable scalar function. This is the basis of temperature measurement for near Bose–Einstein condensate via time of flight method.

Stationary version

The stationary convection–diffusion equation describes the steady-state behavior of a convection–diffusion system. In a steady state, ⁠∂c/∂t⁠ = 0, so the equation to solve becomes the second order equation: ∇⋅(−D∇c+vc)=R. In one spatial dimension, the equation can be written as ddx(−D(x)dc(x)dx+v(x)c(x))=R(x)

Which can be integrated one time in the space variable x to give:

D(x)dc(x)dx−v(x)c(x)=−∫xR(x′)dx′

Where D is not zero, this is an inhomogeneous first-order linear differential equation with variable coefficients in the variable c(x):

y′(x)=f(x)y(x)+g(x). where the coefficients are: f(x)=v(x)D(x) and: g(x)=−1D(x)∫xR(x′)dx′ On the other hand, in the positions x where D=0, the first-order diffusion term disappears and the solution becomes simply the ratio:

c(x)=1v(x)∫xR(x′)dx′

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Topics in mathematics