sigmaepsilon.mesh


Namesigmaepsilon.mesh JSON
Version 2.3.3 PyPI version JSON
download
home_pagehttps://github.com/sigma-epsilon/sigmaepsilon.mesh
SummaryA Python package to build, manipulate and analyze polygonal meshes.
upload_time2024-03-25 19:41:38
maintainerBence Balogh
docs_urlNone
authorBence Balogh
requires_python<3.12,>=3.10
licenseMIT
keywords engineering mathematics optimization vector tensor vector algebra tensor algebra symbolic mathematics nonlinear optimization
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # **SigmaEpsilon.Mesh** - Data Structures, Computation and Visualization for Complex Polygonal Meshes in Python

![ ](logo.png)

[![CircleCI](https://dl.circleci.com/status-badge/img/gh/sigma-epsilon/sigmaepsilon.mesh/tree/main.svg?style=shield)](https://dl.circleci.com/status-badge/redirect/gh/sigma-epsilon/sigmaepsilon.mesh/tree/main)
[![codecov](https://codecov.io/gh/sigma-epsilon/sigmaepsilon.mesh/graph/badge.svg?token=7JKJ3HHSX3)](https://codecov.io/gh/sigma-epsilon/sigmaepsilon.mesh)
[![Documentation Status](https://readthedocs.org/projects/sigmaepsilonmesh/badge/?version=latest)](https://sigmaepsilonmesh.readthedocs.io/en/latest/?badge=latest)
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![PyPI](https://badge.fury.io/py/sigmaepsilon.mesh.svg)](https://pypi.org/project/sigmaepsilon.mesh)
[![Python 3.7‒3.10](https://img.shields.io/badge/python-3.7%E2%80%923.10-blue)](https://www.python.org)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Requirements Status](https://dependency-dash.repo-helper.uk/github/sigma-epsilon/sigmaepsilon.mesh/badge.svg)](https://dependency-dash.repo-helper.uk/github/sigma-epsilon/sigmaepsilon.mesh)

The [sigmaepsilon.mesh](https://sigmaepsilon.mesh.readthedocs.io/en/latest/) library aims to provide the tools to build and analyse poligonal meshes with complex topologies. Meshes can be built like a dictionary, using arbitarily nested layouts and then be translated to other formats including [VTK](https://vtk.org/) and [PyVista](https://docs.pyvista.org/). For plotting, there is also support for [K3D](http://k3d-jupyter.org/), [Matplotlib](https://matplotlib.org/) and [Plotly](https://plotly.com/python/).

The data model is built around [Awkward](https://awkward-array.org/doc/main/), 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](https://vtk.org/) or [PyArrow](https://arrow.apache.org/docs/python/index.html). Implementations are fast as they rely on the vector math capabilities of [NumPy](https://numpy.org/doc/stable/index.html), while other computationally sensitive calculations are JIT-compiled using [Numba](https://numba.pydata.org/).

Here and there we also use [NetworkX](https://networkx.org/documentation/stable/index.html#), [SciPy](https://scipy.org/), [SymPy](https://www.sympy.org/en/index.html) and [scikit-learn](https://scikit-learn.org/stable/).

> **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.
* Grid generation in 1, 2 and 3 dimensions for arbitrarily structured Lagrangian cells.
* A mechanism for all sorts of geometrical and topological transformations.
* 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

* [SigmaEpsilon.Solid](https://github.com/sigma-epsilon/sigmaepsilon.solid) - A Python library for computational solid mechanics.
* [PyAxisVM](https://github.com/AxisVM/pyaxisvm) - The official Python package of [AxisVM](https://axisvm.eu/), a popular structural analysis and design software.

## Documentation

The [documentation](https://sigmaepsilonmesh.readthedocs.io/en/latest/) is built with [Sphinx](https://www.sphinx-doc.org/en/master/) using the [PyData Sphinx Theme](https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html) and hosted on [ReadTheDocs](https://readthedocs.org/). Check it out for the user guide, an ever growing set of examples, and API Reference.

## Installation

sigmaepsilon.mesh can be installed from PyPI using `pip` on Python >= 3.7:

```console
>>> pip install sigmaepsilon.mesh
```

or chechkout with the following command using GitHub CLI

```console
gh repo clone sigma-epsilon/sigmaepsilon.mesh
```

and install from source by typing

```console
>>> pip install .
```

If you want to run the tests, you can install the package along with the necessary optional dependencies like this

```console
>>> pip install ".[test]"
```

### Development mode

If you are a developer and want to install the library in development mode, the suggested way is by using this command:

```console
>>> pip install "-e .[test, dev]"
```

### Checking your installation

You should be able to import sigmaepsilon.mesh from the Python prompt:

```console
$ python
Python 3.8.10 (tags/v3.8.10:3d8993a, May  3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sigmaepsilon.mesh
>>> sigmaepsilon.mesh.__version__
'2.2.0'
```

## Testing and coverage

The following command runs all tests and creates a html report in a folder named `htmlcov` (the settings are governed by the `.coveragerc` file):

```console
python -m pytest --cov-report html --cov-config=.coveragerc --cov sigmaepsilon.mesh
```

Open `htmlcov/index.html` to see the results.

## Changes and versioning

See the [changelog](CHANGELOG.md), for the most notable changes between releases.

The project adheres to [semantic versioning](https://semver.org/).

## 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](CONTRIBUTING.md) 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 on 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 :star: button to show your support.

## License

This package is licensed under the [MIT license](LICENSE.txt).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sigma-epsilon/sigmaepsilon.mesh",
    "name": "sigmaepsilon.mesh",
    "maintainer": "Bence Balogh",
    "docs_url": null,
    "requires_python": "<3.12,>=3.10",
    "maintainer_email": "bencebalogh@sigmaepsilon.com",
    "keywords": "engineering, mathematics, optimization, vector, tensor, vector algebra, tensor algebra, symbolic mathematics, nonlinear optimization",
    "author": "Bence Balogh",
    "author_email": "bencebalogh@sigmaepsilon.com",
    "download_url": "https://files.pythonhosted.org/packages/d9/75/c9e61a3e55d6fc0ae45ad857508b62a278269a972a1cb9da3bb07dfaab81/sigmaepsilon_mesh-2.3.3.tar.gz",
    "platform": null,
    "description": "# **SigmaEpsilon.Mesh** - Data Structures, Computation and Visualization for Complex Polygonal Meshes in Python\n\n![ ](logo.png)\n\n[![CircleCI](https://dl.circleci.com/status-badge/img/gh/sigma-epsilon/sigmaepsilon.mesh/tree/main.svg?style=shield)](https://dl.circleci.com/status-badge/redirect/gh/sigma-epsilon/sigmaepsilon.mesh/tree/main)\n[![codecov](https://codecov.io/gh/sigma-epsilon/sigmaepsilon.mesh/graph/badge.svg?token=7JKJ3HHSX3)](https://codecov.io/gh/sigma-epsilon/sigmaepsilon.mesh)\n[![Documentation Status](https://readthedocs.org/projects/sigmaepsilonmesh/badge/?version=latest)](https://sigmaepsilonmesh.readthedocs.io/en/latest/?badge=latest)\n[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![PyPI](https://badge.fury.io/py/sigmaepsilon.mesh.svg)](https://pypi.org/project/sigmaepsilon.mesh)\n[![Python 3.7\u20123.10](https://img.shields.io/badge/python-3.7%E2%80%923.10-blue)](https://www.python.org)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Requirements Status](https://dependency-dash.repo-helper.uk/github/sigma-epsilon/sigmaepsilon.mesh/badge.svg)](https://dependency-dash.repo-helper.uk/github/sigma-epsilon/sigmaepsilon.mesh)\n\nThe [sigmaepsilon.mesh](https://sigmaepsilon.mesh.readthedocs.io/en/latest/) library aims to provide the tools to build and analyse poligonal meshes with complex topologies. Meshes can be built like a dictionary, using arbitarily nested layouts and then be translated to other formats including [VTK](https://vtk.org/) and [PyVista](https://docs.pyvista.org/). For plotting, there is also support for [K3D](http://k3d-jupyter.org/), [Matplotlib](https://matplotlib.org/) and [Plotly](https://plotly.com/python/).\n\nThe data model is built around [Awkward](https://awkward-array.org/doc/main/), 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](https://vtk.org/) or [PyArrow](https://arrow.apache.org/docs/python/index.html). Implementations are fast as they rely on the vector math capabilities of [NumPy](https://numpy.org/doc/stable/index.html), while other computationally sensitive calculations are JIT-compiled using [Numba](https://numba.pydata.org/).\n\nHere and there we also use [NetworkX](https://networkx.org/documentation/stable/index.html#), [SciPy](https://scipy.org/), [SymPy](https://www.sympy.org/en/index.html) and [scikit-learn](https://scikit-learn.org/stable/).\n\n> **Note**\n> 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.\n\n## Highlights\n\n* Classes to handle points, pointclouds, reference frames and jagged topologies.\n* Array-like mesh composition with a Numba-jittable database model. Join or split meshes, attach numerical data and save to and load from disk.\n* Simplified and preconfigured plotting facility using PyVista.\n* Grid generation in 1, 2 and 3 dimensions for arbitrarily structured Lagrangian cells.\n* A mechanism for all sorts of geometrical and topological transformations.\n* A customizable nodal distribution mechanism to effortlessly pass around data between points and cells.\n* Generation of *Pseudo Peripheral Nodes*, *Rooted Level Structures* and *Adjancency Matrices* for arbitrary polygonal meshes.\n* Symbolic shape function generation for arbitrarily structured Lagrangian cells in 1, 2 and 3 dimensions with an extendible interpolation and extrapolation mechanism.\n* Connections to popular third party libraries like `networkx`, `pandas`, `vtk`, `PyVista` and more.\n* The ability to read from a wide range of formats thanks to the combined power of `vtk`, `PyVista` and `meshio`.\n\n## Projects using sigmaepsilon.mesh\n\n* [SigmaEpsilon.Solid](https://github.com/sigma-epsilon/sigmaepsilon.solid) - A Python library for computational solid mechanics.\n* [PyAxisVM](https://github.com/AxisVM/pyaxisvm) - The official Python package of [AxisVM](https://axisvm.eu/), a popular structural analysis and design software.\n\n## Documentation\n\nThe [documentation](https://sigmaepsilonmesh.readthedocs.io/en/latest/) is built with [Sphinx](https://www.sphinx-doc.org/en/master/) using the [PyData Sphinx Theme](https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html) and hosted on [ReadTheDocs](https://readthedocs.org/). Check it out for the user guide, an ever growing set of examples, and API Reference.\n\n## Installation\n\nsigmaepsilon.mesh can be installed from PyPI using `pip` on Python >= 3.7:\n\n```console\n>>> pip install sigmaepsilon.mesh\n```\n\nor chechkout with the following command using GitHub CLI\n\n```console\ngh repo clone sigma-epsilon/sigmaepsilon.mesh\n```\n\nand install from source by typing\n\n```console\n>>> pip install .\n```\n\nIf you want to run the tests, you can install the package along with the necessary optional dependencies like this\n\n```console\n>>> pip install \".[test]\"\n```\n\n### Development mode\n\nIf you are a developer and want to install the library in development mode, the suggested way is by using this command:\n\n```console\n>>> pip install \"-e .[test, dev]\"\n```\n\n### Checking your installation\n\nYou should be able to import sigmaepsilon.mesh from the Python prompt:\n\n```console\n$ python\nPython 3.8.10 (tags/v3.8.10:3d8993a, May  3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)] on win32\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n>>> import sigmaepsilon.mesh\n>>> sigmaepsilon.mesh.__version__\n'2.2.0'\n```\n\n## Testing and coverage\n\nThe following command runs all tests and creates a html report in a folder named `htmlcov` (the settings are governed by the `.coveragerc` file):\n\n```console\npython -m pytest --cov-report html --cov-config=.coveragerc --cov sigmaepsilon.mesh\n```\n\nOpen `htmlcov/index.html` to see the results.\n\n## Changes and versioning\n\nSee the [changelog](CHANGELOG.md), for the most notable changes between releases.\n\nThe project adheres to [semantic versioning](https://semver.org/).\n\n## How to contribute?\n\nContributions are currently expected in any the following ways:\n\n* finding bugs\n  If you run into trouble when using the library and you think it is a bug, feel free to raise an issue.\n* feedback\n  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.\n* feature requests\n  Tell us what you think is missing (with realistic expectations).\n* examples\n  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.\n* sharing is caring\n  If you like the library, share it with your friends or colleagues so they can like it too.\n\nIn all cases, read the [contributing guidelines](CONTRIBUTING.md) before you do anything.\n\n## Acknowledgements\n\nAlthough `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.\n\n**A lot of the packages mentioned on 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.**\n\nAlso, 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 :star: button to show your support.\n\n## License\n\nThis package is licensed under the [MIT license](LICENSE.txt).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python package to build, manipulate and analyze polygonal meshes.",
    "version": "2.3.3",
    "project_urls": {
        "Documentation": "https://sigmaepsilonmath.readthedocs.io/en/latest/?badge=latest",
        "Homepage": "https://github.com/sigma-epsilon/sigmaepsilon.mesh",
        "Repository": "https://github.com/sigma-epsilon/sigmaepsilon.mesh"
    },
    "split_keywords": [
        "engineering",
        " mathematics",
        " optimization",
        " vector",
        " tensor",
        " vector algebra",
        " tensor algebra",
        " symbolic mathematics",
        " nonlinear optimization"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ea0ba3b5da504cae1703499a840466b123b0bd1e25d529e90f95fdf687862b48",
                "md5": "fd9b8a009835c216563719dbd098b067",
                "sha256": "a9c3a3ac1754408c290b4e7b0bcdd9c6cd904eb0bab4b5f83c191710400d7583"
            },
            "downloads": -1,
            "filename": "sigmaepsilon_mesh-2.3.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fd9b8a009835c216563719dbd098b067",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.10",
            "size": 175317,
            "upload_time": "2024-03-25T19:41:36",
            "upload_time_iso_8601": "2024-03-25T19:41:36.369043Z",
            "url": "https://files.pythonhosted.org/packages/ea/0b/a3b5da504cae1703499a840466b123b0bd1e25d529e90f95fdf687862b48/sigmaepsilon_mesh-2.3.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d975c9e61a3e55d6fc0ae45ad857508b62a278269a972a1cb9da3bb07dfaab81",
                "md5": "9810552ad3e00477826a0bb64ae41ea9",
                "sha256": "7a8e9da85e54966fdb9822cd57bf885f7c60e542c334216fb4d711b3fc8aa085"
            },
            "downloads": -1,
            "filename": "sigmaepsilon_mesh-2.3.3.tar.gz",
            "has_sig": false,
            "md5_digest": "9810552ad3e00477826a0bb64ae41ea9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.12,>=3.10",
            "size": 132743,
            "upload_time": "2024-03-25T19:41:38",
            "upload_time_iso_8601": "2024-03-25T19:41:38.180639Z",
            "url": "https://files.pythonhosted.org/packages/d9/75/c9e61a3e55d6fc0ae45ad857508b62a278269a972a1cb9da3bb07dfaab81/sigmaepsilon_mesh-2.3.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-25 19:41:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sigma-epsilon",
    "github_project": "sigmaepsilon.mesh",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": false,
    "circle": true,
    "requirements": [],
    "tox": true,
    "lcname": "sigmaepsilon.mesh"
}
        
Elapsed time: 0.21687s