Molal solute transport: customized physics interface for iCP

Álvaro Sáinz 14/10/14

Figure4_AS

 In this post, Álvaro Sáinz, Marie Curie PhD student at Amphos 21, blogs about a COMSOL interface he has built to simulate conservative transport in porous media.

The interface was tailored to fulfill the needs of iCP, and it is now included as one of the capabilities in iCP v1.0.

Background

An interface coupling two standalone codes, the geochemical calculator PHREEQC (Parkhurst and Appelo, 2013) and the multiphysics software COMSOL (COMSOL, 2013), has been developed recently by Amphos 21. The interface, called iCP (Nardi et al., 2013), is able to simulate complex thermo-hydro-mechanical-chemical (THMC) models.

 

The reactive transport process is solved using the operator-splitting (OS) technique (Strang, 1968) with a sequential non-iterative approach (SNIA). In this method the conservative solute transport is computed in a first step with COMSOL (coupled with other physical processes if desired) while the geochemistry is solved in a second step with PHREEQC.

Figure 1. Sequential non-iterative approach scheme of iCP, with the Molal solute transport interface highlighted.

 

Despite COMSOL offers its own conservative solute transport interface, a new interface, “Molal solute transport”, have been developed for the specific needs of iCP. The interface is consistent with the units and the reactive transport formulation used in iCP. 

 

Customizing COMSOL

The interface was implemented using the Physic Builder toolkit of COMSOL. Within the Physic Builder environment, users can design customized interfaces through an interactive desktop and without the need of coding. The tailored interfaces can be exported as a plugin that can be added into the plugins folder of COMSOL and loaded every time the program starts. The interface will be, then, available as any other COMSOL module.

Figure 2. The Molal solute transport interface development in the Physics Builder environment.

 

In the finite element method the governing equations have to be defined in weak form. Three different ways are available to introduce the weak form in COMSOL. In this case the weak formulation was implemented to allow a variable number of unknowns.

 

The Molal solute transport interface is able to model transport by advection and diffusion-dispersion. The interface can be used for steady-state and time-dependent analysis and in all kind of geometries supported by COMSOL.

 

The interface

All features in the interface were tailored to meet the requirements of iCP. For instance, the term “Molal” comes from molality (mol/kg water), the default concentration units in PHREEQC; and the diffusion coefficient is constant for all the dependent variables, because in iCP formulation the transported elements are components and not “real” chemical species. 

 

Figure 3. Example of a model implementation with the Molal solute transport.  

 

Three default nodes are added to the Model Builder when using the interface: Conservative Transport (the governing equation), No Flow (the default boundary condition), and Initial Values. Many other boundary conditions can be added: Fixed Concentration, Outflow, Open Boundary and Mass rate.

 

The interface has been tested in various models, both reactive and conservative transport, performing similarly to other solute transport codes.

 

About the Author

Álvaro Sáinz is pursuing his PhD at Amphos 21. He focusses his research on multiphase flow and reactive transport modelling and its applications to subsurface gas storage and CCS. The PhD is part of the CO2-React project, a Marie Curie Initial Training Program.

 

References:

 

[1] Parkhurst, D.L. & Appelo, C.A.J., 2013. Description of input and examples for PHREEQC version 3—A computer program for speciation, batch-reaction, one-dimensional transport, and inverse geochemical calculations. U.S. Geological Survey Techniques and Methods, book 6, chap. A43, p.497 p. Available at: http://wwwbrr.cr.usgs.gov/projects/GWC_coupled/phreeqc/

 

[2] COMSOL, 2013. Comsol Multiphysics. Version 4.3a, Available at: www.comsol.com.

 

[3] Nardi, A., Idiart, A., Trinchero, P., de Vries, L. M. and Molinero, J. (2013). ‘Interface Comsol-PHREEQC (iCP), an efficient numerical framework for the solution of coupled multiphysics and geochemistry’, Computers & Geosciences, submitted. Available at: http://image-modelling.net/icp.

 

[4] Strang, G., 1968. On the construction and comparison of difference schemes. SIAM J Numer Anal, 5, pp.506-17.

 

Acknowledgements

This work was made possible by the funding from the European Union's through the CO2-ReactMarie Curie Initial Training Program and has been conducted at Amphos 21 in close collaboration with Albert Nardi


Related Categories:
Feed
<< Back to Blog
comments powered by Disqus
We use cookies to give you the best online experience. By using our website you agree to our use of cookies in accordance with our cookie policy. Tell me more!