Submitted:
18 March 2024
Posted:
19 March 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
The equations whose solution represent a physical system can be distributed among its components
- Irregular systems can be composed and are hard to diagnose.
- Very difficult handling of variable structure systems [4] (change of equations at run-time) due to the high index of the Differential Algebraic Equation (DAE) system.
- Very difficult code generation for large-scale system simulation [5] since often the complete equation system is needed for structural analysis
- Highly complex generation of simulation code requiring compilers that have high development costs. (The decade spanning effort of OpenModelica [6] provides evidence)
Any valid combination of components (under rules of limited complexity) shall have a solution representing a physical system.
2. The Principle of Stationary Action
- The kinetic energy is then defined as: with being the density and the inertance defined by the geometry length and cross section :
- The potential energy can be formulated by where is the bulk modulus and a reference volume.
3. From Necessary to Sufficient

- (a)
- Ensure that the kinetic energy is always sufficiently represented so that we can guarantee solvability according to the steady-action principle.
- (b)
- Enable the modeler to reduce the interaction between kinetic and potential energies to key points in the system so that irrelevant high frequency behavior can be effectively suppressed.
3.1. Triplet Interface for Thermofluid Systems
- : inertial pressure (potential)
- : mass-flow rate (flow)
- : Vector representing the thermodynamic state of the medium (signal)
- -
- : steady-mass flow pressure
- -
- : steady-mass flow enthalpy
- -
- : mass fractions
3.2. Triplet Interface for Mechanical Systems
- : velocity (potential)
- : force (flow)
- : position (signal)
4. Triplets and Object-Oriented Modeling
5. Triplets and Linear Implicit Equilibrium Dynamics
- For thermofluid streams, the signal for the thermodynamic state will be part of. States associated with this state such as the temperature of a volume will be part of . A subset of the flow variables will form . The subset is chosen in such a way that all streams are described by in a non-redundant way. The redundant mass flows as well as the inertial pressures become part of
- For dialectic mechanics, the signal for the position will be part of The potential and flow variables of the interface and will be part of . The state vector is typically empty. The members of are chosen from the internal variables in such a way that the motion of the kinematic chain is described in a non-redundant way. For each degree of freedom its kinetic velocity and its position form state variables in .
6. How to Create Simulation Code for LIED Systems?
- Because we avoid the creation of non-linear equation systems, we do not need a non-linear equation system solver anymore.
- For the same reason, constraint equations among potential states cannot be non-linear and hence no dynamic state selection is needed [20]
- Even stronger: we can select the states on component level. For example, the stars in Figure 9 and 10 mark those components that define states in .
- Because we can select the states on component level, this means that the dummy-derivative method can be applied also on component level before system composition.
- Since the goal of the linear equation system is to have a synchronized replacement dynamics towards the equilibrium, we know suitable tearing variables for this system. These will be the linear state derivatives: or at least a subset of it.
- The residual for a tearing variable can be attributed to the same component as the tearing variable.
- the set of pairs of state-variables and their derivatives it adds to the system.
- the set of pairs of tearing and residual variables it adds to the system.
- we stipulate the states
- we stipulate the tearing variables of the linear system and the corresponding residuals
- we perform the dummy derivative method on those equations where necessary.
- we define the causality of the interface variables
- we causalize all equations into assignments in a particular order
- we group the list of assignments depending on their dependence of the inputs.

