Abstract
In this research, pollution transport in a 1-D domain with a source/sink and a retardation term is simulated using a series of completely mixed reactors. It is shown that as the volume of these reactors approaches zero, the governing equation of the system becomes identical to the advection diffusion partial differential equation. By application of mass balance to a finite number of completely mixed reactors, a set of ordinary differential equations which is equivalent to spatially discretized form of the equation is obtained in a completely natural and intuitive way. More importantly, the proposed innovative model can offer a conceptual insight into pollution transport phenomena and is flexible to any change for different problems.
Similar content being viewed by others
1 Introduction
Pollution transport is one of the most significant problems in environmental engineering and mainly takes place as a result of advection, diffusion, and reactions in rivers. Simulation of such problems is mostly concerned with solving differential equations. Obtaining an analytical solution is not always possible, and therefore numerical methods are mostly used to solve these equations. On the other hand, a comprehensive model which is able to simulate the advection–diffusion process in a river physically, based on a familiar concept such as mass balance, may yield to establishment of a more well-defined scheme rather than those presented by numerical methods, typically. As physical sense can be highlighted in the model, implementing new initial and boundary conditions as well as the other desirable changes in the problem statement can be carried out in a more obvious framework.
Application of mass balance in completely mixed reactors for transport simulation has been used extensively by researchers (Hill and Root 2014; Carberry 2001; Jakobsen 2008; Mann 2009; Salmi et al. 2010; Davis and Davis 2012). Advection–diffusion simulation has been studied using feedforward and back-feed reactors by Chapra (1997). Dispersion effects have been addressed by Metcalf and Eddy (Burton et al. 2014). Effects of chemical reactions in pollutants fate using completely mixed reactors have been investigated by Hessel et al. (2004) and have been employed to indoor air quality simulations by Hayes (1991) and WHO (2015). As far as the authors are concerned, diffusion of pollution by completely mixed reactors has not been simulated using flow rates to/from a reactor in feedforward and back-feed systems.
In this study, it is shown that application of mass balance to a series of reactors transforms the transport equation into a system of linear equations. This transformation is equivalent to application of numerical methods for solving the governing partial differential equation (PDE) of mass transport. Existence of source/sink and reactions has also been formulated. Furthermore, these formulations are verified using several examples and comparing the results with the analytical solution.
2 Methodology and Formulation
2.1 Model Construction
It is assumed that pollution transport in a 1-D river may be simulated by a series of completely mixed reactors. In this model, each reactor is connected to its left and right reactors via pipes. Water storage and reactions take place in these reactors, and driving forces for pollution transport (i.e., diffusion and advection) are provided by implementing pumps.
2.1.1 Diffusion Simulation
Diffusion is a type of random motion where molecular movements to left and right have the same probability. In order to model diffusion in the proposed model, an arbitrary reactor (e.g., reactor i, shown in Fig. 1a) is connected to its adjacent reactors at its left and right (reactors i − 1 and i + 1) by two identical pumps: i, i + 1. Using this concept, transmission of pollution to left and right with the same probability is allowed. This process is applied for all other reactors, as shown in Fig. 1a, to model diffusion process in the whole domain. As pumps start working simultaneously, pollution transports from time 0 onward.
2.1.2 Advection Simulation
Advection is the transport of pollution by bulk flow in river. In order to model advection (form left to the right part of the system), each reactor is connected to its right reactor via a pipe. The driving force for advection is provided by implementing a pump at downstream (the most right reactor) having a flow rate of QAdv (Fig. 1b). This layout allows the bulk transport of pollution from the left to the right of the system. Pollution concentration in the advective pipes is assumed to vary linearly.
2.1.3 Diffusion–Advection Simulation
By combination of the two mentioned systems, diffusion–advection may be modeled using a series of completely mixed reactors as shown in Fig. 1c.
2.2 Governing Equation
In order to derive the governing partial differential equation of the proposed model, it is assumed that the model consists of infinitely small reactors with a volume of dV. Since pollution varies linearly in the advective pipes, the concentration of pollution in these pipes is assumed to be the average of both their end concentrations. Mass balance equation for an interior reactor i shown in Fig. 2a is written as:
Substituting QC for ṁ yields:
Simplification of the above equations results in:
Simplification of Eq. (6) results in:
which shows that the governing equation for the proposed model is identical to the diffusion advection equation.
2.3 Discretization of the Governing Equation
In order to solve Eq. (7), one may use numerical methods to discretize this equation both spatially and temporally. In this research, however, a new procedure is followed for spatially discretizing Eq. (7). Writing mass balance equation for an arbitrary reactor (i), shown in Fig. 2b, yields:
Simplification of Eq. (8) yields:
Application of Eq. (9) to all interior nodes yields a system of linear first-order differential equations which leads to closure when considering the boundary nodes. The time derivative in Eq. (9) and similar equations may be evaluated using forward, backward or Crank–Nicolson finite difference schemes.
2.4 Boundary Nodes
In order to write mass balance equation for boundary reactors, two types of boundaries are investigated in this research: infinite source and impermeable boundary.
Infinite source: when a boundary is an infinite source such as lakes, concentration in this boundary is specified and constant over time (Fig. 3a).
In order to model this boundary, the reactor at that boundary is considered to have an infinite volume with a constant concentration. Inflow and outflow to and from this reactor do not change its volume nor its concentration. Application of mass balance to this reactor yields:
$$\frac{{Q_{\text{Diff}} }}{{V_{1} }}\left( { - C_{1} + C_{2} } \right) - \frac{{Q_{\text{Adv}} }}{{V_{1} }}\left( {\frac{{C_{1} + C_{2} }}{2}} \right) = \frac{{{\text{d}}C_{i} }}{{{\text{d}}t}}$$(10)As the volume of the boundary reactor approaches infinity, the left-hand side of the above equation becomes zero, reflecting the fact that the concentration of the reactor remains constant over time.
Impermeable boundary implies the existence of an impermeable barrier at the end of a river, such as a rock. Flow and pollution flux are zero across this boundary, and as a result there would be no advection in the domain. To model this boundary using complete mix reactors, the reactor at this boundary (reactor 1) is not connected to any exterior reactor, as shown in Fig. 3b, resulting in no outward flux conditions.
Application of mass balance for the considered reactor results:
$$\frac{{Q_{\text{Diff}} }}{{V_{1} }}\left( { - C_{1} + C_{2} } \right) - \frac{{Q_{\text{Adv}} }}{{V_{1} }}\left( {\frac{{C_{1} + C_{2} }}{2}} \right) = \frac{{{\text{d}}C_{i} }}{{{\text{d}}t}}.$$(11)
2.5 Forcing Function
This term is called source/sink in environmental modeling and may be a point source/sink or a distributed source/sink term. These terms imply any external pollution recharge or discharge to or from a reactor. In order to model a point source/sink, mass balance is simply written for that reactor (e.g., reactor i). For a distributed source/sink, the forcing function is integrated over the midpoint of the pipe i − 1, i to the midpoint of pipe i, i + 1 and then replaced as a point source exerted on reactor i.
2.6 Reaction
This implies any mass generation or loss due to reactions depending on the concentration. The most common example is retardation pollution. Assuming a mass decay rate of kCn, mass balance equation for reactor i is written as:
where k is the decay rate and n is an exponent indicating the order of reaction.
3 Examples and Results
In order to illustrate how the proposed model may be employed for solving pollution transport and also to show its capabilities, several diffusion advection examples are solved.
3.1
In this example, at first advection diffusion in a domain with homogeneous Dirichlet boundary conditions and a point source at the center are considered:
Simulation of this example using the proposed model is illustrated in Fig. 4.
In order to solve this example, the problem is discretized using 11 reactors (9 interior reactors and 2 boundary reactors). The reactors are assumed to have a unit volume, V = 1, and ∆x is considered to be 1. Application of Eqs. (9), (10), and (13) to interior reactors, boundary reactors, and the reactor with the source term, respectively, results:
In Eq. (3), V1 and V11 are assumed to have an infinite volume. For numerical purposes, their volume is assumed to be 1000. Application of the above equations results in a first-order system of linear differential equations. Using forward finite difference over time with a time step of ∆t = 0.01 s, the solutions may be obtained. The results for D = 1 m2/s and u = 0.0, 1.0, and 2.0 m/s are shown in Fig. 5.
It is observed that the results are in good agreement with the analytical solution. The plot shows that in the absence of advection the distribution of concentration is symmetric, indicating that there is a symmetric diffusion. The plot also shows that as time increases the concentration through the entire domain dampens. The plot also depicts that in case of advection, concentration is deviated to the right as the result of velocity.
As the 2nd part of this example, it is assumed that the pollution decays by a first-order reaction and a reaction constant of 0.1 s−1, n = 1, k = 0.1 s−1. Application of Eq. (15) for interior, boundary, and central reactors yields:
The results for D = 1 m2/s, u = 1 m/s and values of 0.1 and 0.5 s−1 for k are shown in Fig. 6 and show the capability of the model for considering reactions in diffusion advection problems. The root-mean-square error (RMSE) over the entire domain for this example (for the two parts) at different times is reported in Table 1. The results justify employing completely mixed reactors for advection diffusion simulation.
It is seen that when the retardation term increases, the concentration of pollution decreases throughout the entire domain.
3.2
The second problem considers an advection diffusion problem with a first-order decay reaction, a non-homogeneous boundary condition at the left end, and a homogeneous boundary condition at the other end. Since the pollution decays, the left boundary condition does not remain constant over time:
In order to solve this problem, the same procedures described in the previous example are followed for all reactors except for the left one. This problem is shown in Fig. 7.
Since the concentration in the left boundary reactor decays linearly with time, mass balance application to this reactor results in:
where V1 is considered to be 1000 times Vi. The results of solving this problem using the proposed model are shown in Fig. 8 and given in Table 2.
The plot shows that as time increases from 0 to 3, concentration is pushed to the right side because of the velocity. It also indicates that as the retardation term increases, due to the degradation of the pollution, the concentration decreases.
As in the previous example, the results verify the application of the proposed model as a numerical method for modeling transport processes.
3.3
The third example considers diffusion problem in a domain where the right boundary condition is an impermeable boundary. Because of the no flux condition, no advection may be present. This problem is stated as:
This simulation of this example is shown in Fig. 9.
The procedure for solving this problem is the same as the two previous problems except for the rightmost reactor which models the no flux boundary condition. As is shown in Fig. 3b, the reactor in the right side of the boundary is only connected to the reactor at its left, imitating the no flux boundary condition. Formulation of all reactors is the same as in the previous problems except for the rightmost reactor which is:
The results of solving this problem are shown in Fig. 10 and given in Table 3.
This graph again shows the effects of retardation term on the reduction in concentration in the domain.
4 Conclusion
In this research, it was shown how to simulate diffusion advection transport with a retardation and a source/sink term using a series of completely mixed reactors in a 1-D domain such as rivers. By application of mass balance for each reactor, a system of first-order linear differential equations with respect to time was obtained. The system which was a spatially discretized form of the PDE governing pollution transport may then be solved to obtain the results of such simulations. In order to show the capabilities of the proposed model, three different examples were solved and root-mean-square errors were obtained. The results of the three examples showed that the solution obtained by the proposed model is in a good agreement with the analytical solutions. It can be confirmed that pollution transport in a 1-D domain including a retardation and/or a sink/source can be modeled using the proposed scheme accurately, along with a high degree of flexibility in imposing different conditions with more aspects of physical sense.
Abbreviations
- \(\dot{m}_{\text{in}}\) :
-
Mass flux in \(\left( {{\raise0.7ex\hbox{${\text{mass}}$} \!\mathord{\left/ {\vphantom {{\text{mass}} {\text{time}}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${\text{time}}$}}} \right)\)
- \(\dot{m}_{\text{out}}\) :
-
Mass flux out \(\left( {{\raise0.7ex\hbox{${\text{mass}}$} \!\mathord{\left/ {\vphantom {{\text{mass}} {\text{time}}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${\text{time}}$}}} \right)\)
- \(\frac{{{\text{d}}m}}{{{\text{d}}t}}\) :
-
Mass accumulation rate \(\left( {{\raise0.7ex\hbox{${\text{mass}}$} \!\mathord{\left/ {\vphantom {{\text{mass}} {\text{time}}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${\text{time}}$}}} \right)\)
- \(Q_{\text{D}}\) :
-
Diffusion flow rate \(\left( {{\raise0.7ex\hbox{${\text{volume}}$} \!\mathord{\left/ {\vphantom {{\text{volume}} {\text{time}}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${\text{time}}$}}} \right)\)
- \(Q_{\text{A}}\) :
-
Advection flow rate \(\left( {{\raise0.7ex\hbox{${\text{volume}}$} \!\mathord{\left/ {\vphantom {{\text{volume}} {\text{time}}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${\text{time}}$}}} \right)\)
- \(C\) :
-
Concentration \(\left( {{\raise0.7ex\hbox{${\text{mass}}$} \!\mathord{\left/ {\vphantom {{\text{mass}} {\text{volume}}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${\text{volume}}$}}} \right)\)
- \(K\) :
-
Decay rate \(\left( {{\text{S}}^{ - 1} } \right)\)
- \(V\) :
-
Volume of reactor \(\left( {\text{volume}} \right)\)
- \(u\) :
-
Velocity \(\left( {{\raise0.7ex\hbox{${\text{distance}}$} \!\mathord{\left/ {\vphantom {{\text{distance}} {\text{time}}}}\right.\kern-0pt} \!\lower0.7ex\hbox{${\text{time}}$}}} \right)\)
- \(\pm S\) :
-
Source/sink term
- \(\delta \left( x \right)\delta \left( t \right)\) :
-
Dirac delta function
References
Burton FL, Stensel HD, Tchobanoglous G (eds) (2014) Wastewater engineering: treatment and resource recovery. McGraw-Hill, Maidenherd
Carberry JJ (2001) Chemical and catalytic reaction engineering. Courier Corporation, Chelmsford
Chapra SC (1997) Surface water-quality modeling. Mcgraw-hill Series In Water Resources and Environmental Engineering, Maidenherd
Davis ME, Davis RJ (2012) Fundamentals of chemical reaction engineering. Courier Corporation, Chelmsford
Hayes S (1991) Use of an indoor air quality model [IAQM] to estimate indoor ozone levels. J Air Waste Manag Assoc 41(2):161–170
Hessel V, Löwe H, Hardt S (2004) Chemical micro process engineering: fundamentals, modelling and reactions. Wiley, New York
Hill CG, Root TW (2014) An introduction to chemical engineering kinetics & reactor design. Pипoл Клaccик, New York
Jakobsen HA (2008) Chemical reactor modeling. Multiphase reactive flows. Springer, New York
Mann U (2009) Principles of chemical reactor analysis and design: new tools for industrial chemical reactor operations. Wiley, New York
Salmi TO, Mikkola JP, Warna JP (2010) Chemical reaction engineering and reactor technology. CRC Press, Boca Raton
World Health Organization (2015) World health statistics 2015. World Health Organization, Geneva
Author information
Authors and Affiliations
Corresponding author
Appendices
Appendix 1
In order to solve the three given examples in this paper, it should be noted that the diffusion advection equation with a linear retardation term can be transformed into the standard form of diffusion equation as follows:
Solution for the first example:
Using the transformation \(C\left( {x,t} \right) = w\left( {x,t} \right)\exp \left\{ {\frac{ux}{2D} - \frac{{u^{2} t}}{4D}} \right\}\) the original equation is transformed to:
The eigenfunction for this problem is \(X\left( x \right) = \sin \left( {\frac{n\pi }{10}x} \right)\) which is used for the expansion of other functions.
The forcing function, \(\delta \left( {x - 5} \right)\delta \left( t \right)\), is expanded as:
And w(x, t) is expanded as:
And the solution is found as:
By considering special times and points, these analytic results are given:
u = 0 m/s | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
t(s)/x(m) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
t = 1 | 0 | 0.0051 | 0.0297 | 0.1037 | 0.2196 | 0.2820 | 0.2196 | 0.1037 | 0.0297 | 0.0051 | 0 |
t = 3 | 0 | 0.0348 | 0.0741 | 0.1159 | 0.1496 | 0.1627 | 0.1496 | 0.1159 | 0.0741 | 0.0348 | 0 |
u = 1 m/s | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
t(s)/x(m) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
t = 1 | 0 | 0.0005 | 0.0051 | 0.0297 | 0.1037 | 0.21969 | 0.2820 | 0.2196 | 0.1037 | 0.0295 | 0 |
t = 3 | 0 | 0.0022 | 0.0078 | 0.0201 | 0.0428 | 0.0768 | 0.1165 | 0.1488 | 0.1570 | 0.1215 | 0 |
By considering special times and points, these analytic results are given:
t = 1 s | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
k(s1)/x(m) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
K = 0 | 0 | 0.0005 | 0.0051 | 0.0297 | 0.1037 | 0.21969 | 0.2820 | 0.2196 | 0.1037 | 0.0295 | 0 |
K = 0.1 | 0 | 0.0004 | 0.0046 | 0.0269 | 0.0939 | 0.1987 | 0.2552 | 0.1987 | 0.0939 | 0.0267 | 0 |
K = 0.5 | 0 | 0.0003 | 0.0031 | 0.0180 | 0.0629 | 0.1332 | 0.1711 | 0.1332 | 0.0629 | 0.0179 | 0 |
t = 3 s | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
k(s1)/x(m) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
K = 0 | 0 | 0.0022 | 0.0078 | 0.0201 | 0.0428 | 0.0768 | 0.1165 | 0.1488 | 0.1570 | 0.1215 | 0 |
K = 0.1 | 0 | 0.0016 | 0.0057 | 0.0149 | 0.0317 | 0.0569 | 0.0863 | 0.1102 | 0.1163 | 0.0900 | 0 |
K = 0.5 | 0 | 0.0004 | 0.0017 | 0.0044 | 0.0095 | 0.0171 | 0.0260 | 0.0332 | 0.0350 | 0.0271 | 0 |
Appendix 2
Solution for the second example:
Using the given transformation, this equation is transformed to:
The eigenfunction for this problem is \(X\left( x \right) = \sin \left( {\frac{n\pi }{10}x} \right)\) which is used for the expansion of other functions.
Since the problem has a non-homogeneous boundary condition, the following transformation may be used:
By assuming a function that satisfies the non-homogeneous boundary conditions for s(x, t) such as:
And substituting r(x, t) + s(x, t) for w(x, t), the following equation is achieved:
Since s(x, t) is known, the two terms in the right-hand side of the above equation are expanded as:
By considering special times and points, these analytic results are given:
t = 1 s | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
k(s1)/x(m) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
K = 0 | 1 | 0.7137 | 0.3649 | 0.1256 | 0.0280 | 0.0039 | 0.0003 | 1.9E−05 | 6.6E−07 | 1.3E−08 | 0 |
K = 0.1 | 0.9048 | 8.66E−01 | 0.8020 | 0.7211 | 0.6329 | 0.5428 | 0.4524 | 0.3618 | 0.2697 | 0.1667 | 0 |
K = 1 | 0.3678 | 3.52E−01 | 0.3259 | 0.2930 | 0.2572 | 0.2206 | 0.1838 | 0.1470 | 0.1096 | 0.0677 | 0 |
t = 3 s | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
k(s1)/x(m) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
K = 0 | 1 | 0.9321 | 0.8107 | 0.6436 | 0.4580 | 0.2880 | 0.1584 | 0.0756 | 0.0311 | 0.01073 | 0 |
K = 0.1 | 0.7408 | 0.7302 | 0.7097 | 0.6769 | 0.6316 | 0.5752 | 0.5103 | 0.4384 | 0.3552 | 0.2377 | 0 |
K = 1 | 0.0497 | 0.0490 | 0.0476 | 0.0454 | 0.0424 | 0.0386 | 0.0342 | 0.0294 | 0.0238 | 0.015 | 0 |
Appendix 3
Solution for the third example:
By assuming that C(x, t) = r(x, t) + s(x, t) and assuming s(x, t) such that it satisfies the non-homogeneous boundary condition, one gets:
Using separation of variables to solve r, one gets the eigenvalue and eigenfunctions as:
By considering special times and points, these analytic results are given:
t = 1 s | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
k(s1)/x(m) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
K = 0 | 1 | 0.4795 | 0.1572 | 0.0338 | 0.0046 | 0.0004 | 2.20E−05 | 7.4E−07 | 1.5E−08 | 1.9E−10 | 3.0E−12 |
K = 0.1 | 0.9048 | 0.0434 | 0.1423 | 0.0306 | 0.0042 | 0.0003 | 1.9E−05 | 6.7E−07 | 1.3E−08 | 1.7E−10 | 2.7E−12 |
K = 1 | 0.3678 | 0.0176 | 0.0578 | 0.0124 | 0.0017 | 0.0001 | 8.1E−06 | 2.7E−07 | 5.6E−09 | 7.2E−11 | 1.1E−12 |
t = 3 s | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
k(s1)/x(m) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
K = 0 | 1 | 0.6830 | 0.4142 | 0.2206 | 0.1024 | 0.0412 | 0.0143 | 0.0042 | 0.0010 | 0.0002 | 8.9E−05 |
K = 0.1 | 0.7408 | 0.506 | 0.3068 | 0.1634 | 0.0759 | 0.0305 | 0.0105 | 0.0031 | 0.0008 | 0.0001 | 6.6E−05 |
K = 1 | 0.0497 | 0.0340 | 0.0206 | 0.0109 | 0.0051 | 0.0020 | 0.0007 | 0.0002 | 5.43E−05 | 1.2E−05 | 4.4E−06 |
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Momeni, Y., Monajemi, P. & Amiri, M. Simulation of Diffusion Advection Phenomena with Retardation and Source/Sink Terms Using a Series of Completely Mixed Reactors. Iran J Sci Technol Trans Civ Eng 44, 355–367 (2020). https://doi.org/10.1007/s40996-019-00269-9
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s40996-019-00269-9