Python code to simulate solute transport in porous media coupled with geochemical reactions
Project description
PyCORE PyCORE is a Python package for simulating groundwater flow and reactive transport in porous media. It provides a flexible and extensible framework for modeling hydraulic head, solute transport, chemical reactions, ion exchange, and mineral reactions in 1D and 2D domains.
Features Simulation of groundwater flow (confined flow, Darcy velocity, hydraulic head) Reactive transport (solute transport, chemical reactions, ion exchange, mineral reactions) Flexible input: Accepts data as Python dictionaries or DataFrames Customizable chemical solver: Users can inject their own chemical equilibrium solver Output and plotting: Built-in methods for exporting and visualizing results Installation Usage Main Class: Simulation Initialization tran_input: Transport input data (dict) chem_input: Chemistry input data (dict) database_path: Path to the chemical database (str) pecl, cour: Optional lists for Peclet and Courant numbers chemical_equilibrium_callback: Optional user-defined function for chemical equilibrium Key Methods run(): Run the main simulation loop plot_h_x(time, dimension): Plot hydraulic head distribution plot_u_x(time, dimension, components): Plot concentration of selected components write_hxt(file_name, dimension): Write hydraulic head data to file write_totC(file_name, dimension): Write total primary species concentrations to file set_chemical_equilibrium_callback(callback_fn): Set a custom chemical equilibrium solver
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyretras-0.1.0.tar.gz.
File metadata
- Download URL: pyretras-0.1.0.tar.gz
- Upload date:
- Size: 59.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09c5f4da2c4e62965eb6824f761827834515385c12647f01b3165d3ed3170a83
|
|
| MD5 |
eb59e9fcfbdd5bf4259c74830912b133
|
|
| BLAKE2b-256 |
ddcbcb97d4b15b6f75db70b29d2f079076f5e7067c21c6d0bfb5b75c95377513
|
File details
Details for the file pyretras-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyretras-0.1.0-py3-none-any.whl
- Upload date:
- Size: 63.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2dcdee67064a7a01074ecccf382eab0e4a4f7d016c05b144c90bb0905c1e7cf
|
|
| MD5 |
0a4bcbc1ed5dd3787cd98cf91f56c718
|
|
| BLAKE2b-256 |
abb23130ebe7ffca47d72b77a5a9a24aff022e694cd77f728843ab115cc39b7e
|