Skip to main content

Microstructure generation

Project description

Microgen logo

Microgen is a simple python library that helps to generate and mesh microstructures.

Here are the main features:

  • Entirely written in Python 3 and based on CadQuery and PyVista libraries.
  • It allows to generate simple reinforcement geometries (spheres, cylinder, ellipsoids, …) to generate virtual composites microstructures.
  • Three-dimensional Voronoi tessellation rallons to simulate the response granular materials and polycrystalline metals.
  • Regular mesh and periodic mesh are implemented using Gmsh, remeshing using Mmg is also implemented.

Gyroid TPMS

build-and-test workflow Anaconda-Server Badge PyPI version 3MAH DOI Binder

Documentation

Provider Status
Read the Docs Documentation Status

Installation


With conda:

conda install -c conda-forge -c cadquery -c set3mah microgen

With pip (Linux only):

pip install microgen

You may need to install dependencies mentioned in the requirements.txt file

pip install -r requirements.txt

To modify the sources, clone this repository and set up the following environment:

Create a conda environment with all the required dependencies

conda env create -f environment.yml -n microgen-dev
conda activate microgen-dev

Then install microgen:

python setup.py install

Examples

Click on the image to be redirected to the corresponding example on Microgen's documentation

Basic shapes

Repeated cells

Triply Periodic Minimal Surfaces (TPMS)

3D operations

Mesh

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

microgen-1.0.1.tar.gz (40.0 kB view hashes)

Uploaded Source

Built Distribution

microgen-1.0.1-py3-none-any.whl (46.2 kB view hashes)

Uploaded Python 3

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