The convection--diffusion equations (CDEs) is a set of conservation laws, constituted by the continuity equation
and the general convection-diffusion equation (GCDE)
Here, is the density of the fluid, is the velocity field, is a scalar magnitude of the fluid (such as the temperature or the concentration of a pollutant), is the diffusion coefficient and is the source term. When is a vector magnitude (for instance the velocity field ), the equation is
where denotes the exterior product of two vectors.
Notice that the GCDE for a scalar magnitude is ''combination'' of the linear transport equation
and the diffusion/heat equation
Therefore it is expected that the solution to a boundary-value problem involving the GCDE, when it exists, shares properties with the solution to a linear transport problem and a diffusion problem.
The project focuses on solving the CDEs numerically following a finite volume approach. The problems considered always take place in rectangular domains, hence a cartesian mesh is suitable in order to solve them. The report is structured in the following way:
- Introduction: brief summary of the project.
- Convection-diffusion equations: rigorous derivation of the CDEs.
- Numerical study of the convection-diffusion equations: discretization of the CDEs in a rectangular domain discretized by means of a cartesian mesh. The algorithm to solve a general transient problem is also given.
- Diagonal flow case: numerical solution to a CDEs steady state problem, taking place in a square domain with a flow in the diagonal diretion.
- Smith-Hutton case: numerical solution to a CDEs steady state problem, taking place in a rectangular domain with a ''circular'' flow.
- Appendices: quick reference for some facts in Measure Theory, Ordinary Differential Equations and Numerical resolution of linear systems.
A C++ code was developed in order to solve these problems numerically.
Hereinafter, , are known constants, and does not depend upon time. Under these hypothesis, the CDEs are
Let be two given constants, and let be a fixed length giving the square domain . The velocity field is given by , with a known constant. The the CDE is
where is Péclet's number. Let and be two curves in and consider the function
The diagonal flow case problem is the following boundary-value problem:
The boundary-value problem is studied for two values of :
- For , the previous boundary-value problem becomes a transport problem. The analytical solution is found via the method of characteristics. However, it is not a solution in the classical sense. The weak solution is not studied.
- For , a second-order elliptic PDE is obtained. By means of energy methods in Sobolev spaces (explained in Chapter 6 of Lawrence C. Evan's excellent book ''Partial Differential Equations''), the existence of weak solution is proved, although it cannot be said whether it is unique or not. This solution turns out to be a function in .
For several values of Péclet's number in the range , the numerical solution is computed using the aforementioned C++ code.
Let be a fixed length and the domain . Take the velocity field given by
defined in . Consider the curves , and , which give a partition of . Now let be the function given by
The boundary-value problem for the steady state Smith-Hutton problem is
Hereinafter, we shall assume .
Smith-Hutton's problem velocity field studied, in particular, the existence and uniqueness of streamlines is proved. In addition, these lines are computed numerically for some initial conditions, yielding the following plot:
Since the value appears in the PDE, it seems reasonable to assume that the solution will depend on this constant:
- For , the boundary-value problem turns into a transport-like problem. The characteristics of this problem are the streamlines found in the previous section. Due to the nature of these curves, the analytical solution is harder to find. The expression for this solution is given in terms of another function, although it is not proved whether it is unique. Nonetheless, it is demonstrated that if two classical solutions to the transport-like problem exist, then they must be equal.
- For , a second-order elliptic PDE is obtained. The theory studied for the diagonal-flow case cannot be applied here (at least in a straightforward fashion), since on a Neumann boundary condition is prescribed (instead of a Dirichlet boundary condition).
For several values in in the range , the numerical solution to the Smith-Hutton case is computed using the C++ code developed. Below some examples are shown: