CDR-Solv: Solving the Convection-Diffusion-Reaction Equation with Algebraic Sub-Grid Scale Stabilization Using Python
Source abstract
Abstract
The convection-diffusion-reaction (CDR) equation is a fundamental mathematical model for simulating the transport of pollutants. It is a crucial tool for addressing global environmental challenges. However, most existing computational solutions are proprietary and inaccessible, making the development of open-source educational platforms with advanced stabilization capabilities necessary. This study developed and validated a computational framework that solves CDR equations using algebraic sub-grid scale (ASGS) stabilization. The research addressed the fundamental challenge of spurious oscillations that emerge in standard Galerkin formulations when convective transport significantly exceeds diffusive processes. This is a prevalent issue in transport phenomena modeling. A novel, Python-based educational software platform called CDR-Solv was developed to demonstrate the effectiveness of ASGS stabilization across polynomial degrees ranging from linear to cubic approximations. Numerical experiments with minimal diffusion coefficients showed that numerical instabilities were successfully eliminated while maintaining solution accuracy across various source term configurations. The stabilization parameter, τK, was instrumental in achieving computational stability without compromising mathematical rigor. Comparative analysis revealed the superior performance of higher-order approximations in capturing boundary layer phenomena and sharp gradient regions. The primary contribution of this study is the development of an open-source educational platform that provides access to advanced stabilization techniques and algorithmic transparency. The CDR-Solv framework also allows for the systematic exploration of the effects of selecting different polynomial degrees on solution quality in transport-dominated regimes.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Advanced Numerical Methods in Computational Mathematics · Computational Fluid Dynamics and Aerodynamics · Lattice Boltzmann Simulation Studies
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Departamento de Formación Básica, Escuela Politécnica Nacional, Quito 170525, Ecuador
Departmento de Informática y Ciencias de la Computación, Escuela Politécnica Nacional, Quito 170525, Ecuador
Laboratorio de Simulación Numérica y Análisis Computacional, Escuela Politécnica Nacional, Quito 170525, Ecuador
Funding
National Polytechnic School—EPN of Ecuador
References (42)
Show source-provided references
1. Numerical simulation of groundwater contaminant transport in unsaturated flow10.2166/ws.2020.136 ↗
2. Computational analysis of drug transport in tumor microenvironment as a critical compartment for nanotherapeutic pharmacokinetics10.3109/10717544.2015.1022837 ↗
3. High-order models for convection–diffusion-reaction transport in multiscale porous media10.1016/j.ces.2023.119663 ↗
4. Torres, R.C. (2024). Influencia Del Término Difusivo en el Modelamiento de Transporte de Masa Usando la Ecuación de Convección Difusión no Lineal. [Ph.D. Thesis, Universidad Nacional de Trujillo]. Available online: https://dspace.unitru.edu.pe/items/756435db-e611-4478-8241-7f1be2b71638.
5. Torres, C.P.C. (2023). Evaluación de la Concentración de Material Radiactivo Disperso en la Atmósfera a Través de la Ecuación de Difusión: Solución de la Ecuación de Advección Para la Liberación Instantánea de Contaminantes, Escuela Politécnica Nacional. Available online: https://bibdigital.epn.edu.ec/handle/15000/24851.
6. Experimentos numéricos sobre ecuaciones de reacción convección difusión con divergencia nula del campo de velocidad
7. López, J.A.M. (2024). Análisis Numérico de un Método de Galerkin Para un Problema Evolutivo no Lineal, Universidad de Córdoba. Available online: https://repositorio.unicordoba.edu.co/handle/ucordoba/8849.
8. Solución de la ecuación de convección difusión mediante las funciones de base radial multicuádricas10.21500/20275846.4727 ↗
9. Solución Numérica de una ecuación de convección-difusión no local fraccionaria10.31908/19098367.2954 ↗
10. Asensi, I.P. (2019). Resolución de Ecuaciones de Convección-Difusión en 2D Usando el Método de las Diferencias Finitas Compactas. [Master’s Thesis, Universitat Politècnica de València]. Available online: https://riunet.upv.es/handle/10251/129534.
11. González, T.C. (2021). Adaptación de Mallados de Elementos Finitos Conformes Utilizando Elementos de Tipo Hexaedro. [Master’s Thesis, Universidad Politécnica de Madrid]. Available online: https://oa.upm.es/67850/.
12. Rodríguez, C.A.T. (2022). Desarrollo de Código Bidimensional Transitorio Para el Estudio de la Transferencia de Calor en Flujo Laminar e Incompresible Aplicado a Convección Natural Con Alta Variación de Relaciones de Aspect. [Master’s Thesis, Universidade Estadual de Campinas]. Available online: https://repositorio.unicamp.br/acervo/detalhe/1242115.
13. A Petrov-Galerkin discretization with optimal test space of a mild-weak formulation of convection-diffusion equations in mixed form10.1093/imanum/dru003 ↗
14. Post-processing for spatial accuracy-enhancement of pure Lagrange–Galerkin schemes applied to convection-diffusion equations10.1093/imanum/draa076 ↗
15. On the stability of finite-element discretizations of convection-diffusion-reaction equations10.1093/imanum/drp020 ↗
16. The convection-diffusion Petrov-Galerkin story10.1093/imanum/drp002 ↗
17. Analysis of variable-degree HDG methods for convection-diffusion equations. Part I: General nonconforming meshes10.1093/imanum/drr058 ↗
18. An optimal L (L2)-error estimate for the discontinuous Galerkin approximation of a nonlinear non-stationary convection-diffusion problem10.1093/imanum/drm023 ↗
19. Steady-State Simulation of Semiconductor Devices Using Discontinuous Galerkin Methods10.1109/ACCESS.2020.2967125 ↗
20. King, B.B., and Krueger, D.A. (2004, January 14–17). The 1-D convection diffusion equation: Galerkin least squares approximations and feedback control. Proceedings of the 2004 43rd IEEE Conference on Decision and Control (CDC) (IEEE Cat. No.04CH37601), Nassau, Bahamas.10.1109/CDC.2004.1430256 ↗
21. Un nuevo enfoque para el tratamiento de los términos difusivos en la ecuación de convección-difusión en el método de Galerkin discontinuo
22. Robust a posteriori error estimates for HDG method for convection–diffusion equations
23. Streamline upwind/Petrov-Galerkin formulations for convection dominated flows with particular emphasis on the incompressible Navier-Stokes equations10.1016/0045-7825(82)90071-8 ↗
24. Numerical solution of convection–diffusion–reaction equations by a finite element method with error correlation10.1063/5.0050792 ↗
25. Numerical methods for a nonlinear reaction–diffusion system modelling a batch culture of biofilm10.1016/j.apm.2016.08.020 ↗
26. A high-resolution Petrov–Galerkin method for the 1D convection–diffusion–reaction problem10.1016/j.cma.2009.10.009 ↗
27. A high-resolution Petrov–Galerkin method for the convection–diffusion–reaction problem. Part II—A multidimensional extension10.1016/j.cma.2011.10.003 ↗
28. Meshless simulations of the two-dimensional fractional-time convection–diffusion–reaction equations10.1016/j.enganabound.2012.05.005 ↗
29. Localized method of fundamental solutions for two- and three-dimensional transient convection-diffusion-reaction equations10.1016/j.enganabound.2020.12.023 ↗
30. Solving convection-diffusion-reaction equation by adaptive finite volume element method10.1016/j.matcom.2011.06.002 ↗
31. Mkhatshwa, M.P., and Khumalo, M. (2022). Trivariate Spectral Collocation Approach for the Numerical Solution of Three-Dimensional Elliptic Partial Differential Equations. Mathematics, 10.10.3390/math10132260 ↗
32. Wei, J., Ge, Y., and Wang, Y. (2022). High-Order Compact Difference Method for Solving Two- and Three-Dimensional Unsteady Convection Diffusion Reaction Equations. Axioms, 11.10.3390/axioms11030111 ↗
33. Ullmann, S., Müller, C., and Lang, J. (2021). Stochastic Galerkin Reduced Basis Methods for Parametrized Linear Convection–Diffusion–Reaction Equations. Fluids, 6.10.3390/fluids6080263 ↗
34. A gradient recovery–based adaptive finite element method for convection-diffusion-reaction equations on surfaces10.1002/nme.6163 ↗
35. Fully multidimensional flux-corrected transport algorithms for fluids10.1016/0021-9991(79)90051-2 ↗
36. Analytical solution of the convection-diffusion-reaction-source (CDRS) equation using Green’s function technique10.1016/j.icheatmasstransfer.2021.105869 ↗
37. Baratta, I.A., Dean, J.P., Dokken, J.S., Habera, M., Hale, J.S., Richardson, C.N., Rognes, M.E., Scroggs, M.W., Sime, N., and Wells, G.N. (2023). DOLFINx: The Next Generation FEniCS Problem Solving Environment, Version v1, Zenodo.
38. OpenCFD Ltd. (2025). OpenFOAM: The Open Source CFD Toolbox, Version 11, OpenCFD Ltd.. Available online: https://www.openfoam.com/.
39. A new finite element formulation for computational fluid dynamics: VIII. The galerkin/least-squares method for advective-diffusive equations10.1016/0045-7825(89)90111-4 ↗
40. Huang, W., and Russell, R.D. (2011). Adaptive Moving Mesh Methods. Applied Mathematical Sciences, Springer.10.1007/978-1-4419-7916-2 ↗
41. Stabilized finite element approximation of transient incompressible flows using orthogonal subscales10.1016/S0045-7825(02)00337-7 ↗
42. Hughes, T.J.R., Scovazzi, G., and Franca, L.P. (2004). Multiscale and Stabilized Methods. Encyclopedia of Computational Mechanics, Wiley.10.1002/0470091355.ecm051 ↗