Changing time step while using SimState

I have a system that requires 1 second of simulation time to initilise. It then is required to simulate for a further 0.1-1.2 seconds. In the first period a time-step of 5us is sufficient, however in the second phase a much shorter time step is required (say 200ps).
It takes too long to simulate the entire simulating with the short time step so I tried running to 1 seconds with the long time step and then using the save SimState and then continuing with the shorter time step. However, this leads to an error when the time step is changed.
If anybody could shed some light on this that would be fantastic. Thank you in advance.

Antworten (1)

Sabin
Sabin am 19 Dez. 2022

0 Stimmen

I would advise to use a variable-step solver in such a situation. Alternatively, in Simscape Electrical there is the option to start simulation from steady-state.

Kategorien

Mehr zu Simscape Electrical finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 16 Mai 2014

Beantwortet:

am 19 Dez. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by