论文标题
一个基于Python的混合分散连续模拟框架,用于数字双胞胎
A Python-based Mixed Discrete-Continuous Simulation Framework for Digital Twins
论文作者
论文摘要
数字双胞胎的使用将通过协助监视和实时决策来改变制造业。对于该行业中的几个应用程序,要建模的系统由彼此相互作用的离散事件和连续过程组成。基于仿真的基于模拟的数字双胞胎需要一个开放的,灵活的仿真框架,该框架可以支持连续和离散事件组件的简单建模和快速模拟及其交互。在本文中,我们提出了一个基于Python的框架的轮廓和关键设计方面,用于执行混合离散的连续模拟。假定系统中的连续过程通过预定义的事件松散地与其他组件耦合。例如,越过阈值的连续状态变量可能会触发外部事件。同样,外部事件可能会导致连续过程中轨迹,状态值或边界条件的突然变化。我们首先使用使用这种交互的基于系统的事件界面进行建模和模拟。然后,我们讨论框架的实现详细信息以及一个详细的示例。在我们的实施中,时间的进步是使用Simpy的事件步骤的引擎(Python中流行的离散事件仿真库)来控制和执行的。连续过程是使用现有框架和Python包装器提供事件接口的现有框架进行建模的。我们讨论了对时间前进计划,框架的路线图和用例的可能改进。
The use of Digital Twins is set to transform the manufacturing sector by aiding monitoring and real-time decision making. For several applications in this sector, the system to be modeled consists of a mix of discrete-event and continuous processes interacting with each other. Building simulation-based Digital Twins of such systems necessitates an open, flexible simulation framework which can support easy modeling and fast simulation of both continuous and discrete-event components, and their interactions. In this paper, we present an outline and key design aspects of a Python-based framework for performing mixed discrete-continuous simulations. The continuous processes in the system are assumed to be loosely coupled to other components via pre-defined events. For example, a continuous state variable crossing a threshold may trigger an external event. Similarly, external events may lead to a sudden change in the trajectory, state value or boundary conditions in a continuous process. We first present a systematic events-based interface using which such interactions can be modeled and simulated. We then discuss implementation details of the framework along with a detailed example. In our implementation, the advancement of time is controlled and performed using the event-stepped engine of SimPy (a popular discrete-event simulation library in Python). The continuous processes are modelled using existing frameworks with a Python wrapper providing the events interface. We discuss possible improvements to the time advancement scheme, a roadmap and use cases for the framework.