Is there a way to reset the simscape battery model during simulation?

3 ビュー (過去 30 日間)
Maximilian Winkelmann
Maximilian Winkelmann 2022 年 2 月 19 日
回答済み: Javier Gazzarri 2023 年 1 月 24 日
I am simulating charging and discharging cycles of the a battery using the simscape battery model. It is working fine until at some point of the simulation the SOC starts jumping to 0/100. This has to be an error, because the current in/out the battery is by far not high enough to cause such sharp edges in SOC. Further the used simulation only allows charging/discharging under 99% or above 1% SOC.
I need a way to reset the battery model as soon as the jumping occurs during the simulation. I tried separating the battery model in a resetable subsystem, but this causes errors since the gotos/froms used in the battery model cant cross this border. In the chart below the jumping SOC (+ magnification) is shown. The simulation stops due to " Nonlinear iteration is not converging with step size reduced to hmin (1.97268E-08) at time 5.55261E+06.".

回答 (1 件)

Javier Gazzarri
Javier Gazzarri 2023 年 1 月 24 日
Hello Maximilian,
Would you kindly provide the current profile you are using? SOC is calculated integrating current and dividing it by capacity. I want to check the current profile shape close to the SOC drop.
Thanks,
Javier

カテゴリ

Help Center および File ExchangeBattery Pack Modeling についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by