Bidirectional Dynamic Power Load block in Simscape

2 次查看(过去 30 天)
Hello,
I use a Dynamic Power load as a cell load in my battery model, as a power based profile is available. Recenlty I used a profile which contains either discharge and charge of the battery, but the charging sequence has been cutted by Simscape, as this block enables only discharge. Making profile based on current calculated from equation I=P/U (with a initial value of voltage in first time step) leads to solver instability and invalid results. Can this problem be ommited using any Simscape electrical compoments or any other approach?
Thanks for help.

采纳的回答

Sivapriya Srinivasan
Hi,
It seems like you are facing a problem with the Simscape Dynamic Power Load block, which only allows for discharging of the battery and not charging. In order to accurately model the behavior of the battery during both discharge and charge cycles, you may want to consider using other Simscape Electrical components such as the Simscape Electrical Two-Quadrant Chopper block.
The Simscape Electrical Two-Quadrant Chopper block is a versatile component that can be used to simulate both the charging and discharging of a battery. It allows you to specify the desired voltage and current values for both the charging and discharging cycles, and it can also be used to implement various charging and discharging algorithms.
Alternatively, you can consider creating your own custom Simscape Electrical component using the Simscape Language. This would allow you to create a customized battery model that can accurately simulate the charging and discharging cycles of the battery based on your specific requirements.
If you still want to use the Dynamic Power Load block, you may need to adjust the solver settings in order to prevent instability. This may involve increasing the simulation time step, reducing the maximum step size, or changing the solver algorithm used by Simscape. However, this may result in longer simulation times and less accurate results.
In summary, there are several approaches you can take to accurately model the charging and discharging cycles of a battery in Simscape. The best approach depends on the specific requirements of your simulation and the level of accuracy you need.
For further reference please refer:
Hope this helps!
  1 个评论
Grzegorz Diaczek
Grzegorz Diaczek 2023-3-30
Hi,
Thanks for your respond. I solved this problem with I = P/U, but using Simscape Electrical blocks, and now there is no solver problems. Previously, I tried to use same approach but with Simulink Blocks. Anyway, I will also check out your solutions. Thanks for help.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Electrical Systems 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by