Solution of one dimensional advection-diffusion equation
The one-dimensional advection diffusion equation can be written as
(40.45)
The finite difference approximation of the equation (40.45) can be written as,
(40.46)
Rearranging,
(40.47)
The equation (40.47) can be used to obtain the spatial and temporal distribution of concentration iteratively. For the boundary and initial conditions given in equations (40.2), (40.3) and (40.4), solution of the two dimensional advection diffusion equation can be obtained using the following Matlab code.
Solutions obtained using the code are shown in Fig. 40.7.
Fig. 40.7 Solution of the advection diffusion equation using finite difference |