Convection–diffusion equation explained

The convection–diffusion equation is a combination of the diffusion and convection (advection) equations, and describes physical phenomena where particles, energy, or other physical quantities are transferred inside a physical system due to two processes: diffusion and convection. Depending on context, the same equation can be called the advection–diffusion equation, drift–diffusion equation, or (generic) scalar transport equation.[1]

Equation

General

The general equation in conservative form is[2] [3] \frac = \mathbf \cdot (D \mathbf c - \mathbf c) + Rwhere

For example, if is the concentration of a molecule, then describes how the molecule can be created or destroyed by chemical reactions. may be a function of and of other parameters. 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 simultaneous differential equations.

Understanding the current density terms involved

The convection–diffusion equation is a particular example of conservation equation. A conservation equation has the general form:\frac + \mathbf \cdot \mathbf j_c = RWhere jc is the current density term associated to the variable of interest .

In a convection-diffusion equation, the current density of the quantity is the sum of two terms:\mathbf j_c = - D \mathbf c + \mathbf c

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:[4] [5] [6] \frac = D \nabla^2 c - \mathbf \cdot \nabla c.

In this form, the convection–diffusion equation combines both parabolic and hyperbolic partial differential equations.

In this case the equation can be put in the simple convective form:\frac = D \nabla^2 c,

where the derivative of the left hand side is the material derivative of the variable c.In non-interacting material, (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:\frac + \mathbf \cdot \nabla c=0.

ej\omega

), its characteristic equation can be obtained:j\omega \tilde c+\mathbf\cdot j \mathbf \tilde c=0 \rightarrow \omega=-\mathbf\cdot \mathbf, which gives the general solution:c = f(\mathbf-\mathbft), where

f

is any differentiable scalar function. This is the basis of temperature measurement for near Bose–Einstein condensate[7] via time of flight method.[8]

Stationary version

The stationary convection–diffusion equation describes the steady-state behavior of a convection–diffusion system. In a steady state,, so the equation to solve becomes the second order equation: \nabla \cdot (- D \nabla c + \mathbf c) = R.

One dimensional case

In one dimension the spatial gradient operator is simply:

\nabla = \frac d

so the equation to solve becomes the single-variable second order equation: \frac d \left(- D(x) \frac + v(x) c(x) \right) = R(x)

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

