Skip to content

Latest commit

 

History

History
100 lines (72 loc) · 3.45 KB

Overview.rst

File metadata and controls

100 lines (72 loc) · 3.45 KB

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.


3MAH website 3MAH website
GitHub repository GitHub repository

Gyroid TPMS

Brief examples

.. jupyter-execute::
   :hide-code:

   import pyvista
   pyvista.set_jupyter_backend('static')
   pyvista.global_theme.background = 'white'
   pyvista.global_theme.window_size = [600, 400]
   pyvista.global_theme.axes.show = False
   pyvista.global_theme.smooth_shading = True
   pyvista.global_theme.split_sharp_edges = True


.. jupyter-execute::

   import microgen

   geometry = microgen.Tpms(
      surface_function=microgen.surface_functions.gyroid,
      offset=0.3
   )
   shape = geometry.sheet

   shape.plot(color='white')