microgen — Microstructure Generation & Periodic Meshing¶
microgen is a Python library to build TPMS, lattices, Voronoi polycrystals and hybrid architectures from implicit fields, then mesh them (conforming, graded or periodic) for finite element analysis and 3D printing.
Here are the main features:
- TPMS: gyroid, Schwarz, Schoen, Neovius, Fischer-Koch… as sheets or skeletons, graded in density, cell size or cell type, in Cartesian, cylindrical or spherical frames, and as infill of any mesh
- Spinodoids: random, anisotropic bicontinuous microstructures from Gaussian random fields
- Lattice structures: octet-truss, honeycomb, preset and custom (e.g. auxetic) strut lattices
- Virtual composites: periodic RVEs of spheres, short fibres, ellipsoids and other inclusions
- Voronoi tessellation: 3D polycrystals (using Neper), also combined with TPMS
- Implicit workflow: shapes as implicit fields, with boolean operations and blending
- Mesh generation: conforming and periodic meshes with Gmsh, level-set remeshing with MMG
microgen is dedicated to parametric geometrical definition of structures applied to mechanical simulations. Triply periodic surfaces and volumes are easy to represent for FEM simulation or 3D printing. microgen's objective is to represent, with an easy-to-learn Python scripting approach, any CAD-compatible surface and volume and be able to easily perform parametric analysis.
Several geometrical operations are included (repetition, boolean, slicing, etc.). microgen relies on PyVista (Python VTK visualisation library) for implicit shapes and meshes, and optionally on OCP (Python bindings of Open CASCADE) for CAD. It facilitates the generation of meshes using GMSH, allowing periodic meshes if the geometry is periodic. It also wraps the MMG remeshing software developed at INRIA.
This software is compatible with fedoo for non-linear (geometrical and material) homogenization for mechanical, thermal and thermo-mechanical problems. It can also be utilised with other FEA solutions such as Abaqus, Ansys, Salome, FEniCS, Zebulon, etc.
Install¶
Documentation¶
Featured examples¶
All examples of the 3MAH stack Back to 3MAH
Research highlights¶
Neovius TPMS, Voronoi tessellation of polycrystals, and Gyroid surfaces.