Skip to main content

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

pywaiwera-1.5.1.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

pywaiwera-1.5.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file pywaiwera-1.5.1.tar.gz.

File metadata

  • Download URL: pywaiwera-1.5.1.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pywaiwera-1.5.1.tar.gz
Algorithm Hash digest
SHA256 a45f236c9a7db42d4b2e2cfabaeac695198a08636d35a7ed5ac144405e6ea95d
MD5 c6f5496444054a2d913e4b3374e557c0
BLAKE2b-256 931d0fc38456ddab0f1c5cb37d7bcb2fa052816768a735a3d8014c7eeb3227e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pywaiwera-1.5.1.tar.gz:

Publisher: pythonpublish.yml on waiwera/waiwera

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pywaiwera-1.5.1-py3-none-any.whl.

File metadata

  • Download URL: pywaiwera-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pywaiwera-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e922f46792d3e8ac707b4e6db8fc66c0ed9332093eb9e4210283bf2414670831
MD5 1fca9388ebbf686d6bdacb505802a187
BLAKE2b-256 f16eec2c692b18764d2220a8cf546e1898d5f2a1241898a40c75f1ee3216b06b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pywaiwera-1.5.1-py3-none-any.whl:

Publisher: pythonpublish.yml on waiwera/waiwera

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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