필터 지우기
필터 지우기

Bidirectional Dynamic Power Load block in Simscape

조회 수: 2 (최근 30일)
Grzegorz Diaczek
Grzegorz Diaczek 2023년 3월 19일
댓글: Grzegorz Diaczek 2023년 3월 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
Sivapriya Srinivasan 2023년 3월 30일
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