Skip to main content

`meshkernel` is a library which can be used to manipulate meshes.

Project description

MeshKernelPy

Quality Gate Status PyPI version

MeshKernelPy is a library for creating and editing meshes. It supports 1D and 2D unstructured meshes. Support for curvilinear meshes is planned. The underlying C++ library MeshKernel can be found here.

Installation

Windows

The library can be installed from PyPI by executing

pip install meshkernel

Linux

Currently, we only offer wheels specific to Deltares' CentOS machines. We plan to release a manylinux wheel at PyPI in the future.

Examples

Creating a triangular mesh inside a polygon

In this example a mesh is created by discretizing the polygon perimeter with the desired edge length.

Mesh orthogonalization

Finite volume staggered flow solvers require the mesh to be as much orthogonal as possible. MeshKernel provides an algorithm to adapt the mesh and achieve a good balance between mesh orthogonality and smoothness.

Mesh refinement

A mesh can be refined in areas based on samples or polygon selections.

License

MeshKernelPy uses the MIT license. However, the wheels on PyPI bundle the LGPL licensed MeshKernel. Please make sure that this fits your needs before depending on it.

Contributing

In order to install MeshKernelPy locally, please execute the following line inside your virtual environment

pip install -e .[tests, lint, docs]

Also make sure that your editor is configured to format the code with black and isort. When modifying Jupyter notebooks, the jupyterlab-code-formatter can be used.

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

meshkernel-1.0.0.tar.gz (959.6 kB view details)

Uploaded Source

Built Distributions

meshkernel-1.0.0-py3-none-win_amd64.whl (339.1 kB view details)

Uploaded Python 3 Windows x86-64

meshkernel-1.0.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (744.5 kB view details)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

meshkernel-1.0.0-py3-none-macosx_10_9_x86_64.whl (971.7 kB view details)

Uploaded Python 3 macOS 10.9+ x86-64

File details

Details for the file meshkernel-1.0.0.tar.gz.

File metadata

  • Download URL: meshkernel-1.0.0.tar.gz
  • Upload date:
  • Size: 959.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.5.0.1 requests/2.26.0 setuptools/49.6.0.post20201009 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for meshkernel-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9f927d1ef1ed6e6325d8ded9ec12af1fb494f4206fac67dd5adfee18a8837605
MD5 fc9269060f448c54df6ab024ef141197
BLAKE2b-256 3b49295fe0c06db10a7678128995c586520cab39a6910771a24a38edcf9e9f25

See more details on using hashes here.

File details

Details for the file meshkernel-1.0.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: meshkernel-1.0.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 339.1 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/0.23 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for meshkernel-1.0.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 31e686646ef019279dec11a6e2c5b3f8eaba7a55242acb2dbc65d9d3d37afd39
MD5 e5efe0065005507d76472f4a8dd569c9
BLAKE2b-256 c9b1f6c8b4a74f84f22b62314981db3c1a9aef1b9e126280329b01afd2541557

See more details on using hashes here.

File details

Details for the file meshkernel-1.0.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for meshkernel-1.0.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 adb87f29a29ab804bcd5417f30e91570a6169f1293e6a30c92abaf58adde5e43
MD5 7742f3f3d34c80f65dc80d27cb894a46
BLAKE2b-256 ab60c14f774383b852b60fc29f873e349d89dab51d5abfd2f8ff52f39f404f44

See more details on using hashes here.

File details

Details for the file meshkernel-1.0.0-py3-none-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: meshkernel-1.0.0-py3-none-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 971.7 kB
  • Tags: Python 3, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.7.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.2

File hashes

Hashes for meshkernel-1.0.0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1d7c0638df0a2f908c3a29939fabcf832557af5c3c9cea73c1f496b3ea7aea8c
MD5 fa0d7642b2f03d524df9a47ff62d7877
BLAKE2b-256 e1b4422869539ed0552f9f040cc8cccc95eb2aad8ada8001be210c34675b0145

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