Skip to main content

Petrochemical modelling software ThorPT

Project description

Thor GIF

ThorPT - This is ThorPT

ThorPT is a modelling package for fluid coupled geolgical processes in the crust. Fluid production and migration in the crust is fundamental for the earth's geochemical cycling and ThorPT is specified for modelling this fluid production and fluid transfer. It includes the latest developments in petrogeochemical modelling and helps the user to test different scenarios:

  • Single rock modelling:

    1. Petrological purposes to test changes in mineral assemblages and coupled fluid production, e.g., while prograde metamorphism
    2. Mechanical testing of the rock based on the Mohr-Coulomb theory
    3. Quantification of the production of fluid masses
  • Multi rock modelling (Work in progress):

    1. Stacks of rock sequences involving fluid transfer
    2. Outcrop modelling
    3. *Contact zones and fluid-rock ratios

1. Getting started with the package

Information and requirements: There are currently two ways to use the package. Prerequisite in both cases is to get and install a working version of theriak-domino, because we need access to its executables. Check the software at https://github.com/Theriak-Domino/theriak-domino

The latest updates incorporate packages written in the programming language Julia. Therefore, it is now necessary to have a version of Julia (>=v1.9; https://julialang.org/) installed on your machine (see juypter installation notebook for more details).

Further, you need the ThorPT input files to pass informations to the software. This is a simple text file and can be found in the latest release of ThorPT jupyter.

1.1 Recommended for all users

Quick start: Get the jupyter working directory that includes all instructions and installs ThorPT with its dependencies. You can find it in the latest release of ThorPT jupyter.

1.2 Recommended to users familair with Python

Install the package manually into your python environment and develop your own script.

1.1 Use the package with the jupyter environment

Download the jupyter release that includes:

  • Jupyter notebook script to install ThorPT and all dependencies
  • Jupyter script to run ThorPT and containing functions
  • Datafiles directory with
    • initial file
    • examples for modelling

Before you start, make sure that you have followed all the steps and executed all the cells in the "install_ThorPT" Jupyter notebook!

Instructions: Creating the link to the software theriak

  • Declare the working directory of the theriak executable in order to do minimizations with ThorPT.

  • Open the file "init.txt" and edit the first line after "Theriak:".
    (You find the file in the released package you downloaded from github, it is located in the DataFiles folder)

  • Insert the file path of theriak. In the latest versions of TheriakDomino it is located in the "programs" folder.
    Windows example:"Theriak:C:\TheriakDominoWIN.2023.06.11\Programs"

1.2 Manual installation to your python environment

1.2.1 Install the package

ThorPT is public on the test PyPi servers and will be published on the offical servers soon. You can get the package by using the following command to import it to your python environment.

pip install thorpt

1.2.2 Import the package

from thorpt import start_ThorPT

1.2.3 Run the main module

The software will prompt you for two input files:

  1. init file that defines parameters for the modelling
  2. usage of a P-T path (pressure unit has to be defined in the init file, using "kbar" or "GPa")

start_ThorPT.run_main_routine()

1.2.4 Plotting module with ThorPT

Plotting is based on the ξόρκι module. This module comprises pre defined plots for phase assemblages, oxygen isotopes and several plots for visualising the fluid production and transfer. Options are possible to save the image files and generate a gif.

First steps: from thorpt.xorki import * Read variables from a hdf5 with the function

from thorpt.xorki import *
data = ThorPT_hdf5_reader()
data.open_ThorPT_hdf5()

Activate the plotting module - Predefined plots for evaluation:

compPlot = ThorPT_plots(data.filename, data.mainfolder, data.rock, data.compiledrock)

Default plotting functions are then:

compPlot.boxplot_to_GIF(rock_tag='NAME')

compPlot.pt_path_plot(rock_tag='NAME')

compPlot.permeability_plot(rock_tag='NAME')

compPlot.time_int_flux_plot(rock_tag='NAME')

compPlot.porosity_plot(rock_tag='NAME')

compPlot.release_fluid_volume_plot(rock_tag='NAME')

Funding and author

The development of this package was supported by the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme (grant agreement No 850530).

Author: Thorsten A. Markmann (thorsten.markmann@unibe.ch)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thorpt-1.0.2.tar.gz (5.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thorpt-1.0.2-py3-none-any.whl (917.1 kB view details)

Uploaded Python 3

File details

Details for the file thorpt-1.0.2.tar.gz.

File metadata

  • Download URL: thorpt-1.0.2.tar.gz
  • Upload date:
  • Size: 5.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for thorpt-1.0.2.tar.gz
Algorithm Hash digest
SHA256 16686357d921db4cf5037c5fdfbbb4c2922e3c3b8f4f06d127a4bd11e2c29575
MD5 b397ff39fcfb65108002b3fe8cff7c43
BLAKE2b-256 155b367b08879da4a5c5c2ea0c48bba647a93afde701c090af5a746c72d7a469

See more details on using hashes here.

File details

Details for the file thorpt-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: thorpt-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 917.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for thorpt-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 63a17984a580953b1abe0b804e950b5d36addd9ace0f747459f2698f5bfc3a32
MD5 8c6acaafc6a8b420e5f9cde3824b2f24
BLAKE2b-256 8df9a0bc8f97e30a026fbcc591d0ae52ab25ada9c0e662930bfc8740016ff780

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page