how to run the matlab simulink to charge the battery for long hour
4 views (last 30 days)
Show older comments
i have to charge the battery for 4 hours, is it possible to run the simulation in matlab for such a long hour
1 Comment
Frederico Marc
on 14 Nov 2016
Edited: Frederico Marc
on 14 Nov 2016
Hello, If you can allow time step to be 1s, for example, the answer is yes, it is possible. But if your time step must be much more shorter, I think things get complicated. It would take a very long time to complete simulation.
I've been wondering a similar question. The time step needed in my model is 3.91e-7s. Simulating many hours would be impractical. I'd like to scale 1 hour in some seconds of simulation, but for while I don't know how. I tried to change battery capacity but I got bad results.
If anyone has some ideas to overcome this, I would appreciate. Thanks.
Answers (1)
Grégory SEABRA
on 14 Nov 2016
Hi,
are you using a power conveter? If yes, you might want to use an average model for a start, so you can get rid of the switching phenomena which are not relevant in your simulation.
Indeed, when simulating such a long time, you will not be interested in this type of dynamics, as you are willing to observe long-time behavior.
Furthermore, if your simulation in centered around the battery itself, you could also use a basic DC source. The system's stability (converter + battery) is to be tackled with short-time simulations.
It is always a trade-off between speed and accuracy, and thus the question to ask yourself is "What is really relevant to include in my simulations?"
Regards,
Greg
0 Comments
Communities
More Answers in the Power Electronics Control
See Also
Categories
Find more on Sources in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!