Overview
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.
Brief examples
import microgen
geometry = microgen.Tpms(
surface_function=microgen.surface_functions.gyroid,
offset=0.3
)
shape = geometry.sheet
shape.plot(color='white')