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.15

  • set random seed for reproducibility

  • set layer name to “mesh” when exporting to gpkg/shapefile instead of the file name to avoid incompatible special characters

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.15.tar.gz (67.4 kB view details)

Uploaded Source

Built Distributions

seamsh-0.4.15-py3-none-win_amd64.whl (484.3 kB view details)

Uploaded Python 3 Windows x86-64

seamsh-0.4.15-py3-none-manylinux1_x86_64.whl (401.2 kB view details)

Uploaded Python 3

seamsh-0.4.15-py3-none-macosx_10_9_x86_64.whl (95.2 kB view details)

Uploaded Python 3 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: seamsh-0.4.15.tar.gz
  • Upload date:
  • Size: 67.4 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.15.tar.gz
Algorithm Hash digest
SHA256 8332b5ff33d1cd8bb2c50ebba299d977e1420277e098b968e26ce3072f9b097b
MD5 e0dd54625a57e125f91d2666a0118cb0
BLAKE2b-256 188642d4f4c20deda60cb13375f7f19ef5742e849f33763a982997162fa5f37a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: seamsh-0.4.15-py3-none-win_amd64.whl
  • Upload date:
  • Size: 484.3 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.15-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 13a3fe6f9afe52f0e6f2ce14e9b0081eab00cbf00aaeeee81fd4f01d30119486
MD5 88826258a6a4366f93f4e09223b81eeb
BLAKE2b-256 95ee9b96aa0db8fa1fc609c63c1c0414433e801fbb19e2f58feb6380007b6e0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: seamsh-0.4.15-py3-none-manylinux1_x86_64.whl
  • Upload date:
  • Size: 401.2 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.15-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 93eeb5b762883bee00b5d85ff999dec7242de6672983de4389551c1e7d3ae4b6
MD5 64a9a0ddd4211d5480f8146e6bb64c51
BLAKE2b-256 508ee0430b784682f435425c8db5e76de09b6ae2ffc0c61ed0a2ca97ed206228

See more details on using hashes here.

File details

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

File metadata

  • Download URL: seamsh-0.4.15-py3-none-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 95.2 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.15-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e27564ef3b70e3e460ee56186ac7cee184519306f0e7ed07d253b99d4954cc48
MD5 7a56f27dadb785b1f17d2a3b27bf1cd7
BLAKE2b-256 2783d66dc751eb516e1d631566d0b31e33e3c45a1cc34936934cc22b6039a19c

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