How to speed up Simscape Electrical + Thermal simulation?

Hi everyone,
I’m trying to simulate a detailed DAB converter model on MATLAB simulink using simscape electrical components. I got the reference design from the mathworks page. I changed the component parameters based on my design and i also imported mosfet and diode datasheet values onto the ideal mosfet switches. Till now the simulation was running smoothly. Since i wanted to see a more realistic efficiency value, i turned on the thermal port, after this the simulation started to lag.
The simulation currently takes more than 5 mins to run for 0.5 seconds. I tried playing with different solvers, the best one i could find was ode23t. I also tried to match the relative tolerance and absolute tolerance. Tried playing with max step size as well (multiples of 1/fsw). One other thing i tried was enabling minimal zero crossing impact integration in the configuration parameters. I also commented out all the scopes and displays and instead used the log signal option. All this did help speed the simulation a little bit, but not enough.
I ran the solver profiler to identify the underlying issue, it gives a lot of zero crossing erros, like there’s one zero crossing per switching cycle per switch. I don’t see an option to turn the ZC detection off on the mosfet model. Then there’s ZOH resets in the gate driver signals, I’m not sure how to fix this issue. One other major issue is the integrator block in my gate singal logic which is slowing down my simulation a lot. All the other components are in discrete domain so this continous block integrator is the real culprit here i believe. I tried using a discrete integrator block, but since it doesn’t have a wrap state option I wasn’t getting the right input. I also tried generating sawtooth waveforms using the repeating sequence block but even this was giving the same problem since it has a continous domain clock when looked under the mask.
I want to add more components to the simulation and make a detailed heatsink model, but since the simulation is lagging so much I can’t do much. Could you take a look at my simulation file and tell me how i can optimize the model and how to make it faster? Also how do i find the best tolerance value for my configuration setting?
Thank you so much for the help!Hi everyone,
I’m trying to simulate a detailed DAB converter model on MATLAB simulink using simscape electrical components. I got the reference design from the mathworks page. I changed the component parameters based on my design and i also imported mosfet and diode datasheet values onto the ideal mosfet switches. Till now the simulation was running smoothly. Since i wanted to see a more realistic efficiency value, i turned on the thermal port, after this the simulation started to lag.
The simulation currently takes more than 5 mins to run for 0.5 seconds. I tried playing with different solvers, the best one i could find was ode23t. I also tried to match the relative tolerance and absolute tolerance. Tried playing with max step size as well (multiples of 1/fsw). One other thing i tried was enabling minimal zero crossing impact integration in the configuration parameters. I also commented out all the scopes and displays and instead used the log signal option. All this did help speed the simulation a little bit, but not enough.
I ran the solver profiler to identify the underlying issue, it gives a lot of zero crossing erros, like there’s one zero crossing per switching cycle per switch. I don’t see an option to turn the ZC detection off on the mosfet model. Then there’s ZOH resets in the gate driver signals, I’m not sure how to fix this issue. One other major issue is the integrator block in my gate singal logic which is slowing down my simulation a lot. All the other components are in discrete domain so this continous block integrator is the real culprit here i believe. I tried using a discrete integrator block, but since it doesn’t have a wrap state option I wasn’t getting the right input. I also tried generating sawtooth waveforms using the repeating sequence block but even this was giving the same problem since it has a continous domain clock when looked under the mask.
I want to add more components to the simulation and make a detailed heatsink model, but since the simulation is lagging so much I can’t do much. Could you take a look at my simulation file and tell me how i can optimize the model and how to make it faster? Also how do i find the best tolerance value for my configuration setting?
Thank you so much for the help! Hi everyone,
I’m trying to simulate a detailed DAB converter model on MATLAB simulink using simscape electrical components. I got the reference design from the mathworks page. I changed the component parameters based on my design and i also imported mosfet and diode datasheet values onto the ideal mosfet switches. Till now the simulation was running smoothly. Since i wanted to see a more realistic efficiency value, i turned on the thermal port, after this the simulation started to lag.
The simulation currently takes more than 5 mins to run for 0.5 seconds. I tried playing with different solvers, the best one i could find was ode23t. I also tried to match the relative tolerance and absolute tolerance. Tried playing with max step size as well (multiples of 1/fsw). One other thing i tried was enabling minimal zero crossing impact integration in the configuration parameters. I also commented out all the scopes and displays and instead used the log signal option. All this did help speed the simulation a little bit, but not enough.
I ran the solver profiler to identify the underlying issue, it gives a lot of zero crossing erros, like there’s one zero crossing per switching cycle per switch. I don’t see an option to turn the ZC detection off on the mosfet model. Then there’s ZOH resets in the gate driver signals, I’m not sure how to fix this issue. One other major issue is the integrator block in my gate singal logic which is slowing down my simulation a lot. All the other components are in discrete domain so this continous block integrator is the real culprit here i believe. I tried using a discrete integrator block, but since it doesn’t have a wrap state option I wasn’t getting the right input. I also tried generating sawtooth waveforms using the repeating sequence block but even this was giving the same problem since it has a continous domain clock when looked under the mask.
I want to add more components to the simulation and make a detailed heatsink model, but since the simulation is lagging so much I can’t do much. Could you take a look at my simulation file and tell me how i can optimize the model and how to make it faster? Also how do i find the best tolerance value for my configuration setting?
Thank you so much for the help! simscape, converter, optimization, dualactivebridge MATLAB Answers — New Questions

​

Leave a Reply

Your email address will not be published. Required fields are marked *