Using Simulink S-functions with finite difference method applied for heat exchangers
Štěpán Ožana, Martin Pieš · International Conference on Systems · 2009
This paper deals with application of finite difference method for solving a general set of partial differential equations in Matlab & Simulink environment. Particularly it describes use of Simulink S-functions which make it possible to set-up the most complex systems with complicated dynamics. There's a comparison of M and C S-functions which are two main approaches when building user-defined blocks in Simulink, regarding the performance and efficiency of the simulation for M and C versions of the codes and possibility to perform a real-time simulation. As an example, these approaches are shown on solving the dynamics of a concurrent and a counter-flow heat exchanger.