Microgen is a Python library designed to facilitate microstructure generation and meshing. Here are its core features:
Generation of 3D objects is achievable through functions that utilize Open CASCADE (via Cadquery) or VTK (using PyVista). Neper offers tools for 3D tessellation, while Gmsh handles the generation of both regular and periodic meshes, with Mmg handling remeshing tasks.
PyPI package | |
Conda forge package | |
Documentation | |
Status | |
Citation | |
License | |
Website | |
Binder |
With pip:
pip install microgen
With conda:
conda install conda-forge::microgen
To modify the sources, clone this repository and install microgen:
git clone https://github.com/3MAH/microgen.git
cd microgen
pip install -e .[all]
pre-commit install
The -e
or --editable
option allows to modify the sources without having to reinstall the package and [all]
installs the optional development dependencies.
Run tests with pytest:
pytest tests -n auto
Click on the image to be redirected to the corresponding example on Microgen's documentation