Can I cange the step size from fixed to variable after a certain simulation time?

2 views (last 30 days)
Hi,
I want to simulate a inverter with n-Channel MOSFETs. Since the turn on / turn off time is realy short I have to use a very short step time. At the moment I use variable step time.
What I want to do is to use a (bigger) fixed step time at the beginning where my controller is in transient state till it is in a steady state because this would otherwise take a very long time. When everything is in steady state I want to change the step size to variable step size or to a small step size so I can simulate the turn on and turn off time as well.
Is that possible?

Answers (1)

Joel Van Sickel
Joel Van Sickel on 22 Dec 2021
Hello Annette,
unfortunately, there is no way to do this. In general, it's best to only simulate a few cycles with the n-channel mosfets. You use this to make sure your drives are working correctly, you know the correct dead-time, etc. Once that is good, switch to using piecewise linear models, which will simulate much faster as they leave out the turn on turn off dynamics for long simulations where you are usually looking a system level/control behavior.

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!