Examples

Each example is a standalone script: download it at the bottom of its page and run it with python <name>.py. Most of them are run at each documentation build and the 3D scenes can be rotated in the Interactive Scene tab. Examples that need the optional CAD backend say so (pip install microgen[cad]).

Basic shapes

Elementary shapes (box, sphere, cylinder, capsule, ellipsoid, extruded polygon, polyhedra) used as building blocks of microstructures.

Platonic solids

Platonic solids

Basic shapes

Basic shapes

Triply periodic minimal surfaces (TPMS)

Sheet and skeletal TPMS, density and cell-size grading, morphing between TPMS families, cylindrical, spherical and swept coordinate frames, and infill of arbitrary meshes.

Spherical, cylindrical and swept frames

Spherical, cylindrical and swept frames

Cylindrical gyroid

Cylindrical gyroid

Radially graded cylindrical gyroid

Radially graded cylindrical gyroid

Rotated cylindrical gyroid

Rotated cylindrical gyroid

Fischer-Koch S surface

Fischer-Koch S surface

Cell size grading

Cell size grading

Morphing between TPMS types

Morphing between TPMS types

Density grading

Density grading

Gyroid

Gyroid

Gyroid infill of a mesh

Gyroid infill of a mesh

Infill graded by the distance to the surface

Infill graded by the distance to the surface

Gyroid infilled by a gyroid

Gyroid infilled by a gyroid

Spherical gyroid shell

Spherical gyroid shell

Gyroid in a shell

Gyroid in a shell

Spherical gyroid

Spherical gyroid

Available TPMS

Available TPMS

Spinodoids

Stochastic, bicontinuous and exactly periodic microstructures generated from Gaussian random fields.

Spinodoid

Spinodoid

Lattices

Preset and custom strut-based lattices, octet-truss with a periodic mesh, and honeycomb.

Custom auxetic lattice

Custom auxetic lattice

Honeycomb

Honeycomb

Periodic octet-truss mesh

Periodic octet-truss mesh

Preset strut lattices

Preset strut lattices

Implicit workflow

Phases defined by their implicit field, meshed by marching cubes without the optional CAD backend.

Gyroid as an implicit Phase

Gyroid as an implicit Phase

Boolean operations on implicit fields

Boolean operations on implicit fields

Particle and fibre RVEs

Periodic representative volume elements filled with random, non-overlapping inclusions, built as unions of implicit shapes.

Periodic RVE of short fibres

Periodic RVE of short fibres

Periodic RVE of spheres

Periodic RVE of spheres

3D operations

Repetition of a unit cell, rasterization of a phase, Voronoi tessellations and their intersection with a TPMS.

Rasterized ellipsoid

Rasterized ellipsoid

Repeat a unit cell

Repeat a unit cell

Voronoi polycrystal

Voronoi polycrystal

Voronoi gyroid

Voronoi gyroid

Meshing and remeshing

Periodic tetrahedral meshes with gmsh and remeshing with mmg. These examples need the mmg executables (conda install -c conda-forge mmg); they are not run at each documentation build.

Level-set remeshing with mmg

Level-set remeshing with mmg

Level-set remeshing of a Voronoi mesh

Level-set remeshing of a Voronoi mesh

Periodic gyroid mesh from a STEP file

Periodic gyroid mesh from a STEP file

Periodic remeshing

Periodic remeshing

Fibres

Short fibre composites rebuilt from a list of measured fibres.

Short fibre composite

Short fibre composite

Gallery generated by Sphinx-Gallery