simcoon
Constitutive laws, material-point simulation and mean-field micromechanics for nonlinear and heterogeneous materials.
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
Isotropic and kinematic hardening (Chaboche, Johnson-Cook), anisotropic criteria, cyclic loading under mixed control.
Compose elasticity, criteria, hardening, viscoelastic and damage mechanisms from Python, without writing C++.
Logarithmic strain transported by the polar rotation (log_R), Jaumann and Green-Naghdi rates, Kirchhoff stress and consistent box tangents.
Neo-Hookean, Mooney-Rivlin, Ogden and fibre-reinforced (HGO) potentials for soft tissues and elastomers.
Coupled heat equation at the material point, shape memory alloys with transformation and reorientation, energy balance.
Eshelby tensors, Mori-Tanaka and self-consistent schemes, effective properties of particle and fibre composites.
Fit material parameters on experimental curves with scipy.optimize
and the simcoon parameter keys.
Write a constitutive law in Python or plug a trained network, and run it in the same solver as the C++ laws.
Typed second- and fourth-order tensors in Voigt notation, rotations, push-forward and pull-back, stress measures.
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
Geometry and periodic meshes of microstructures.
Nonlinear finite elements and periodic homogenization.
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.