how to run the matlab simulink to charge the battery for long hour
4 次查看(过去 30 天)
显示 更早的评论
i have to charge the battery for 4 hours, is it possible to run the simulation in matlab for such a long hour
1 个评论
Frederico Marc
2016-11-14
编辑:Frederico Marc
2016-11-14
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.
回答(1 个)
Grégory SEABRA
2016-11-14
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 个评论
社区
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!