Documentation
The Transport equation describes how a scalar quantity is transported within a fluid and applies to many scalars, including passive scalars, temperature and even momentum by component. The general transport equation is as follows:
Where:
From the mathematical point of view, the transport equation is also called the convection-diffusion equation, which is a first-order PDE (partial differential equation). The convection-diffusion equation is the basis for the most common transportation models.
If this equation looks daunting to you, don’t worry, we will break it down in the coming paragraphs to show that it is surprisingly simple.
The transport equation can be seen as the generalization of the conservation equation:
Where:
Let’s start by understanding the main components that get us from the continuity equation
When discussing the mathematics behind the transport equation, we must be familiar with a few terms. Firstly, a control volume is a small, arbitrarily shaped fluid volume. When we consider the volumes in the context of CFD, they tend to be polyhedrally shaped volumes created when meshing. Many similarly shaped volumes exist.
We usually want to consider the volumes to be infinitesimally small, or their size tends towards zero. The smaller the volume, the more accurate our solutions become.
The continuity principle states that the rate of change for a scalar quantity in any differential control volume is given by the flow and diffusion of the scalar into and out of the system, along with any generation or consumption inside the control volume.
In practice, the change of concentration of a certain quantity in the volume is the balance of the quantity flow across the boundary and the amount produced or removed inside the volume. From the mathematical point of view, we can express the balance using the equation
Flux
Mathematically we can say:
We will discuss later why diffusion has a negative convention, but maybe you can guess already.
We can write the terms as follows:
where
Convection:
Diffusion:
We can see that the flux term represents how a scalar moves spatially over time through convection and diffusion.
Source:
placing equation
Expanding the equation out gives the generalized form of the transport equation
The transport equation forms the basis of most CFD codes, where from it the Navier Stokes Equations, Energy Equations, Species Equations and many other conservations can be derived.
Although each listed has a page in our SimWiki, let’s quickly go through some to show how they are derived from the transport equation.
During thermal simulations, the temperature field (which is scalar) will transport according to the convection-diffusion equation. In this specific case, the science community commonly uses the following notation.
Where:
All terms in the equation have units
The source terms can also include terms for radiation or other contributions from complex interactions such as humidity.
We consider many contaminants and pollutants to be Passive Scalars. A Passive Scalar is passive because it does not affect the flow field. An example of passive scalar use is tracking a contaminant from an industrial area, how it moves through the air and how it could affect the air quality of a residential area. This pollutant could be as simple as air with an undesirable smell. Passive scalars can also sometimes be referred to as passive species.
A passive scalar uses the general transport equation as we defined in equation
The convective term describes how the pollutant moves with the velocity field.
The diffusion term describes how much the pollutant dispurses into the surrounding air.
The source term is used to inject the passive scalar into a volume. In the example, this could be a water processing plant or similar.
In SimScale, The diffusion coefficient
Firstly, let’s consider what we are trying to achieve, a simple equation that describes how a scalar moves in the fluid. We do this with an eulerian frame of reference, i.e. the volume we consider is static, and the fluid moves in and out of that volume.
A good place to start is with a conservation equation, where we conserve some scalar concerning its concentration. Most of us know the conservation of mass, but if not, it is written as follows:
If we express the mass flow rate as a function of volume, we can also get the equation:
If we re-arrange this and consider it for a very small volume:
We will do sanity checks at each major step in the following derivations to ensure the units for each term match these.
Let’s come back to that later and now consider the partial derivative, a change in scalar over time. The amount of scalar in a volume can change due to a few things, as we previously discussed, convection, diffusion and a source.
The reason we write the above step is to make us less prone to error. As a student, much time was wasted when equations got too long for my page, and things were missed or squashed unreadably at the end.
The convection term is the easiest of the two fluxes. Let’s return to the equation:
In the following steps, we introduce a symbol
A convective flux can be written as follows:
And substituting flux into equation
To take this further, the total flux will be split into a few components, into flux in minus flux out:
But also, we can split these components into x and y components.
We are deriving the transport equation in two dimensions here, but it is just as applicable to 1D or 3D problems. We will generalise it to n dimensions at the end. As a 2D derivation, the volume is two-dimensional, and the area is one-dimensional.
So in our convention, in 2D, the area of the low x boundary is dy so that we can write flux in by area and flux by area out as:
We do this at this stage because, like the flux is per boundary, the area is per boundary.
Substituting equation
Notice how the velocity component changes with direction. We can express the velocity vector as a bold symbol, where it represents all three components in a 3D problem:
substituting equations
We also know volume
Simplifying to become:
Since this is a partial derivative, we can rewrite it as:
Lets us again take a pause and talk about Nabla
However, for a vector, like
Another thing to consider is
This takes us to our final simplification step. notice how we have something almost identical to
Now we really should check to make sure our derivation of the convection term matches the expected units. Earlier, it was mentioned that the change in scalar concentration had the units of
Now if we take
Simplifying this and making it general to a unit system and using the scalar units, we can write this as
In the convection term, we knew that a scalar
Now, if we put a constant in to make an equation, you might notice it looks a lot like Flick’s First Law, so instead of putting any constant in, let’s put the diffusion coefficient in. Also, since a diffusion coefficient is a positive number, but a scalar will move from high concentration to low (a negative gradient), we must also introduce a negative constant.
If we wanted to look at this in multiple directions, we could say for two dimensions:
Using the same convention as before, equation
As before in convection, we use the same convention to define the diffusion in and out:
However, at this stage, we have a dilemma. If we substitute in J, we would have difficulty simplifying the derivatives from equation
And we can substitute that into equation
Substituting equations
Which simplifies into:
And as before, volume
Now, recognising that
and substituting in equation
Again, we should double-check the units. The diffusion term in 1D looks like what most would recognise as Flick’s Second Law
Adding all the units we have
The source term is simple in contrast to the convection and diffusion terms. Since this is a direct addition to the transport equation, adding the concentration over time to the volume, it is expressed as:
We can now see why it was easier to split the transport equation into three terms and substitute it at the end. If your following along to this with a pen and paper, you might be relieved. The last step takes equations
Last updated: March 31st, 2025
We appreciate and value your feedback.
What's Next
What Are the Navier-Stokes Equations?Sign up for SimScale
and start simulating now