Skip to main content

GMSH wrapper, with integrated photonics focus

Project description

Meshwell


Docs Tests PiPy

Project is under active development, stay tuned for improved features, documentation, and releases!

Meshwell is a Python wrapper around GMSH that provides:

(1) a Prism class that simplifies, to the point of automating, the definition of solids from arbitrary (multi)polygons with "buffered" extrusions;

(2) a simple API where such Prisms and regular GMSH OCC objects are specified in an ordered dictionary of mesh priority, and whose keys are then used to label the mesh entities and their interfaces unambiguously;

For instance:

See the documentation for more information and examples. If you encounter a big, you can make an issue so we can improve the software over time. Contributions are also welcome, see open issues for current bugs and requested features.

Background

This code was originally developed to define meshes out of the GDSII descriptions of integrated photonic circuits. A particularity of such devices is rich 2.5D topology, featuring multiple layers of smooth curves in the plane and etching profiles vertically. Maxwell's equations (hence the name) are solved on these geometries to study how light propagates. It is also of critical interest to simulate how this is affected under other physical effects that can be resolved through finite-element or finite-volume analysis.

Related projects

  • gdsfactory: open-source plugin-rich layout software; meshwell is the backend to gplugins' gmsh module
  • femwell: open-source scikit-fem based finite-element simulations, with emphasis on photonics
  • DEVSIM: open-source finite-volume simulator, with emphasis on semiconductor TCAD

Other notable GMSH Python interfaces:

  • gmsh: the gmsh Python API itself has significantly improved over the years
  • pygmsh: manipulate Python objects instead of gmsh entity tags
  • objectgmsh: class wrappers around entities
  • gyptis: uses basic gmsh for photonic geometries

Acknowledgements

  • Simon Bilodeau (Princeton): maintainer
  • Helge Gehring (Google X): beta testing, use cases, bug fixes, improvements
  • Joaquin Matres Abril (Google X): code improvements
  • Niko Savola (Google): beta testing, use cases, bug fixes, improvements

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

meshwell-1.2.3.tar.gz (32.0 kB view details)

Uploaded Source

Built Distribution

meshwell-1.2.3-py3-none-any.whl (34.4 kB view details)

Uploaded Python 3

File details

Details for the file meshwell-1.2.3.tar.gz.

File metadata

  • Download URL: meshwell-1.2.3.tar.gz
  • Upload date:
  • Size: 32.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for meshwell-1.2.3.tar.gz
Algorithm Hash digest
SHA256 b1c6dd47c15c447ec885b037d1b194157fc973fd53e073c7d6e9add69e89b591
MD5 268ae6c9f457ce4472e9283b3681bfa2
BLAKE2b-256 a29a87b5cf3b9819b3c556a4a860b07898bed1460280d495ad20cef3ba309757

See more details on using hashes here.

File details

Details for the file meshwell-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: meshwell-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 34.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for meshwell-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bfa04bdbab4ac8557c10e774c77e3805900637ea74b0d76a823a4f7f2821bcbc
MD5 a47858e33be69be7f5f9c7e154bc337d
BLAKE2b-256 c921b02bdb4a73dfdf0465e565a4d4b7d43acc074932d2afb51a5e64430e0063

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