Bidirectional Dynamic Power Load block in Simscape

6 views (last 30 days)
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.

Accepted Answer

Sivapriya Srinivasan
Sivapriya Srinivasan on 30 Mar 2023
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 Comment
Grzegorz Diaczek
Grzegorz Diaczek on 30 Mar 2023
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.

Sign in to comment.

More Answers (0)

Categories

Find more on Electrical Systems 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!