The general equation in
conservative form is \frac{\partial c}{\partial t} = \nabla \cdot \left(D \nabla c - \mathbf{v} c\right) + R where • is the variable of interest (species concentration for
mass transfer, temperature for
heat transfer), • is the diffusivity (also called
diffusion coefficient), such as
mass diffusivity for particle motion or
thermal diffusivity for heat transport, • is the
velocity field that the quantity is moving with. It is a function of time and space. For example, in
advection, might be the concentration of salt in a river, and then would be the velocity of the water flow as a function of time and location. Another example, might be the concentration of small bubbles in a calm lake, and then 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, is the (hypothetical)
superficial velocity. • describes
sources or sinks of the quantity , i.e. the creation or destruction of the quantity. For example, for a chemical species, means that a
chemical reaction is creating more of the species, and means that a chemical reaction is destroying the species. For heat transport, might occur if thermal energy is being generated by
friction. • represents
gradient and represents
divergence. In this equation, represents concentration gradient. 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. 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 \frac{\partial c}{\partial t} = D \nabla^2 c - \mathbf{v} \cdot \nabla c. In this case the equation can be put in the simple
diffusion form: \frac{d c}{d t} = D \nabla^2 c, where the derivative of the left hand side is the
material derivative of the variable . 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{\partial c}{\partial t} + \mathbf{v} \cdot \nabla c=0. Using
Fourier transform in both temporal and spatial domain (that is, with
integral kernel e^{i\omega t+i\mathbf{k}\cdot\mathbf{x}}), its
characteristic equation can be obtained: i\omega \tilde c+\mathbf{v}\cdot i \mathbf{k} \tilde c=0 \rightarrow \omega = -\mathbf{k}\cdot \mathbf{v}, which gives the general solution: c = f(\mathbf{x}-\mathbf{v}t), 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, , so the equation to solve becomes the second order equation: \nabla \cdot (- D \nabla c + \mathbf{v} c) = R. In one spatial dimension, the equation can be written as \frac d {dx} \left(- D(x) \frac {dc(x)}{dx} + v(x) c(x) \right) = R(x) Which can be integrated one time in the space variable to give: D(x) \frac {dc(x)}{dx} - 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) = \frac{v(x)}{D(x)} and: g(x) = - \frac 1 {D(x)} \int_x R(x') \, dx' On the other hand, in the positions where , the first-order diffusion term disappears and the solution becomes simply the ratio: c(x) = \frac 1 {v(x)} \int_x R(x') \, dx' ==Velocity in response to a force==