Using Dymola generated C-Code in specialized Client / Server Simulation Environments
Clemens Schlegel, Reinhard Finsterwalder, Hans Olsson, Dynasim Ab · 2005
The modeling and simulation tool Dymola can generate C-code from a Modelica simulation model. We investigate the usage of that code in different client / server environments with the simulation running on a server and a simulation GUI running on a client. The Dymola generated model code (server) has been run under Windows 2000, Linux and the realtime operating system QNX. Clients have been implemented in Matlab/Windows 2000, C++/MFC under Windows 2000 and Windows Mobile, and Java/ AWT. We used DDE and TCP/IP as communication protocols. As a demo simulation a model of a cold rolling mill with 462 unknowns and 33 states has been used. A multithreaded, shared memory buffer mechanism for the communication turns out to be a good approach for distributed simulation setups including realtime simulators.