Dear Jean-Philippe,
today I want to send you an example for the maybe not completely satisfying treatment of discontinuities.
The example is a hard-switching boost converter. It includes some self-made models which are more or less close to the Modelica standard models (MSL). The same simulation works flawlessly in Scicoslab.
I would prefer to go on with NSP (and not to migrate to JModelica.org or OpenModelica), since post-processing is much more powerful. Can you please help me?
I suggest, that after a switching event, the BDF algorithm (i.e. the DAE solver) should:
- reduce the order to 1 (=> implicit Euler)
- switch to minimum step width
- ignore the error of the first time step.
I do not know, which DAE solver you use, but the above strategy works satisfying for BDF (and many simulators employ a linear multistep approach).
Thank you very much in advance.
Finest regards,
Lutz