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.4.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.4-py3-none-any.whl (926.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thorpt-1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 10089d96121d648dd14b1947b07501a57973a6011f6cdeaf442b1f748eb314a9
MD5 23b9c17d55ba48085c88e721a10d53b9
BLAKE2b-256 916999731e1d50364b255c8d0be1ce8abf68af81571139ba5a781adbb87c7676

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thorpt-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 926.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3e2b9132cd27c2582fcdf00447c3a2d82079d72d215c40a10855528568f899a5
MD5 e1d9e23ef00eb131f0c64f29d0b37c56
BLAKE2b-256 5c7d5cba8b2a93f49aea2b9cb39597ef3b48b67ec578bf4221fe5c0665370bbe

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