Python scripting libraries for subsurface fluid and heat flow simulations with TOUGH2 and SHEMAT

Numerical simulations of subsurface fluid and heat flow are commonly controlled manually via input files or from graphical user interfaces (GUIs). Manual editing of input files is often tedious and error-prone, while GUIs typically limit the full capability of the simulator. Neither approach lends i...

Full description

Saved in:
Bibliographic Details
Published inComputers & geosciences Vol. 43; pp. 197 - 206
Main Authors Florian Wellmann, J., Croucher, Adrian, Regenauer-Lieb, Klaus
Format Journal Article
LanguageEnglish
Published Elsevier Ltd 01.06.2012
Subjects
Online AccessGet full text
ISSN0098-3004
1873-7803
DOI10.1016/j.cageo.2011.10.011

Cover

More Information
Summary:Numerical simulations of subsurface fluid and heat flow are commonly controlled manually via input files or from graphical user interfaces (GUIs). Manual editing of input files is often tedious and error-prone, while GUIs typically limit the full capability of the simulator. Neither approach lends itself to automation, which is desirable for more complex simulations. We propose an alternative approach based on the use of scripting. To this end we have developed Python libraries for scripting subsurface simulations using the SHEMAT and TOUGH2 simulators. For many problems the entire modeling process including grid generation, model setup, execution, post-processing and analysis of results can be carried out from a single Python script. Through example problems we demonstrate some of the potential power of the scripting approach, which does not only make model setup simpler and less error-prone, but also facilitates more complex simulations involving, for example, multiple model runs with varying parameters (e.g. permeabilities, heat inputs, and the level of grid refinement). It is also possible to apply the developed methods for extending the functionality of graphical user interfaces. Basing our approach on the Python language makes it simple to take advantage of other libraries available for scientific computation, with sophisticated analysis of results often a matter of a single function call. We envisage many other possible applications of the approach, including linking with geological modeling software, running stochastic ensembles of models and hybrid modeling using multiple interacting simulators. ► We describe a novel scripting approach to fluid and heat flow simulations. ► Python modules were defined for TOUGH2 and SHEMAT. ► They complement and extend the functionality of graphical user interfaces. ► Mesh studies and simple inverse problems are possible with some lines of code. ► New research questions can be addressed with exceptional flexibility.
Bibliography:http://dx.doi.org/10.1016/j.cageo.2011.10.011
ObjectType-Article-2
SourceType-Scholarly Journals-1
ObjectType-Feature-1
content type line 23
ObjectType-Article-1
ObjectType-Feature-2
ISSN:0098-3004
1873-7803
DOI:10.1016/j.cageo.2011.10.011