.ModelicaDEVS.UsersGuide.Introduction

Information

Introduction to the ModelicaDEVS Library

The goal of this thesis is to implement a new Dymola/Modelica library, consisting of a number of blocks that enable simulation according to the DEVS formalism. The ulterior motive is to provide Dymola with an additional integration method based on the DEVS methodology.

Dymola/Modelica primarily deals with continuous physical problems, usually described by differential equations. Integration is therefore an important subject and justifies the attempt to improve/enhance Dymola's current possibilities regarding integration methods.

It may be a bit surprising at a first glance why a methodology such as DEVS, originally designed for discrete systems, should be useful for the simulation of continuous systems.
Toward the end of the nineties however, a new approach for numerical integration has been developed by Zeigler et al. [Zeigler98]: given the fact that all computer-based simulations have to undergo a discretisation in one way or another - as digital machines are not able to process raw continuous signals - the basic idea of the new integration approach was to replace the discretisation of time by a discretisation of state, such that the system is not supposed to advance from time step to time step anymore, but rather from state to state. While conventionally the time axis was subdivided into intervals of equal length, the time instants when the system executes the next simulation step are now distributed irregularly because of their dependence on the time instants when the system enters a new state which is not necessarily at equidistant time instants.
The DEVS formalism turned out to be particularly suited to implement such a state quantisation approach given that it is not limited to a finite number of system states, in contrast to other discrete-event simulation techniques.
The Quantised State Systems introduced by Kofman [Kofman01] in 2001 improved the original quantised state approach of Zeigler, and hence gave rise to efficient DEVS simulation of large and complex systems.

The simulation of a continuous system by a (discrete) DEVS model comes with several benefits:

Since the mid seventies, when Zeigler introduced the DEVS formalism [Zeigler76], there have emerged several DEVS implementations, most of them designed to simulate discrete systems. However, one simulation/modelling software systems that is aimed at simulating continuous systems, is PowerDEVS: it provides the components for modelling the block diagram representation of any system described by DAE's.
Given the fact that the implementation of the PowerDEVS functionality in Modelica perfectly matches our goal of providing Dymola with an additional simulation method for continuous systems, ModelicaDEVS is developed as closely as possible to PowerDEVS.

Although ModelicaDEVS is primarily an attempt at enhancing Dymola's integration competences by the benefits of DEVS integration using the synchronous information flow principle of the programming language Modelica, the new library can of course also be used for common discrete-event simulations that do not need to integrate anything.




Generated at 2024-12-03T19:25:34Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos