Skip to main content

The watlab package is a Python interface for the C++-based hydraulical simulation sandbox. It is intended mainly for scholars.

Project description

Watlab is Python-API dedicated to hydraulics simulations. The Python-API allows you to drive the different solvers available in the toolbox. The following prerequisites are mandatory to use Watlab:

  1. A working version of Python
  2. Some basic knowledge on Python scripting
  3. A mesh made with GMSH (see also our website).

Get Watlab

Watlab is supported on Python 3.11 or later.

Watlab installation is complicated by its (weak) dependency to the libgdal package. On Linux and MacOS, installation is included in the resterio installer. On Windows, one needs to install GDAL first.

If necessary, you can download the installers here:

Install GDAL before you install watlab. On Windows hit :

python -m pip install GDAL-3.4.3-cp311-cp311-wind_amd64.whl
python -m pip install watlab

On Linux and Mac, hit:

sudo apt update
sudo apt install libglu1
sudo apt install libxcursor1
sudo apt install libxft2
sudo apt install libxinerama1
python -m pip install watlab

Run Watlab (for the impatients)

In order to test your Watlab instance, create a folder somewhere in your computer (say in ~/usr/myWatlab/) and unzip this archive.

Open the Conda prompt and activate your newly created watlab environment:

conda activate watlab

Then run the script with

python .\watlab-first-script.python

If you see the following pictures then it worked!

A first script output
A second script output

License

This source code is not yet placed under open source licence. Meanwhile, this code is the property of Prof. Sandra Soares-Frazão. GPL-3 open source copyright to come.

Please copy the following text in your LICENCE file while using Watlab as a subpackage of your work.

Watlab - Copyright (C) <1998 – 2024> <Université catholique de Louvain (UCLouvain), Belgique> 

This program (Watlab) is free software: you can redistribute it and/or modify it under the terms 
of the GNU General Public License as published by the Free Software Foundation, either version 3 
of the License, or (at your option) any later version.
   
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program (see COPYING file).  If not, 
see <http://www.gnu.org/licenses/>.

Development team

The development team is composed of the members of the GCE lab of Hydraulics, from UCLouvain. The contributors are:

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

watlab-0.4.1.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

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

watlab-0.4.1-py3-none-any.whl (3.3 MB view details)

Uploaded Python 3

File details

Details for the file watlab-0.4.1.tar.gz.

File metadata

  • Download URL: watlab-0.4.1.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for watlab-0.4.1.tar.gz
Algorithm Hash digest
SHA256 cf59dfb9bd4169a715ad54b19c744a5e0eb8c1b7b5f7509a51db21d4e3a834aa
MD5 9f855c4c7c12ff018f7a8b64363e8c87
BLAKE2b-256 c8dad2f7dffc638eddd29f3bef203b79f495339556a0a57f9173a77b2ab559e9

See more details on using hashes here.

File details

Details for the file watlab-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: watlab-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for watlab-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00624d89ae8e5c1b38cd840028eb4f573d453cae27a0eabc61da3b24b72ea61b
MD5 51702a753639103f649939e0d7f66eab
BLAKE2b-256 57c94d0cbf85aa176746196564d0623ceaa71b0b9a4088075bb94c2094d0fb0a

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