Skip to main content

A python package for simulating hydrogeological virtual realities

Project description

HyVR: Turning your geofantasy into reality!

The Hydrogeological Virtual Reality simulation package (HyVR) is a Python module that helps researchers and practitioners generate subsurface models with multiple scales of heterogeneity that are based on geological concepts. The simulation outputs can then be used to explore groundwater flow and solute transport behaviour. This is facilitated by HyVR outputs in common flow simulation packages’ input formats. As each site is unique, HyVR has been designed that users can take the code and extend it to suit their particular simulation needs.

The original motivation for HyVR was the lack of tools for modelling sedimentary deposits that include bedding structure model outputs (i.e., dip and azimuth). Such bedding parameters were required to approximate full hydraulic-conductivity tensors for groundwater flow modelling. HyVR is able to simulate these bedding parameters and generate spatially distributed parameter fields, including full hydraulic-conductivity tensors. More information about HyVR is available in the online technical documentation.

I hope you enjoy using HyVR much more than I enjoyed putting it together! I look forward to seeing what kind of funky fields you created in the course of your work.

HyVR can be attributed by citing the following journal article: Bennett, J. P., Haslauer, C. P., Ross, M., & Cirpka, O. A. (2018). An open, object-based framework for generating anisotropy in sedimentary subsurface models. Groundwater. DOI: 10.1111/gwat.12803. A preprint version of the article is available here.

Installing the HyVR package

Installing Python

Windows

If you are using Windows, we recommend installing the Anaconda distribution of Python 3. This distribution has the majority of dependencies that HyVR requires.

It is also a good idea to install the HyVR package into a virtual environment. Do this by opening a command prompt window and typing the following:

conda create --name hyvr_env

You need to then activate this environment:

conda activate hyvr_env

Linux

Depending on your preferences you can either use the Anaconda/Miniconda distribution of python, or the version of your package manager. If you choose the former, follow the same steps as for Windows.

If you choose the latter, you probably already have Python 3 installed. If not, you can install it using your package manager (e.g. apt on Ubuntu/Debian).

In any way we recommend using a virtual environment. Non-conda users can use for example virtualenvwrapper.

Installing HyVR

Once you have activated your virtual environment, you can install HyVR from PyPI using pip:

pip install hyvr

It might be necessary to install numpy separately before installing HyVR. The version on PyPI should always be up to date. If it’s not, you can also install HyVR from github:

git clone https://github.com/driftingtides/hyvr.git
pip install hyvr

To install from source you need a C/C++ compiler. On Windows you can get one by installing Build Tools for Visual Studio.

Installation from conda-forge will (hopefully) be coming soon.

Usage

To use HyVR you have to create a configuration file with your settings. You can then run HyVR the following way:

(hyvr_env) $ python -m hyvr my_configfile.ini

HyVR will then run and store all results in a subdirectory. If no configfile is given, it will run a test case instead:

(hyvr_env) $ python -m hyvr

If you want to use HyVR in a script, you can import it and use the run function:

import hyvr
hyvr.run('my_configfile.ini')

Examples can be found in the testcases directory of the github repository, the general setup and possible options of the config-file are described in the documentation. Currently only made.ini is ported to version 1.0.0.

Source

The most current version of HyVR will be available at this github repository; a version will also be available on the PyPI index which can be installed using pip.

Requirements

Python

HyVR was developed for use with Python 3.4 or greater. It may be possible to use with earlier versions of Python 3, however this has not been tested.

Dependencies

Development

HyVR has been developed by Jeremy Bennett (website) as part of his doctoral research at the University of Tübingen and by Samuel Scherrer as a student assistant.

You can contact the developer(s) of HyVR by email or via github.

Problems, Bugs, Unclear Documentation

If you have problems with HyVR have a look at the troubleshooting section. If this doesn’t help, don’t hesitate to contact us via email or at github.

If you find that the documentation is unclear, lacking, or wrong, please also contact us.

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

hyvr-1.0.2.0.tar.gz (983.9 kB view details)

Uploaded Source

Built Distributions

hyvr-1.0.2.0-cp37-cp37m-win_amd64.whl (704.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

hyvr-1.0.2-cp37-cp37m-win_amd64.whl (704.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

File details

Details for the file hyvr-1.0.2.0.tar.gz.

File metadata

  • Download URL: hyvr-1.0.2.0.tar.gz
  • Upload date:
  • Size: 983.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for hyvr-1.0.2.0.tar.gz
Algorithm Hash digest
SHA256 42a2d0fbab823d5500924dbeb74e605e6e9761330ac2338af5f28fb3353f17a0
MD5 a6ef9c32254d19c890451da2bce6cfb3
BLAKE2b-256 61d3eddf51f66c4d1c3c2ea25deb72b8917aebb63a27e0ae0552d18019700cc0

See more details on using hashes here.

File details

Details for the file hyvr-1.0.2.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: hyvr-1.0.2.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 704.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for hyvr-1.0.2.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 e1b15a6900023f03f1e1f1143ac80646db54a6d00c02d6cef6e974ee9f077afc
MD5 e5c1ee3dacb606c93e92dd87008e0883
BLAKE2b-256 cd42e4b51fc8c8df83e7022ae0bb8e1908e3760ce15aad41e4e518ac123ece29

See more details on using hashes here.

File details

Details for the file hyvr-1.0.2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: hyvr-1.0.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 704.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for hyvr-1.0.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 fecb33c3041a508f77528242a2e21256caa600230a1e7f624d433efb6f5194e9
MD5 6dd5684f81235fb5df8a7e90e23bf64f
BLAKE2b-256 451e81ffc0af47abe8588ce419be42a117ad4c0de74e50c58c45012b7d5de91d

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