Abstract:
PyTOUGH, a Python scripting library for automating TOUGH2 simulations, was publicly released as free open-source software in 2011. Since then, it has been used in a wide variety of TOUGH2 modelling applications, particularly for complex simulations which would be difficult or impossible using traditional manual or graphical workflows. It has also been incorporated into at least two graphical interfaces for TOUGH2. This paper describes the considerable development PyTOUGH has undergone since its initial release. Notable new features for grid handling include generators for radial and MINC TOUGH2 grids, grid embedding and reverse engineering of rectangular grid geometry from TOUGH2 input. Support has been added for tilted geometries, auxiliary TOUGH2 mesh and time history files, and output from TOUGH+ and TOUGHREACT. New graphical features include plotting block-centred flow vectors, well tracks and rock types. In addition, PyTOUGH now offers easier installation, an enhanced user guide, a more permissive (LGPL) license and improved speed.