Clear Filters
Clear Filters

DC-DC Convertor block Causing error in Simulation. Is it Set up Correctly?

4 views (last 30 days)
My simulation dipicts a mechanical system which powers a generator to in turn charge a battery. I need the DC-DC convertor to step down the voltage from the 36V generator to the 24V battery. However when I add it into the system an error occurs. I think it could be to do with the solver set up.

Answers (1)

Joel Van Sickel
Joel Van Sickel on 27 Mar 2024
A few things, don't set your minimul step size. (change it back to auto) Use the DAESSC solver. set both of your tolerance to 1e-3, 2 is far too large. Set your zero crossing algorithm to not be adaptive. Change number of consecutive minimum steps to 2. Move your electrical reference from the positive terminal of the machine to the negative (this shouldn't matter, as that dc-dc converter should be acting as if it's isolated, but just in case, it would be good to do). Also, your diode is preventing the battery from driving the motor (it's facing the wrong way)
If that doesn't help, share your model instead of screen shots, and watch this video:

Community Treasure Hunt

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

Start Hunting!