D(x) \frac - v(x) c(x) = - \int_x R(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) = \fracand:g(x) = - \frac 1 \int_x R(x') dx'

This equation has in fact a relatively simple analytical solution (see the link above to first-order linear differential equation with variable coefficients).

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) = \frac 1 \int_x R(x') dx'

Derivation

The convection–diffusion equation can be derived in a straightforward way[3] 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: \frac + \nabla\cdot\mathbf = R, where is the total flux and is a net volumetric source for . 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:\mathbf_\text = -D \nabla ci.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:\mathbf_\text = \mathbf cThe total flux (in a stationary coordinate system) is given by the sum of these two:\mathbf = \mathbf_\text + \mathbf_\text = -D \nabla c + \mathbf c.Plugging into the continuity equation: \frac + \nabla\cdot \left(-D \nabla c + \mathbf c \right) = R.

Complex mixing phenomena

In general,,, and 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 depends on temperature in the heat transfer formulation and reaction–diffusion pattern formation when depends on concentration in the mass transfer formulation.

Velocity in response to a force

In some cases, the average velocity field exists because of a force; for example, the equation might describe the flow of ions dissolved in a liquid, with an electric field pulling the ions in some direction (as in gel electrophoresis). In this situation, it is usually called the drift–diffusion equation or the Smoluchowski equation,[9] after Marian Smoluchowski who described it in 1915[10] (not to be confused with the Einstein–Smoluchowski relation or Smoluchowski coagulation equation).

Typically, the average velocity is directly proportional to the applied force, giving the equation:[11] [12] \frac = \nabla \cdot (D \nabla c) - \nabla \cdot \left(\zeta^ \mathbf c \right) + Rwhere is the force, and characterizes the friction or viscous drag. (The inverse is called mobility.)

Derivation of Einstein relation

See main article: Einstein relation (kinetic theory).

When the force is associated with a potential energy (see conservative force), a steady-state solution to the above equation (i.e.) is:c \propto \exp \left(-D^ \zeta^ U \right)(assuming and are constant). In other words, there are more particles where the energy is lower. This concentration profile is expected to agree with the Boltzmann distribution (more precisely, the Gibbs measure). From this assumption, the Einstein relation can be proven:[12] D \zeta = k_\mathrm T.

As a stochastic differential equation

The convection–diffusion equation (with no sources or drains,) can be viewed as a stochastic differential equation, describing random motion with diffusivity and bias . For example, the equation can describe the Brownian motion of a single particle, where the variable describes the probability distribution for the particle to be in a given position at a given time. The reason the equation can be used that way is because there is no mathematical difference between the probability distribution of a single particle, and the concentration profile of a collection of infinitely many particles (as long as the particles do not interact with each other).

The Langevin equation describes advection, diffusion, and other phenomena in an explicitly stochastic way. One of the simplest forms of the Langevin equation is when its "noise term" is Gaussian; in this case, the Langevin equation is exactly equivalent to the convection–diffusion equation.[12] However, the Langevin equation is more general.[12]

Numerical solution

See main article: Numerical solution of the convection–diffusion equation. The convection–diffusion equation can only rarely be solved with a pen and paper. More often, computers are used to numerically approximate the solution to the equation, typically using the finite element method. For more details and algorithms see: Numerical solution of the convection–diffusion equation.

Similar equations in other contexts

The convection–diffusion equation is a relatively simple equation describing flows, or alternatively, describing a stochastically-changing system. Therefore, the same or similar equation arises in many contexts unrelated to flows through space.

where is the momentum of the fluid (per unit volume) at each point (equal to the density multiplied by the velocity), is viscosity, is fluid pressure, and is any other body force such as gravity. In this equation, the term on the left-hand side describes the change in momentum at a given point; the first term on the right describes the diffusion of momentum by viscosity; the second term on the right describes the advective flow of momentum; and the last two terms on the right describes the external and internal forces which can act as sources or sinks of momentum.

In semiconductor physics

In semiconductor physics, this equation is called the drift–diffusion equation. The word "drift" is related to drift current and drift velocity. The equation is normally written:[14] \begin\frac &= - D_n \nabla n - n \mu_n \mathbf \\\frac &= - D_p \nabla p + p \mu_p \mathbf \\\frac &= -\nabla \cdot \frac + R \\\frac &= -\nabla \cdot \frac + R\endwhere

\mun

and

\mup

are electron and hole mobility.

The diffusion coefficient and mobility are related by the Einstein relation as above:\beginD_n &= \frac, \\D_p &= \frac,\endwhere is the Boltzmann constant and is absolute temperature. The drift current and diffusion current refer separately to the two terms in the expressions for, namely:\begin\frac &= - n \mu_n \mathbf, \\\frac &= p \mu_p \mathbf, \\\frac &= - D_n \nabla n, \\\frac &= - D_p \nabla p.\end

This equation can be solved together with Poisson's equation numerically.[15]

An example of results of solving the drift diffusion equation is shown on the right. When light shines on the center of semiconductor, carriers are generated in the middle and diffuse towards two ends. The drift–diffusion equation is solved in this structure and electron density distribution is displayed in the figure. One can see the gradient of carrier from center towards two ends.

See also

Further reading

Notes and References

  1. Book: Computational Fluid Dynamics in Industrial Combustion . Baukal . Gershtein . Li . 67 . CRC Press . 2001 . 0-8493-2000-3 . Google Books .
  2. Book: Stocker, Thomas . Introduction to Climate Modelling . Berlin . Springer . 2011 . 978-3-642-00772-9 . 57 . Google Books .
  3. Web site: Advective Diffusion Equation . Lecture notes . Scott A. . Socolofsky . Gerhard H. . Jirka . dead . June 25, 2010 . https://web.archive.org/web/20100625232657/https://ceprofs.civil.tamu.edu/ssocolofsky/cven489/downloads/book/ch2.pdf . April 18, 2012 .
  4. Book: Bejan A . Convection Heat Transfer . 2004.
  5. Book: Bird, Stewart, Lightfoot . Transport Phenomena . 1960.
  6. Book: Probstein R . Physicochemical Hydrodynamics . 1994.
  7. Ketterle. W. . Durfee. D. S.. Stamper-Kurn. D. M. . 1999-04-01 . Making, probing and understanding Bose-Einstein condensates . cond-mat/9904034.
  8. Brzozowski. Tomasz M. Maczynska. Maria. Zawada. Michal. Zachorowski. Jerzy. Gawlik. Wojciech. 67796405. 2002-01-14. Time-of-flight measurement of the temperature of cold atoms for short trap-probe beam distances . Journal of Optics B: Quantum and Semiclassical Optics. en. 4. 1. 62–66 . 10.1088/1464-4266/4/1/310. 1464-4266 . 2002JOptB...4...62B.
  9. Chandrasekhar . 1943 . Stochastic Problems in Physics and Astronomy . Rev. Mod. Phys. . 15 . 1 . 1 . 10.1103/RevModPhys.15.1 . 1943RvMP...15....1C . See equation (312)
  10. M. v. . Smoluchowski . Über Brownsche Molekularbewegung unter Einwirkung äußerer Kräfte und den Zusammenhang mit der verallgemeinerten Diffusionsgleichung . . 353 . 4. Folge . 48 . 1103–1112 . 1915 . 10.1002/andp.19163532408 . 1915AnP...353.1103S .
  11. Web site: Smoluchowski Diffusion Equation .
  12. Book: The Theory of Polymer Dynamics . Doi . amp . Edwards . 1988 . 46–52 . 978-0-19-852033-7 . .
  13. Arabas. S.. Farhat. A.. Derivative pricing as a transport problem: MPDATA solutions to Black-Scholes-type equations. J. Comput. Appl. Math.. 2020. en. 373. 112275. 10.1016/j.cam.2019.05.023. 1607.01751. 128273138.
  14. Hu. Yue. Simulation of a partially depleted absorber (PDA) photodetector. Optics Express. 23. 16. 20402–20417. 10.1364/OE.23.020402. 26367895. 2015OExpr..2320402H. 2015. 11603/11470. free.
  15. Hu. Yue. Modeling sources of nonlinearity in a simple pin photodetector. Journal of Lightwave Technology. 32. 20. 3710–3720. 10.1109/JLT.2014.2315740. 2014JLwT...32.3710H. 2014. 10.1.1.670.2359. 9882873.