7. Conclusions
Funding
Acknowledgments
Conflicts of Interest
References
- P. Fritzson, Principles of Object-Oriented Modeling and Simulation with Modelica 3.3, 2nd ed., IEEE Press, Piscataway, New Jersey, 2014, pp. 1256.
- Cellier, F.E. (1991) Continuous System Modeling. Springer Verlag New York. 755p.
- Karnopp, D.C., D.L. Margolis, R.C. Rosenberg (2006), System Dynamics: Modeling and Simulation of Mechatronic Systems. 4th Edition, John Wiley&Sons, New York, 576p.
- Zimmer, D. (2010), Equation-Based Modeling of Variable Structure Systems PhD Dissertation, ETH Zürich, 219 pages.
- Braun, Willi et al. “Solving large-scale Modelica models: new approaches and experimental results using OpenModelica.” International Modelica Conference (2017). [CrossRef]
- Fritzson, Peter A. et al. “The OpenModelica Integrated Modeling, Simulation, and Optimization Environment.” Proceedings of The American Modelica Conference 2018, October 9-10, Somberg Conference Center, Cambridge MA, USA (2019).
- Feynman, Richard P. (1942). Laurie M. Brown (ed.). The Principle of Least Action in Quantum Mechanics. PhD Dissertation, Princeton University. World Scientific (with title "Feynman's Thesis: a New Approach to Quantum Theory") (published 2005). ISBN 978-981-256-380-4.
- Georg Hamel, Theoretische Mechanik 1949 (Reprint 1978).
- Torby, Bruce (1984). "Energy Methods". Advanced Dynamics for Engineers. HRW Series in Mechanical Engineering. United States of America: CBS College Publishing. ISBN 0-03-063366-4.
- Landau LD and Lifshitz EM (1976) Mechanics, 3rd. ed., Pergamon Press. ISBN 0-08-021022-8.
- Pennrose, R., The Road to Reality. Vintage Books, New York, 2004.
- B.S. Massey, Mechanics of Fluids, Chapman & Hall. ISBN 0-412-34280-4, 1989.
- C.E. Brennen, Internet Book on Fluid Dynamics, Dankat Publishing, Pasadena, California, USA, 2015.
- Zimmer, D. (2020), Robust Object-Oriented Formulation of Directed Thermofluid Stream Networks . Mathematical and Computer Modelling of Dynamic Systems, Vol 26, Issue 3. [CrossRef]
- Zimmer, D., N. Weber, M. Meißner (2022) The DLR ThermoFluid Stream Library. MDPI Electronics - Special Issue.
- Zimmer, D., C. Oldemeyer (2023). “Introducing Dialectic Mechanics”. Proceedings of the 15th International Modelica Conference, Aachen.
- Oldemeyer, C., D. Zimmer (2023). “Dialectic Mechanics: Extension for Hard Real-time Simulation”. Proceedings of the 15th International Modelica Conference, Aachen. [CrossRef]
- Mattsson, S.E., Gustaf Söderlind (1993). “Index Reduction in Differential-Algebraic Equations Using Dummy Derivatives” In: SIAM Journal on Scientific Computing 1993 14:3, 677-692. [CrossRef]
- Pantelides, C. The consistent initialization of differential-algebraic systems. SIAM J. Sci. Statist. Comput. 1988, 9, 213–231. [Google Scholar] [CrossRef]
- Sven Erik Mattsson, H. Olsson, H. Elmqvist (2000) “Dynamic Selection of States in Dymola”. Proceedings of Modelica Workshop 2000.
- Junglas, P. (2016), Causality of System Dynamics Diagrams, SNE Simulation Notes Europe 26/3, 147-154.










| Domain | potential variable | flow variable |
|---|---|---|
| translational mechanics | position: [m] | force: [N] |
| rotational mechanics | angle: [rad] | torque: [Nm] |
| thermofluid streams | thermodynamic state: 1 | mass-flow rate: [kg/s] |
| electrical | voltage potential: [V] | current: [A] |
| Domain | effort | flow |
|---|---|---|
| translational mechanics | force: [N] | velocity: [m/s] |
| rotational mechanics | torque: [Nm] | angular velocity: [rad/s] |
| hydraulics/pneumatics | pressure: [Pa] | Volumetric flow: [m3/s] |
| thermal | Temperature: T [K] | Entropy flow [J/Ks] |
| electrical | voltage: [V] | current: [A] |
| Domain | signal | potential variable | flow variable |
|---|---|---|---|
| trans. mechanics | position: [m] | velocity: [m/s] | force: [N] |
| rot. mechanics | angle: [rad] | ang. velocity: [rad/s] | torque: [Nm] |
| thermofluid str. | thermodynamic state: 1 | inertial pressure [Pa] | mass-flow rate: [kg/s] |
| electrical | ? | ? | ? |
| Component | Symbol | Equation |
|---|---|---|
| Fluid Inertance | ![]() |
|
| Compressible volume | ![]() |
|
| Tank 1 |
] |
|
| Flow resistance 2 | ![]() |
| Thermofluids | Mechanics |
|---|---|
![]() | |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).




