Skip to main content

SigmaEpsilon.Mesh - Data Structures, Computation and Visualization for Complex Polygonal Meshes in Python

CircleCI codecov Codacy Badge Documentation Status [License] [PyPI - Version] [Python] Code style: black Requirements Status

The sigmaepsilon.mesh library aims to provide the tools to build and analyse poligonal meshes with complex topologies. Meshes can be built like a dictionary, using arbitrarily nested layouts and then be translated to other formats including VTK and PyVista. For plotting, there is also support for K3D, Matplotlib and Plotly.

The data model is built around Awkward, which makes it possible to attach nested, variable-sized data to the points or the cells in a mesh, also providing interfaces to other popular libraries like Pandas or PyArrow. Implementations are fast as they rely on the vector math capabilities of NumPy, while other computationally sensitive calculations are JIT-compiled using Numba.

Here and there we also use NetworkX, SciPy, SymPy and scikit-learn.

Note Implementation of the performance critical parts of the library rely on the JIT-compilation capabilities of Numba. This means that the library performs well even for large scale problems, on the expense of a longer first call.

Highlights

  • Classes to handle points, pointclouds, reference frames and jagged topologies.
  • Array-like mesh composition with a Numba-jittable database model. Join or split meshes, attach numerical data and save to and load from disk.
  • Simplified and preconfigured plotting facility using PyVista, K3D, Plotly and Matplotlib.
  • Grid generation in 1, 2 and 3 dimensions for arbitrarily structured Lagrangian cells.
  • A mechanism for all sorts of geometrical and topological transformations.
  • Voxelization for tetrahedral and triangular meshes.
  • A customizable nodal distribution mechanism to effortlessly pass around data between points and cells.
  • Generation of Pseudo Peripheral Nodes, Rooted Level Structures and Adjancency Matrices for arbitrary polygonal meshes.
  • Symbolic shape function generation for arbitrarily structured Lagrangian cells in 1, 2 and 3 dimensions with an extendible interpolation and extrapolation mechanism.
  • Connections to popular third party libraries like networkx, pandas, vtk, PyVista and more.
  • The ability to read from a wide range of formats thanks to the combined power of vtk, PyVista and meshio.

Projects using sigmaepsilon.mesh

  • Many of the other packages in the SigmaEpsilon ecosystem.
  • PyAxisVM - The official Python package of AxisVM, a popular structural analysis and design software.

Documentation

The documentation is built with Sphinx using the PyData Sphinx Theme and hosted on ReadTheDocs. Check it out for the user guide, an ever growing set of examples, and API Reference.

Installation

For installation instructions, please refer to the documentation.

Changes and versioning

See the changelog, for the most notable changes between releases.

The project adheres to semantic versioning.

Instructions for Developers

If you are a developer or plannign to contribute, you find all related information in the Developer Guide.

How to contribute?

Contributions are currently expected in any the following ways:

  • finding bugs If you run into trouble when using the library and you think it is a bug, feel free to raise an issue.
  • feedback All kinds of ideas are welcome. For instance if you feel like something is still shady (after reading the user guide), we want to know. Be gentle though, the development of the library is financially not supported yet.
  • feature requests Tell us what you think is missing (with realistic expectations).
  • examples If you've done something with the library and you think that it would make for a good example, get in touch with the developers and we will happily inlude it in the documention.
  • sharing is caring If you like the library, share it with your friends or colleagues so they can like it too.

In all cases, read the contributing guidelines before you do anything.

Acknowledgements

Although sigmaepsilon.mesh works without VTK or PyVista being installed, it is highly influenced by these libraries and works best with them around. Also shout-out for the developers of NumPy, Scipy, Numba, Awkward, meshio and all the third-party libraries involved in the project. Whithout these libraries the concept of writing performant, yet elegant Python code would be much more difficult.

A lot of the packages mentioned in this document here and the introduction have a citable research paper. If you use them in your work through sigmaepsilon.mesh, take a moment to check out their documentations and cite their papers.

Also, funding of these libraries is partly based on the size of the community they are able to support. If what you are doing strongly relies on these libraries, don't forget to press the ⭐ button to show your support.

License

This package is licensed under the MIT license.

Third-party licenses

You find license information of all the dependencies in this file.

Metadata

Release files for sigmaepsilon.mesh 3.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sigmaepsilon.mesh 3.3.0
File Size Uploaded Provenance Actions
sigmaepsilon_mesh-3.3.0.tar.gz 18.1 MB Without provenance Details for sigmaepsilon_mesh-3.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sigmaepsilon.mesh 3.3.0
File Interpreter ABI Platform Actions
sigmaepsilon_mesh-3.3.0-py3-none-any.whl Python 3 none any Details for sigmaepsilon_mesh-3.3.0-py3-none-any.whl

Total release size: 18.3 MB

Release files / sigmaepsilon_mesh-3.3.0.tar.gz

Download URL sigmaepsilon_mesh-3.3.0.tar.gz
Size 18.1 MB
Tags Source
SHA-256 checksum
How to use checksums
b399a29e19f61fed18126101cc5730dd139118ebe69407cd1aeae43190a258e3
BLAKE2b-256 checksum
How to use checksums
09c1ca3a71c370f44ecb3c2eb48c4e0b2e5b49bd79d69e52b1354f495327f8cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / sigmaepsilon_mesh-3.3.0-py3-none-any.whl

Download URL sigmaepsilon_mesh-3.3.0-py3-none-any.whl
Size 180.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b242f580f59933aef643a1ed96923a009774125902114c661f67d5b6ba2601e
BLAKE2b-256 checksum
How to use checksums
3543796bfe9945614e35b055561880d96d6227db48b0bd5235a25d6eac1ec8aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for sigmaepsilon.mesh 3.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page