Conference article

A Toolchain for Real-Time Simulation using the OpenModelica Compiler

Niklas Worschech
Bosch Rexroth, Lohr am Main, Germany

Lars Mikelsons
Bosch Rexroth, Lohr am Main, Germany

Download articlehttp://dx.doi.org/10.3384/ecp12076839

Published in: Proceedings of the 9th International MODELICA Conference; September 3-5; 2012; Munich; Germany

Linköping Electronic Conference Proceedings 76:86, p. 839-846

Show more +

Published: 2012-11-19

ISBN: 978-91-7519-826-2

ISSN: 1650-3686 (print), 1650-3740 (online)

Abstract

Nowadays; simulation is the key technology to shorten development times; while increasing the functionality of products. In this context simulation is always used in order to verify characteristics of the product under consideration. In the past simulation was mostly done offline; i.e. not synchronized to real-time. Due to the increased computing power; the relevance of real-time simulation has increased in the last years. Therefore; several simulation environments offer a toolchain for real-time simulation; e.g. the real-time Workshop integrated in Simulink. In this paper such a toolchain (although not yet fully automated) for the OpenModelica Compiler (OMC) is presented using a hydro-mechanical system as an example. Thereby; this paper describes a modular C++ Simulation-Runtime for the OMC including a numerical integration method suitable for real-time simulation as well as modeling details of the example system using Modelica.

Keywords

real-time; simulation; runtime; OpenModelica

References

[1] http://www.allseas.com/uk/19/equipment/pieterschelte.html. website. Accessed: 11/07/2012.

[2] www.scale-rt.com. website. Accessed: 11/07/2012.

[3] A. Alexandrescu. Modern C++ design: generic programming and design patterns applied. Addison-Wesley Professional; 2001.

[4] M. Arnold; B. Burgermeister; and A. Eichberger. Linearly implicit time integration methods in real-time applications: Daes and stiff odes. Multibody System Dynamics; 17(2):99–117; 2007. doi: 10.1007/s11044-007-9036-8.

[5] W. Braun and B. Bachmann. Symbolically derived jacobians using automatic differentiationenhancement of the openmodelica compiler. Modelica Conference; Dresden; 2011.

[6] F. Casella. Open problems and research trends in oo modelling. Technical report; Politecnico di Milano; Dipartimento di Elettonica e Informazione.

[7] F.E. Cellier and E. Kofman. Continuous system simulation. Springer Verlag; 2006.

[8] H. Elmqvist; M. Otter; and F.E. Cellier. Inline integration: A new mixed symbolic/numeric approach for solving differential-algebraic equation systems. 1995. doi: 10.3384/ecp11063495.

[9] T. Ersal; H.K. Fathy; D.G. Rideout; L.S. Louca; and J.L. Stein. A review of proper modeling techniques. Journal of Dynamic Systems; Measurement; and Control; 130:061008; 2008. doi: 10.1115/1.2977484.

[10] P. Fritzson; P. Aronsson; A. Pop; H. Lundvall; K. Nystrom; L. Saldamli; D. Broman; and A. Sandholm. Openmodelica-a free open-source environment for system modeling; simulation; and teaching. In Computer Aided Control System Design; 2006 IEEE International Conference on Control Applications; 2006 IEEE International Symposium on Intelligent Control; 2006 IEEE; pages 1588–1595. IEEE; 2006.

[11] E. Hairer; S.P. Nørsett; and G. Wanner. Solving Ordinary Differential Equations: Stiff and differential-algebraic problems. Springer Series in Computational Mathematics. Springer-Verlag; 1993.

[12] A.C. Hindmarsh and P.N. Brown. Sundials: Suite of nonlinear and differential/algebraic equation solvers. ACM Transactions on Mathematical Software (TOMS); 31(3):363–396; 2005. doi: 10.1145/1089014.1089020.

[13] L. Mikelsons and T. Brandt. Towards a generic vehicle model. Journal of Computational and Nonlinear Dynamics; 7:021013; 2012. doi: 10.1115/1.4005438.

[14] N. Nikitin. Third-order-accurate semi-implicit runge-kutta scheme for incompressible navierstokes equations. International journal for numerical methods in fluids; 51(2):221–233; 2006. doi: 10.1002/fld.1122.

Citations in Crossref