Author: Joel W. Ager ([email protected])
Different approaches to solve the reaction-diffusion equations for the CO2-bicarbonate-carbonate-hydroxide system in 1D and in 2D using Python packages.
After Gattrell and co-workers:
Gupta, N.; Gattrell, M.; MacDougall, B. Calculation for the Cathode Surface Concentrations in the Electrochemical Reduction of CO2 in KHCO3 Solutions. J. Appl. Electrochem. 2006, 36, 161–172.
1D CO2 reaction diffusion-SciPy.ipynb
solves the 1D, time-independent problem using usingsolve_bvp
from thescipy
package.1D CO2 reaction diffusion FEniCS.ipynb
solves the 1D, time-dependent problem using using Newton's method as implemented in the non-linear solver in theFEniCS
finite element package.2D CO2 reaction diffusion FEniCS.ipynb
solves the 2D, time-independent and time-dependent problems usingFEniCS
. The solution is on a simple rectangular domain but it is possible to generate more complex geometries withGMSH
and import the mesh via themeshio
package.