Skip to main content

Toolbox for batch and 1D reactive transport modeling in porous media aimed on easiness of use for the user without computational background

Project description

latest version GitHub issues GitHub forks GitHub stars GitHub license Twitter DOI

PorousMediaLab

The toolbox for batch and 1D reactive transport modelling in porous media aimed at the easiness of use for the user without computational background.

How to use

Have a look at "examples" folder.

Installation using pip

  • Install Python version 3.10 or higher (click);
  • To install the toolbox run pip install porousmedialab
  • In terminal run jupyter notebook;
  • You will see the folders in your home folder. You can navigate in any folder and create a new notebook with your model.

Development installation using Poetry

  • Install Python version 3.10 or higher (click);
  • Install Poetry (click);
  • Clone this repository: git clone https://github.com/biogeochemistry/PorousMediaLab
  • Navigate to the project folder: cd PorousMediaLab
  • Install dependencies: poetry install
  • Run tests: poetry run pytest
  • Activate the virtual environment: poetry shell

Manual installation

  • Install Python version 3.10 or higher (click);
  • Download and unzip or clone (using git) this repository (PorousMediaLab);
  • Open terminal and go to the PorousMediaLab folder using cd command. If you have problems with the terminal, check this guide;
  • Install dependencies: pip install numpy numexpr scipy matplotlib seaborn h5py scikit-learn
  • In terminal run command jupyter notebook;
  • You will see the folders of the PorousMediaLab project; you can go in "examples" folder and play with them.

Testing

To run the test suite:

pip install pytest pytest-cov
pytest tests/ -v

For coverage report:

pytest tests/ --cov=porousmedialab --cov-report=term-missing

Citation

Igor Markelov (2020). Modelling Biogeochemical Cycles Across Scales: From Whole-Lake Phosphorus Dynamics to Microbial Reaction Systems. UWSpace. http://hdl.handle.net/10012/15513

Contribution

I am looking for contributors specifically for incorporation of:

  • parallelization
  • sensitivity tests
  • unsaturated flow
  • thermodynamic calculations
  • your crazy ideas and needs

If you wish to contribute in this open source project, please, create pull request or conact me via email: is.markelov@gmail.com.

Acknowledgements

This project was funded by

MIT License

Copyright (c) 2019 Igor Markelov

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

porousmedialab-2.0.0.tar.gz (31.1 kB view details)

Uploaded Source

Built Distribution

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

porousmedialab-2.0.0-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

Details for the file porousmedialab-2.0.0.tar.gz.

File metadata

  • Download URL: porousmedialab-2.0.0.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for porousmedialab-2.0.0.tar.gz
Algorithm Hash digest
SHA256 ab17045a294364572e2eba6fc049e9957ce6c483eac338a9f5e57e02e2d21185
MD5 520d78cdbdbd0214b0683a51dc42622e
BLAKE2b-256 75db98d227047bb36b96d9c0b7343e4865acc5d0ab54dec0d443e54444727e5c

See more details on using hashes here.

File details

Details for the file porousmedialab-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: porousmedialab-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 34.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for porousmedialab-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4896c9fcfc432e10fcef9f19fc73d38dd37eec712fd6389507458cb0f9d34b79
MD5 f1364f96d761d36baf31b5129140ef40
BLAKE2b-256 d8c432db260b4e9ecd909e028e1e054d1a5a4532ae18d01420cd8e234717436a

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