The framework DySMo allows users to create variable-structure Modelica models, which can be simulated in OpenModelica and Dymola.
Original repository by Alexandra Mehlhase: https://github.com/alexa-mehl/DySMo2 PhD Thesis by Alexandra Mehlhase: Konzepte für die Modellierung und Simulation strukturvariabler Modelle User guide: UserGuide
Updated and refactored by Zizhe Wang ([email protected]) in 2025.
In the case of a pendulum, the two modes correspond to two model structures. In classical Modelica programs, the simulation will fail, the result of simulating this model with DySMo is shown.
The examples have been updated and tested with the following results:
ballSimple
: ✔bouncingBall
: ✔domino
: ❌ model errornailPendulum
: ❌ unbalanced modelpendulum
: ✔pipe
: ❌ memory errorsatellite
: ❌ memory errorwagon
: ✔