Skip to main content

Reaction-Transport Modeling in Porous Media

Project description

Overview

REMAP (Chernyavsky & Wortmann, 2007, <10.1029/2006GC001442>) provides an easy to use interface for 1-dimensional reaction-transport modeling in porous media, and provides explicit support for kinetic stable isotope fractionation calculations.

The original program was written as matlab program. Remappy provides a python wrapper to the original code which can be run via oct2py.

News:

  • April 5th: v 0.0.0.4, installation path is now updated during installation, non-python files are now included in installation script. Updated installation instructions
  • March 30th: Initial release

Usage

  • remap.py: This behaves similar to the original remap but provides extended command-line parsing options, run remap.py --help for details

  • you can also import the library and use it inside of your own python code

    import remap import pathlib as pl import pandas as pd

    fn: str = "hg.rmp" # remap config file cwd: pl.Path = pl.Path.cwd() # get the current working directory fqfn: pl.Path = pl.Path(f"{cwd}/{fn}") # fully qualified file name

    if not fqfn.exists(): # check if file exist raise FileNotFoundError(f"Cannot find file {fn}") df: pd.DataFrame = remap.run_remap(str(fname))

  • or use the oct2py interface directly

    from oct2py import octave

    octave.addpath("/path/to/remap.m")

    fn = "hg.rmp" # name of remap configuration file

    call remap

    [c, conc, r, v, par] = octave.start_remap(fn, nout=5)

Installation

  • pip install remappy will install all necessary files and dependencies
  • you can now import remap into your python code
  • to run remap as standalone application, you need to follow your os specific instructions (see e.g., https://datatofish.com/executable-pyinstaller/). On linux, it is sufficient to link remap.py to a directory which is in your path (often /usr/local/bin/) and set is a executable, otherwise, see above.

Documentation

See the docs folder for the original REMAP documentation.

Todo

  • port more matlab code to python
  • provide more examples
  • do more testing

License

remappy: reaction-transport modeling Copyright (C), 2022 Ulrich G. Wortmann

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

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

remappy-0.0.0.4.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

remappy-0.0.0.4-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file remappy-0.0.0.4.tar.gz.

File metadata

  • Download URL: remappy-0.0.0.4.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 pkginfo/1.8.2 readme-renderer/27.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.3 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for remappy-0.0.0.4.tar.gz
Algorithm Hash digest
SHA256 2096a476cb8bb051f9148f4bc59fd67557c265e4c650118614c24d5afa3935cf
MD5 99eb28119691a0c860a7b4479f72c77e
BLAKE2b-256 d6ca7f70269658dc31681278d199d7bec5f248909be20ebf74be3aadf2ab1abf

See more details on using hashes here.

File details

Details for the file remappy-0.0.0.4-py3-none-any.whl.

File metadata

  • Download URL: remappy-0.0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 26.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 pkginfo/1.8.2 readme-renderer/27.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.3 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for remappy-0.0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8dcd3b827fd05f909e7203a35b1260d01412b9c4a7760cadf0bce2275238ca94
MD5 d597034fd4acd73d8e007c70fcea4e7f
BLAKE2b-256 18a82af8714eca2a589b33499dcf39f8c5937561d2efbbd6b22825dba178bebc

See more details on using hashes here.

Supported by

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