Skip to main content

Ocean mesh generation

Project description

Seamsh is a Python library wrapping gmsh, gdal and scipy to simplify the generation of unstructured meshes. While primarily developed for coastal ocean simulations, it can be used in other GIS contexts.

Main Features :

  • Import ESRI shapefiles to define tagged domain boundaries, interior lines and interior points.

  • Define arbitrary mesh elements size fields based on distances from lines or raster files.

  • Create a low-resolution valid topology from high-resolution non-conformal (i.e. intersecting) data.

Seamesh is distributed under the GPL. See the project gitlab page for the source code and bug reports. The documentation contains examples, Python API reference and installation instructions. Binary packages for 64 bits linux, windows and OSX are available on pypi.

Changes

seamsh 0.4.14

  • fig bug with newer versions of numpy (integer casted to int32 instead of int64)

seamsh 0.4.13

  • fix bug for 2d coordinates reprojection introduced in 0.4.12

seamsh 0.4.12

  • Add stereographic projection example

  • Distance field can use another projection than the projection of the domain

  • Allows for cartesian projection (i.e. no projection)

seamsh 0.4.11

  • gmsh.merge_meshes : topological reconnection instead of coordinate based

seamsh 0.4.10

  • add gmsh.merge_meshes

  • add transifinite curves (physical lines with prescribed number of elements)

  • avoid gmsh initalization error message

seamsh 0.4.9

  • add transifinite curves (physical lines with prescribed number of elements)

seamsh 0.4.8

  • numpy 1.24 compatibility (np.bool -> bool)

seamsh 0.4.7

  • write WKT projection as gmsh model attribute

  • default msh output version set to 4.1

seamsh 0.4.6

  • License files in source package

seamsh 0.4.5

  • Inpoly field (requires shapely)

seamsh 0.4.4

  • fix unrefine when no identical points

  • ugrid conversion (requires xarray)

  • fix domain physical name

seamsh 0.4.3

  • add output_srs parameter to gmsh.mesh

  • add gmsh.reproject function

seamsh 0.4.2

  • do not crash on features without geometry in shapefiles

seamsh 0.4.1

  • do not call gmsh.initialize() if already initialized

  • use a temporary gmsh model for meshing

seamsh 0.4.0

  • precompute and smooth mesh size field on a quadtree-like mesh

  • build library directly from setup.py, no cmake anymore

  • discretize curves in their own projection, not in the model projection

  • handle intersection of more than 2 interior curves on the same point

  • source distribution on pypi

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

seamsh-0.4.14.tar.gz (67.2 kB view details)

Uploaded Source

Built Distributions

seamsh-0.4.14-py3-none-win_amd64.whl (484.2 kB view details)

Uploaded Python 3 Windows x86-64

seamsh-0.4.14-py3-none-manylinux1_x86_64.whl (401.1 kB view details)

Uploaded Python 3

seamsh-0.4.14-py3-none-macosx_10_9_x86_64.whl (95.1 kB view details)

Uploaded Python 3 macOS 10.9+ x86-64

File details

Details for the file seamsh-0.4.14.tar.gz.

File metadata

  • Download URL: seamsh-0.4.14.tar.gz
  • Upload date:
  • Size: 67.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2

File hashes

Hashes for seamsh-0.4.14.tar.gz
Algorithm Hash digest
SHA256 aff42d431e2f9892f5916081e4e8a0524d9c4a066918cc8f43d5f36918836ed6
MD5 f6fce6f21a586e7697f75ba7b7d06f07
BLAKE2b-256 b756b8cddce4610a1a3fc5341ad4d9baf01f77eb8778887a64a9f337426ff783

See more details on using hashes here.

File details

Details for the file seamsh-0.4.14-py3-none-win_amd64.whl.

File metadata

  • Download URL: seamsh-0.4.14-py3-none-win_amd64.whl
  • Upload date:
  • Size: 484.2 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2

File hashes

Hashes for seamsh-0.4.14-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 951ed8953343d19de9c5925fc24be937ae4d29a28cb2214bff27802bfae5e51f
MD5 5e0e69f8a5426bcc6bedd92088f4e06a
BLAKE2b-256 962fdfaadb9e663d399ac3c2320f766bcc9a21e7a8662d037144f03ac47faf2d

See more details on using hashes here.

File details

Details for the file seamsh-0.4.14-py3-none-manylinux1_x86_64.whl.

File metadata

  • Download URL: seamsh-0.4.14-py3-none-manylinux1_x86_64.whl
  • Upload date:
  • Size: 401.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2

File hashes

Hashes for seamsh-0.4.14-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 92c10f40d45c28fdeb0602b202db39189de6f0288fd3f7c2c9f3632784d7916a
MD5 8a1e49a1ccbd41c1c01b4ab3d931a3b3
BLAKE2b-256 5630c35ddfc344a23ca7ab37de7e51fc0658f8b9d4b47942a0baa5e65b8b0527

See more details on using hashes here.

File details

Details for the file seamsh-0.4.14-py3-none-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: seamsh-0.4.14-py3-none-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 95.1 kB
  • Tags: Python 3, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2

File hashes

Hashes for seamsh-0.4.14-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 67c6043606843f6f5ada0e788e1051d2ee5bf49dc3f5ef54775d763cb61d68e7
MD5 3fff39f066079e85ea813e221bcab6eb
BLAKE2b-256 4b09ae16e45e8268a1922bc08e88cdd98ac4f227a2be0c539d6472958d59f0a8

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