GMSH wrapper, with integrated photonics focus
Project description
Meshwell
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file meshwell-1.3.2.tar.gz
.
File metadata
- Download URL: meshwell-1.3.2.tar.gz
- Upload date:
- Size: 32.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c404a851a9e68ad9b53b876eda8fba3accfccfbf20e084e3c81bfef57eff9ae |
|
MD5 | 275f3606945b2c3216a7766e7cf900d7 |
|
BLAKE2b-256 | 5d39426f4f76660350d0cc7e4cc576b3540fbea3b09a6769f74c867d5e467e6a |
File details
Details for the file meshwell-1.3.2-py3-none-any.whl
.
File metadata
- Download URL: meshwell-1.3.2-py3-none-any.whl
- Upload date:
- Size: 35.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f637fd28f8d2abd29753aca83f3157c51a80a8504b079f855e0aac85e25fde1 |
|
MD5 | ce47b1c5993e241c5f54bebe5f7e03bf |
|
BLAKE2b-256 | db6b7f6c7721b69ae2372d5a009d5c1a30ca3e8cf42c07ab29bf9bae1a6e1ca5 |