siconos
Simulation framework for nonsmooth dynamical systems
Homepage | Documentation | Tutorials | GitLab Siconos is an open-source scientific software package designed for modeling and simulating nonsmooth dynamical systems - systems where the dynamics are not continuous due to phenomena like impacts, friction, switches, or constraints. Run Siconos directly in your browser via Binder:
Summary extracted from the README.
Siconos
A software package for the modeling and simulation of nonsmooth dynamical systems in C++ and Python.
Current release: 2026.rc3 (third release candidate of the 2026 series), see the release notes and the Changelog.
📚 Examples and Tutorials: Most examples and tutorials are in the separate siconos-tutorials repository. Please ensure you use consistent versions of siconos and siconos-tutorials (e.g., both
mainbranch or both same release version).
📖 Documentation: check getting started, install, user or developer guides, complete (C++ and python) API reference ...
Homepage | Documentation | Tutorials | GitLab
What is Siconos?
Siconos is an open-source scientific software package designed for modeling and simulating nonsmooth dynamical systems - systems where the dynamics are not continuous due to phenomena like impacts, friction, switches, or constraints.
Key Application Areas
| Domain | Examples |
|---|---|
| Mechanical Systems | Rigid body dynamics with contact and friction, multibody systems, granular materials |
| Electrical Circuits | Power converters, rectifiers, PLLs, ADCs with ideal components |
| Control Systems | Sliding mode control, hybrid systems |
| Biology | Gene regulatory networks |
| Optimization | Complementarity systems, variational inequalities |
Quick Start
Option 1: Try Online (No Installation)
Run Siconos directly in your browser via Binder:
Best for: Testing the software, tutorials, lightweight demos
Option 2: Docker (Recommended for Development)
Prerequisite: Docker
# Jupyter Lab with Siconos and tutorials
docker run --rm -p 8888:8888 -ti \
gricad-registry.univ-grenoble-alpes.fr/nonsmooth/siconos-tutorials/siconoslab-main:latest
# Or command-line only
docker run --rm --entrypoint /bin/bash -ti \
gricad-registry.univ-grenoble-alpes.fr/nonsmooth/siconos-tutorials/siconoslab-main:latest
Option 3: Build from Source
# Clone the repository
git clone https://github.com/siconos/siconos.git
cd siconos
# Configure and build
cmake -S . -B build
cmake --build build -j$(nproc)
# Or select components with WITH_<component> options, e.g. only numerics and kernel:
# cmake -S . -B build -DWITH_control=OFF -DWITH_mechanics=OFF -DWITH_io=OFF
# (externals, numerics, kernel, control, mechanics and io are ON by default,
# mechanisms and vkernel are OFF; dependencies are added automatically)
# Or use a configuration file:
# cmake -S . -B build -DUSER_OPTIONS_FILE=config_samples/default.cmake
# Run tests (optional)
ctest --test-dir build
# Install
cmake --install build
Main Components
Each component can be used from C/C++ or Python.
siconos/numerics (C)
Low-level numerical algorithms for solving optimization problems:
- Complementarity problems: LCP, MLCP, NCP
- Friction-contact problems: 2D/3D with Coulomb friction, rolling friction, global (sparse) formulations, cohesive zone models, plasticity
- Solvers: projected/nonsmooth Gauss-Seidel, semi-smooth Newton, interior point methods, optional parallel (OpenMP, PETSc) and GPU (CUDA) solvers
- Variational inequalities: AVI, VI
- Second-order cone programming (SOCP)
- Relay problems
siconos/kernel (C++)
Core library for modeling and simulation:
- Dynamical systems: Lagrangian, Newton-Euler, first-order formulations
- Numerical integration: Event-driven and time-stepping schemes (Moreau-Jean, projected Moreau-Jean, Schatzman-Paoli, D1MinusLinear, generalized-alpha, ...)
- Nonsmooth laws: Impact, friction, complementarity, relay
siconos/mechanics (C++)
Mechanical simulation with contact detection:
- Collision detection (native and Bullet3)
- CAD integration (Open CASCADE)
- Finite elements with contact, cohesive zones and plasticity
siconos/mechanisms (C++, optional)
Multibody systems built from CAD models (Open CASCADE), WITH_mechanisms=ON.
siconos/vkernel (C++, experimental, optional)
Vectorized kernel for large-scale systems (structure-of-arrays storage, disks, polytopes and
FEM bodies, several time-stepping schemes), WITH_vkernel=ON.
siconos/control (C++)
Control systems with sliding mode control and implicit discretization.
siconos/io (C++)
Serialization and visualization:
- HDF5 input/output with a versioned format,
siconosrunner for mechanics scenes - Visualization with
siconos_vview(VTK) and VTKHDF export for ParaView
Examples by Domain
The siconos-tutorials repository contains comprehensive examples for each application area:
| Domain | Example Topics | Link |
|---|---|---|
| Mechanics | Bouncing ball, slider-crank, gear transmission, robotics, granular materials | Mechanics Tutorials |
| Electronics | Power converters, rectifiers, PLLs, circuit simulation | Electronics Tutorials |
| Control | Sliding mode control, state observers, hybrid systems | Control Tutorials |
| Numerics | LCP solvers, friction contact, optimization problems | Numerics Tutorials |
📁 Browse all examples: siconos-tutorials repository
Example: Bouncing Ball
import numpy as np
import siconos.integrators as si
import siconos.modeling as sm
import siconos.nonsmooth_formulations as snf
import siconos.simulation as ss
# Parameters
t0, T, h = 0, 10, 0.005 # Time settings
r, g, m = 0.1, 9.81, 1 # Ball properties
e = 0.9 # Restitution coefficient
# Create dynamical system (ball)
position = np.array([1.0, 0, 0])
velocity = np.zeros(3)
mass = m * np.eye(3, order="F") # matrices in column-major order
mass[2, 2] = 2.0 / 5 * r * r
ball = sm.LagrangianLinearTIDS(position, velocity, mass, sm.alias_t)
ball.setConstantFext(np.array([-m * g, 0, 0]), sm.alias_t)
# Interaction with floor
nslaw = sm.NewtonImpactNSL(e)
relation = sm.LagrangianLinearTIR(np.array([[1.0, 0, 0]], order="F"))
interaction = sm.Interaction(nslaw, relation)
# Model
model = sm.NonSmoothDynamicalSystem(t0, T)
model.insertDynamicalSystem(ball)
model.link(interaction, ball)
# Simulation
osi = si.MoreauJeanOSI(0.5)
td = ss.TimeDiscretisation(t0, h)
osnspb = snf.LCP()
sim = ss.TimeStepping(model, td, osi, osnspb)
# Run simulation
while sim.hasNextEvent():
sim.computeOneStep()
sim.nextStep()
print(ball.q())
Documentation & Resources
| Resource | Link |
|---|---|
| User Guide | https://nonsmooth.gricad-pages.univ-grenoble-alpes.fr/siconos/users_guide/index.html |
| Tutorials | https://nonsmooth.gricad-pages.univ-grenoble-alpes.fr/siconos-tutorials |
| API Reference | https://nonsmooth.gricad-pages.univ-grenoble-alpes.fr/siconos/reference/index.html |
| Bug Reports | GitHub Issues |
Citation
If you use Siconos in your research, please cite:
@software{siconos,
title = {Siconos: A Software Package for Modeling and Simulation of Nonsmooth Dynamical Systems},
author = {{Siconos Team}},
url = {http://siconos.org},
version = {2026.rc3},
year = {2026}
}
License
Siconos is distributed under the Apache License, Version 2.0.
Maintained by: The Siconos Development Team Contact: GitHub Issues