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

  • adjust epsilons to domain size

seamsh 0.4.17

  • fix

seamsh 0.4.16

  • np.frombuffer for newer numpy versions

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

Uploaded Source

Built Distributions

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

seamsh-0.4.18-py3-none-win_amd64.whl (484.4 kB view details)

Uploaded Python 3Windows x86-64

seamsh-0.4.18-py3-none-manylinux1_x86_64.whl (401.3 kB view details)

Uploaded Python 3

seamsh-0.4.18-py3-none-macosx_10_9_x86_64.whl (95.3 kB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: seamsh-0.4.18.tar.gz
  • Upload date:
  • Size: 67.5 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.18.tar.gz
Algorithm Hash digest
SHA256 31aa024dcefe9cb960e531a2c8034992a546671a8a8245bc272eda7d528ab302
MD5 3a49e88767434ac474b14cef714652eb
BLAKE2b-256 13ca190e7ac8bc9f22654a34792eb4418fdbc74fdd73ae1aa971794fae9471d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: seamsh-0.4.18-py3-none-win_amd64.whl
  • Upload date:
  • Size: 484.4 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.18-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 cc366a1c177e5b9f844ce59faf0defd71c1007a8ab41c6312b555a21d2ffb651
MD5 3be62d1066175399b93af215822d67d6
BLAKE2b-256 b884cd3526b306ba2057344f36212abd80eab2b1df3fe815d73c79ec65b364db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: seamsh-0.4.18-py3-none-manylinux1_x86_64.whl
  • Upload date:
  • Size: 401.3 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.18-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2564540f56cfb47699557da0ad1ddd6ff1a931007691d1091c0dea544d4bc3c2
MD5 5d875b39d056bcff963c64c3dc660d9d
BLAKE2b-256 b5b9e3c5d8fe9d8fb1bc8220cff1a72b987a8ad3f0242679d19ac4a63c7fa8a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: seamsh-0.4.18-py3-none-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 95.3 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.18-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d31c5d1081c35cd87197022d320fae6152a35612cc1dd602fa2ebde8b1808a42
MD5 5e58b984bba3104c52ce27eb8ff2b16b
BLAKE2b-256 b83ce8b71478a0a83a5e3f928a49fc2a044b3d6bb18de08c2e172126f714b133

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