simcoon

Constitutive laws, material-point simulation and mean-field micromechanics for nonlinear and heterogeneous materials.

Cyclic plasticity, adiabatic superelasticity and mean-field homogenization computed with simcoon

simcoon is a C++ library with a Python interface. It provides constitutive laws (elastoplasticity, viscoelasticity, hyperelasticity, shape memory alloys, damage), a thermomechanical material-point solver under mixed strain and stress control, finite-strain kinematics with several objective rates, and mean-field homogenization of composites. Its laws serve as user materials in fedoo, Abaqus and Ansys, on microstructures generated with microgen.

What you can do

Elastoplasticity

Isotropic and kinematic hardening (Chaboche, Johnson-Cook), anisotropic criteria, cyclic loading under mixed control.

Plasticity with isotropic hardening example
Modular laws

Compose elasticity, criteria, hardening, viscoelastic and damage mechanisms from Python, without writing C++.

Modular UMAT Example — Composable Elasto-Plasticity
Finite strain

Logarithmic strain transported by the polar rotation (log_R), Jaumann and Green-Naghdi rates, Kirchhoff stress and consistent box tangents.

Comparison of objective rates
Hyperelasticity

Neo-Hookean, Mooney-Rivlin, Ogden and fibre-reinforced (HGO) potentials for soft tissues and elastomers.

Anisotropic hyperelasticity - inflation of an arterial layer (HOLZA)
Thermomechanics and SMA

Coupled heat equation at the material point, shape memory alloys with transformation and reorientation, energy balance.

Shape Memory Alloy - Thermomechanical coupling
Micromechanics

Eshelby tensors, Mori-Tanaka and self-consistent schemes, effective properties of particle and fibre composites.

Micromechanics Examples
Parameter identification

Fit material parameters on experimental curves with scipy.optimize and the simcoon parameter keys.

Chaboche Cyclic Plasticity Identification
Python and ML laws

Write a constitutive law in Python or plug a trained network, and run it in the same solver as the C++ laws.

J2 plasticity written in Python (PYEXT)
Tensors and rotations

Typed second- and fourth-order tensors in Voigt notation, rotations, push-forward and pull-back, stress measures.

Tensor2 and Tensor4 Examples

Hello, elastoplasticity

import numpy as np
from simcoon import solver

props = np.array([70000.0, 0.3, 1.0e-5, 300.0, 1000.0, 0.3])  # E, nu, alpha, sigma_Y, k, m
load = solver.StepMeca(control="stress", value=[450.0, 0, 0, 0, 0, 0], ninc=100)
unload = solver.StepMeca(control="stress", value=[0.0, 0, 0, 0, 0, 0], ninc=100)

res = solver.solve(solver.Block(steps=[load, unload], ncycle=3), "EPICP", props, nstatev=8)
print(res["Strain"][0, -1], res["Stress"][0, -1])

simcoon.solver.solve() runs the loading blocks in memory and returns the whole history as numpy arrays. See In-memory Python solver for the loading objects and Constitutive model (UMAT) catalog for the list of laws and their parameters.

Install

conda install -c conda-forge -c set3mah simcoon
pip install simcoon

See Installation for building from source and the C++ library.

The 3MAH ecosystem

microgen

Geometry and periodic meshes of microstructures.

https://3mah.github.io/microgen-docs/
fedoo

Nonlinear finite elements and periodic homogenization.

https://3mah.github.io/fedoo-docs/
simcoon

Constitutive laws and mean-field micromechanics.

About simcoon

simcoon is developed by the 3MAH group, mainly at Université Grenoble Alpes (TIMC) and the University of Bordeaux (I2M), with contributions from LEM3 (Metz) and TU Bergakademie Freiberg. It is released under the GPL-3.0 license. See About for the history and the contributors.