Python package for the Waiwera simulator
Project description
Waiwera Python Package
PyWaiwera is the official Python package for use with the parallel open-source geothermal flow simulator, Waiwera.
Installation
The easiest way to install PyWaiwera is using pip
:
pip install pywaiwera
or if you do not have permissions to install system-wide Python packages, you can install it locally in your own user account:
pip install --user pywaiwera
During the installation it may warn you that executable scripts are being installed to a directory that is not listed in your system's PATH
environment variable. This means that you need to add this directory to your PATH
if you want to be able to run the supplied scripts from anywhere on your machine.
PyWaiwera can be upgraded to the latest version at any time by running:
pip install --upgrade pywaiwera
Running Waiwera using Docker
PyWaiwera provides a console executable script waiwera-dkr
for running Waiwera via Docker. It should be accessible directly as a console command.
To run a Waiwera model using Docker, please navigate to the input file's location and run the command:
waiwera-dkr filename.json
where filename.json
is the name of the model JSON input file.
Waiwera example problems to try can be obtained via the command:
waiwera-dkr --examples
which will download a directory of example Waiwera benchmark test problems.
For more detailed help on the options available with waiwera-dkr
, run:
waiwera-dkr --help
Using PyWaiwera in a script
It is also possible to use the PyWaiwera package from within Python scripts. For example, the following script imports PyWaiwera, creates a Docker environment and uses it to run Waiwera on the model input file input.json
:
import pywaiwera
print(pywaiwera.__version__)
env = pywaiwera.docker.DockerEnv()
env.run_waiwera('input.json')
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
Built Distribution
File details
Details for the file pywaiwera-1.5.0.tar.gz
.
File metadata
- Download URL: pywaiwera-1.5.0.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f73ca4acd537bbd1a8af0038364aaee34a47469eea114430bb0a5c4f86a8a503 |
|
MD5 | 8febc921be60702bf06ba13f5454efc0 |
|
BLAKE2b-256 | 633042d86be810b4bcf4b5f46396c3c8ae47c4dea06cfd4c58a806e27d411331 |
File details
Details for the file pywaiwera-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: pywaiwera-1.5.0-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84b9d091d220068b27742f018991d71c1c54b495c5fc4bee7e4d8c5983169a3c |
|
MD5 | 82d0883dea6c9e6966c634ede97fb537 |
|
BLAKE2b-256 | a0040aaa969971c2e0f9bc372b4b9bc7a3265d72fb50869e12d4fc0133305564 |