Skip to content

A Python library for automating TOUGH2 simulations of subsurface fluid and heat flow

License

Notifications You must be signed in to change notification settings

plussss190/PyTOUGH

 
 

Repository files navigation

Unit tests

What is PyTOUGH?

PyTOUGH (Python TOUGH) is a Python library for simplifying, extending and automating the use of the TOUGH2 subsurface fluid and heat flow simulator. Using PyTOUGH, it is possible to automate the creation and editing of TOUGH2 model grids and data files, and the analysis and display of model simulation results, using Python scripts.

Installing PyTOUGH:

First, make sure you have Python and the Numerical Python library installed on your machine. (For some features you will need other libraries such as Scientific Python or Matplotlib- consult the user guide for details.)

Click the Clone or download button at the right of the PyTOUGH web page and then click Download ZIP , and save the .zip file to your computer. Unzip this to any directory on your computer. This will create a directory containing a file called setup.py. At the command line type python setup.py install.

(Alternatively, if you are confident using the Git version control system, you can clone the PyTOUGH repository instead of downloading a .zip file.)

More information:

For more detailed information on PyTOUGH, consult the user guide (PDF format, in the 'doc' directory of your PyTOUGH install) and the PyTOUGH wiki, which has links to published articles on PyTOUGH.

What's new in PyTOUGH?

The latest stable version is 1.5.6, which has:

  • bugfixes and support for GMSH 4.1 format in mulgrid from_gmsh() import
  • ability to export mulgrid geometries to Layermesh objects
  • support for tracers in t2data json() method, for exporting models to Waiwera
  • griddata function is now imported from SciPy rather than Matplotlib

Where's the user guide?

Since PyTOUGH version 1.3.6, the PyTOUGH user guide (PyTOUGH-guide.pdf) is now included in the 'doc' directory of your PyTOUGH install. Previously this was available separately from the 'Downloads' section on the website, but GitHub decided to phase out this 'Downloads' section.

About

A Python library for automating TOUGH2 simulations of subsurface fluid and heat flow

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%