Implementation of comsol in simuLink S-functions, revisited
van Awm Jos Schijndel · TU/e Research Portal · 2014
Comsol has standard facilities to export models to SimuLink. Normally, the standard export works well if the solvers, available in SimuLink, can handle the problem. However, if a model in Comsol needs special solvers, for example airflow or other non-linear problems, the standard export to SimuLink is often not suitable, because the standard solvers of SimuLink cannot handle such a problem efficiently. This can cause long simulation duration times and even leads to no solution at all. The paper presents a possible solution to this problem by implementing Comsol code in the discrete section of a SimuLink S-Function The advantage of this approach is that the special solvers of Comsol can be used in the SimuLink environment. This can lead to significant improvement of the simulation duration time.