Abstract

The CPqPy framework coupling COMSOL and PHREEQC based on Python was developed. This framework can achieve the simulation of diversified situations including multi-physics coupling and geochemical reactions of soil and groundwater. The multi-physics coupling models are calculated in COMSOL, whereas PHREEQC was applied to calculate the geochemical models through the Phreeqpy library in Python. Feasibility and accuracy of CPqPy were verified and applied to two cases, including a solute transport model considering equilibrium reaction and ion exchange as well as a reactive transport model of a variable saturation soil considering kinetic reaction. The results show a high degree of credibility of CPqPy. The framework has the advantages of strong portability, and it can be further used in conjunction with multiple Python calculation libraries, which greatly extends the application of the reactive transport model.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call