# Siconos

**Siconos** 是一个开源科学软件包，用于对非光滑动力系统进行建模与仿真，以 C++ 编写并提供 Python 绑定。非光滑动力系统是指由于碰撞、摩擦、切换或约束等现象而动力学不连续的系统；Siconos 通过硬单边接触、库仑摩擦和碰撞定律精确处理这些效应，而非将其正则化为光滑力。<sup>[1](https://github.com/siconos/siconos)</sup><sup> • </sup><sup>[2](https://siconos.github.io/simpar2016/)</sup> 该软件由法国格勒诺布尔 Inria 的 Siconos 团队开发，在 Apache 许可证 2.0 版下分发。<sup>[1](https://github.com/siconos/siconos)</sup><sup> • </sup><sup>[3](https://nonsmooth.gricad-pages.univ-grenoble-alpes.fr/siconos/)</sup>

| 关键事实 | 详情 |
|---|---|
| 是什么 | 开源 C++/Python 软件包，用于非光滑动力系统的建模与仿真，由 Inria 的 Siconos 开发团队维护<sup>[1](https://github.com/siconos/siconos)</sup> |
| 起源 | 创建于 2005 年，作为非光滑动力系统建模与仿真的通用平台<sup>[2](https://siconos.github.io/simpar2016/)</sup> |
| 组件 | numerics（C，底层求解器）、kernel（C++，建模与仿真）、mechanics（接触检测）、control 和 io（HDF5、VTK）<sup>[1](https://github.com/siconos/siconos)</sup> |
| 可求解的问题类别 | 摩擦接触（库仑，二维和三维）、滚动摩擦、互补问题（LCP、NCP、MLCP、MCP）、变分不等式（AVI、VI）和优化问题（QP、SOCP）<sup>[4](https://github.com/siconos/siconos/blob/main/numerics/README.md)</sup> |
| 仿真策略 | 事件驱动算法和事件捕获（时间步进）算法<sup>[5](https://siconos.readthedocs.io/en/latest/Docs/sphinx/users_guide/simulation.html)</sup> |
| 许可证 | Apache 许可证 2.0 版<sup>[1](https://github.com/siconos/siconos)</sup> |
| 仓库活跃度 | GitHub 上 187 个星标和 35 个复刻<sup>[1](https://github.com/siconos/siconos)</sup> |

## 起源与目的

Siconos 创建于 2005 年，作为非光滑动力系统建模与仿真的通用平台，由一个类框架和一组求解器组成：具有硬非线性约束的动力系统，如机械接触-摩擦问题、电路中的非线性（例如二极管）和生物网络（例如神经元放电）。<sup>[2](https://siconos.github.io/simpar2016/)</sup><sup> • </sup><sup>[15](https://cordis.europa.eu/project/id/IST-2001-37172)</sup> 该项目声明的目标是为一般非光滑动力系统的建模、仿真、分析和控制提供一个通用平台。<sup>[6](https://imechanica.egr.uh.edu/sites/default/files/Acary_Bremond_Huber.pdf)</sup>

非光滑方法对仿真很重要，因为当动力学包含碰撞和干摩擦时，标准常微分方程或微分代数方程积分器效率低下。在 Siconos 使用的非光滑力学表述中，拉格朗日力学系统的表述包含间隙函数与接触力之间互补形式的单边接触条件，以及库仑摩擦定律，从而使碰撞以及粘着或滑动转换成为模型的一部分，而非数值伪影。<sup>[7](https://www.researchgate.net/publication/257133222_Mechanical_simulation_of_the_Exomars_rover_using_Siconos_in_3DROV)</sup>

## 架构

该软件包按组件组织，每个组件均可从 C/C++ 或 Python 使用。<sup>[1](https://github.com/siconos/siconos)</sup>

- **siconos/numerics**（C）：用于求解优化和互补问题的底层数值算法，包括 LCP、MLCP 和 NCP；带库仑摩擦和滚动摩擦的二维和三维摩擦接触；变分不等式（AVI、VI）；二阶锥规划（SOCP）；以及继电问题。<sup>[1](https://github.com/siconos/siconos)</sup><sup> • </sup><sup>[4](https://github.com/siconos/siconos/blob/main/numerics/README.md)</sup>
- **siconos/kernel**（C++）：核心建模与仿真库，包含动力系统类（拉格朗日、牛顿-欧拉和一阶表述）、数值积分格式和非光滑定律（碰撞、摩擦、互补、继电）。<sup>[1](https://github.com/siconos/siconos)</sup>
- **siconos/mechanics**（C++）：带接触检测的机械仿真，使用原生碰撞检测或 Bullet3，并通过 Open CASCADE 集成 CAD。<sup>[1](https://github.com/siconos/siconos)</sup>
- **siconos/control**（C++）：控制系统，包括带隐式离散化的滑模控制。<sup>[1](https://github.com/siconos/siconos)</sup>
- **siconos/io**（C++）：通过 HDF5 导入/导出和 VTK 可视化进行序列化与可视化。<sup>[1](https://github.com/siconos/siconos)</sup>

设计上将建模与数值仿真分离。动力系统被形式化为系统对象的集合，这些对象在图中通过交互相关联，其中交互定义了约束状态向量之间关系的定律。在仿真步骤中，状态向量被积分，然后被表述为数学规划问题，例如线性或二阶锥互补问题或变分不等式，由可用的求解器之一求解。<sup>[2](https://siconos.github.io/simpar2016/)</sup>

## 仿真策略

有两类算法可用于仿真非光滑动力系统。<sup>[5](https://siconos.readthedocs.io/en/latest/Docs/sphinx/users_guide/simulation.html)</sup>

**事件驱动算法**将时间分解为模式（动力学光滑的区间）和离散事件（动力学变为非光滑的时刻）；积分器推进到每个事件，然后在必要时求解非光滑方程。<sup>[5](https://siconos.readthedocs.io/en/latest/Docs/sphinx/users_guide/simulation.html)</sup><sup> • </sup><sup>[8](https://nonsmooth.gricad-pages.univ-grenoble-alpes.fr/siconos/users_guide/event_driven.html)</sup>

**事件捕获算法**，也称为时间步进格式，对整个系统进行离散化，包括光滑动力学、约束和非光滑定律，从而在每个时间步都必须求解一个单步非光滑问题。<sup>[5](https://siconos.readthedocs.io/en/latest/Docs/sphinx/users_guide/simulation.html)</sup> 在莫罗时间步进仿真中，每一步计算光滑动力学的自由解，表述并求解单步非光滑问题（例如 LCP），根据结果更新状态，并推进到下一步。<sup>[9](https://siconos.readthedocs.io/en/latest/Docs/sphinx/users_guide/osns_problems.html)</sup> 典型的 Python 脚本将 `MoreauJeanOSI` 等单步积分器与 `TimeStepping` 仿真对象内的 `LCP` 等非光滑问题表述配对使用。<sup>[5](https://siconos.readthedocs.io/en/latest/Docs/sphinx/users_guide/simulation.html)</sup>

由让和莫罗开发的非光滑接触动力学（NSCD）过程，专为具有大量同时接触的密堆积体集合而设计，在 Siconos 和 LMGC90 中均有实现；其优点是可以使用大的时间增量，不像分子动力学方法中时间步长受碰撞间时间限制。<sup>[10](https://www.sciencedirect.com/science/article/abs/pii/S0045782518300628)</sup>

## 求解器

numerics 库提供与每种问题表述相匹配的求解器。对于三维摩擦接触问题，可用的方法包括非光滑高斯-赛德尔速度版本、Alart-Curnier 表述下的非光滑牛顿法、De Saxcé 和变分不等式表述下的不动点方法、外梯度法、Fischer-Burmeister 表述下的非光滑牛顿法，以及通过 GAMS 的 PATH；二维情况包括共轭投影梯度求解器和非光滑高斯-赛德尔直接法。<sup>[11](https://nonsmooth.gricad-pages.univ-grenoble-alpes.fr/siconos/users_guide/problems_and_solvers/friction_contact.html)</sup> 对于 LCP，文档记载的求解器列表包括 Lemke、二次规划和非光滑二次规划求解器、投影梯度法、基于最小函数和 Fischer-Burmeister 函数的牛顿法、PATH 求解器、枚举求解器和块高斯-赛德尔格式。<sup>[5](https://siconos.readthedocs.io/en/latest/Docs/sphinx/users_guide/simulation.html)</sup> 对于大规模机械系统，最常用的求解器是高斯-赛德尔迭代法。<sup>[2](https://siconos.github.io/simpar2016/)</sup>

这些方法大多是一阶方法，稳健但以线性速率收敛，在需要精确解时可能较慢。为解决这一问题，作为 Siconos 的一部分，开发了一种用于二阶锥规划的原始-对偶内点算法，针对摩擦接触问题的最优性条件，将其作为带二阶锥约束的凸二次最小化问题，包括约束锥不像洛伦兹锥那样自对偶的滚动摩擦问题。<sup>[12](https://www.tandfonline.com/doi/full/10.1080/10556788.2023.2296438)</sup>

## 应用

主要应用是具有单边接触、库仑摩擦和碰撞的机械系统（刚性或固体）：非光滑力学、接触动力学、多体系统动力学和颗粒材料。<sup>[3](https://nonsmooth.gricad-pages.univ-grenoble-alpes.fr/siconos/)</sup> 教程示例在力学方面涵盖弹跳球、曲柄滑块机构、齿轮传动、机器人和颗粒材料，在电子方面涵盖功率变换器、整流器、锁相环和电路仿真。<sup>[1](https://github.com/siconos/siconos)</sup> 其他目标应用包括带理想和分段线性元件的开关电路、滑模控制系统、基因调控网络、带状态约束的混合系统与最优控制、互补系统和变分不等式、流体力学和计算机图形学。<sup>[3](https://nonsmooth.gricad-pages.univ-grenoble-alpes.fr/siconos/)</sup>

一个有记载的工业应用是 ESA ExoMars 行星巡视器的机械仿真。在 Inria 与 TRASYS 的合作工作中，Siconos 为巡视器的多体动力学提供了非光滑接触、库仑摩擦和碰撞模型，既可独立使用，也可通过通用 API 集成到 TRASYS 3DROV 巡视器仿真器中；该巡视器模型具有 21 个自由度，用 HuMAnS 工具箱生成并以插件函数形式加载到 Siconos 中，测试涵盖跨越 0.1 米台阶的越障和斜坡上的牵引性能。<sup>[7](https://www.researchgate.net/publication/257133222_Mechanical_simulation_of_the_Exomars_rover_using_Siconos_in_3DROV)</sup><sup> • </sup><sup>[13](https://www.researchgate.net/publication/264674872_Exomars_Rover_Mechanical_Modeling_with_Siconos)</sup> 还有工作展示了将 Siconos 力学层集成为 Gazebo 机器人仿真器的新物理后端。<sup>[2](https://siconos.github.io/simpar2016/)</sup>

## 近期发展

该项目持续活跃开发。2026.rc1 版本被描述为两年内首次带有重大代码重构的候选发布版本，引入了采用数组结构架构的向量化内核模块，面向大规模系统，具有对数百万对象缓存友好的内存布局；求解器注册系统与统一驱动；新的二维和三维滚动摩擦接触求解器；塑性二维模块；用 pybind11 绑定替代 SWIG，实现 Eigen-NumPy 零拷贝映射；C++20 现代化与命名空间封装；以及 scikit-build 集成。<sup>[14](https://www.linkedin.com/posts/siconos_release-2026rc1-siconossiconos-activity-7438305574611652609-9Iep)</sup>

## References

1. [Siconos GitHub repository (README)](https://github.com/siconos/siconos)
2. [SIMPAR 2016 tutorial: Modeling and simulating mechanical rigid-body systems using Siconos](https://siconos.github.io/simpar2016/)
3. [Siconos: nonsmooth numerical simulation, project homepage](https://nonsmooth.gricad-pages.univ-grenoble-alpes.fr/siconos/)
4. [Siconos Numerics README](https://github.com/siconos/siconos/blob/main/numerics/README.md)
5. [Simulation of non-smooth dynamical systems, Siconos documentation](https://siconos.readthedocs.io/en/latest/Docs/sphinx/users_guide/simulation.html)
6. [On solving frictional contact problems (Acary, Brémond, Huber)](https://imechanica.egr.uh.edu/sites/default/files/Acary_Bremond_Huber.pdf)
7. [Mechanical simulation of the ExoMars rover using Siconos in 3DROV (ASTRA 2013)](https://www.researchgate.net/publication/257133222_Mechanical_simulation_of_the_Exomars_rover_using_Siconos_in_3DROV)
8. [Event-Driven schemes, Siconos documentation](https://nonsmooth.gricad-pages.univ-grenoble-alpes.fr/siconos/users_guide/event_driven.html)
9. [Nonsmooth problems formulation and solve, Siconos documentation](https://siconos.readthedocs.io/en/latest/Docs/sphinx/users_guide/osns_problems.html)
10. [A catching-up algorithm for multibody dynamics with impacts and dry friction](https://www.sciencedirect.com/science/article/abs/pii/S0045782518300628)
11. [Friction-contact problems (2 or 3D), Siconos documentation](https://nonsmooth.gricad-pages.univ-grenoble-alpes.fr/siconos/users_guide/problems_and_solvers/friction_contact.html)
12. [Second-order cone programming for frictional contact mechanics using interior point algorithm, Optimization Methods and Software](https://www.tandfonline.com/doi/full/10.1080/10556788.2023.2296438)
13. [ExoMars Rover Mechanical Modeling with Siconos, Inria Technical Report 448 (2014)](https://www.researchgate.net/publication/264674872_Exomars_Rover_Mechanical_Modeling_with_Siconos)
14. [Siconos release 2026.rc1 announcement](https://www.linkedin.com/posts/siconos_release-2026rc1-siconossiconos-activity-7438305574611652609-9Iep)
15. [Modelling, Simulation and Control of Nonsmooth Dynamical Systems, SICONOS, Project, Fact Sheet, FP5, CORDIS, European Commission](https://cordis.europa.eu/project/id/IST-2001-37172)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 工程与制造 › 机器人技术与自动化 › 机器人软件、人工智能与方法 › 仿真、物理引擎与数字孪生

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/siconos

English original: https://www.edgepedia.org/siconos
