Skip to content

Get started

The three libraries are independent Python packages: install only what you need, or the whole stack. Each library's documentation is the reference for installation details, tutorials, examples and API.

Install the whole stack

conda create -n 3mah -c conda-forge -c set3mah python=3.12 simcoon fedoo microgen
conda activate 3mah
pip install simcoon "fedoo[all]" microgen

Which one should I use?

conda installs the compiled dependencies (BLAS/LAPACK, sparse solvers, mmg) for you, so it is the easiest route. pip wheels are available for Linux, macOS (Apple Silicon) and Windows. Platform-specific notes (OpenMP, sparse solvers, CAD backend) are in each installation guide below.

Pick a library

simcoon

Constitutive laws, micromechanics and parameter identification (C++ with Python bindings).

conda install -c conda-forge -c set3mah simcoon
# or: pip install simcoon

fedoo

Nonlinear finite element analysis in Python, homogenization, contact and model reduction.

conda install -c conda-forge -c set3mah fedoo
# or: pip install "fedoo[all]"

microgen

Microstructure generation and meshing: TPMS, lattices, polycrystals, periodic meshes.

conda install -c conda-forge microgen
# or: pip install "microgen[cad]"

From geometry to simulation

The libraries are designed to be chained:

  1. microgen generates the microstructure (TPMS, lattice, Voronoi polycrystal…) and exports a conforming, periodic mesh (.vtk / .msh).
  2. fedoo reads the mesh, applies periodic boundary conditions and solves the nonlinear finite element problem.
  3. simcoon provides the constitutive laws used at each integration point (elasticity, plasticity, viscoelasticity, hyperelasticity, phase transformation), through the same UMAT interface as Abaqus.

Browse all examples Source code on GitHub