Solver was unable to reduce the step size without violating the minimum step size value of 2.66454E-10 for 5 consecutive times

2 ビュー (過去 30 日間)
I have a Simscape simulation of a PV plant, battery, and electrolyzer. When the electrolyzer operates continuously at 100%, the simulation runs smoothly. However, when I introduce intermittent operation, the simulation encounters an issue when the electrolyzer turns off. The error message:
"Solver was unable to reduce the step size without violating the minimum step size value of 2.66454E-10 for 5 consecutive times at time 75000"
appears repeatedly.
I attempted to increase the number of consecutive minimum step violations, as suggested, but it did not resolve the issue. Notably, when I simulate only the electrolyzer with on/off cycles, the problem does not occur.
  10 件のコメント
Sam Chak
Sam Chak 2025 年 3 月 24 日
I see, I overlooked the Pulse Generator block. If you modify the duty cycle to extend the 'ON' state, what happens?
Juan José
Juan José 2025 年 3 月 24 日
編集済み: Juan José 2025 年 3 月 24 日
I solved the problem creating a smooth pulse, with time to rising and down , as the picture,

サインインしてコメントする。

採用された回答

Sam Chak
Sam Chak 2025 年 3 月 24 日
Good to hear that the custom smooth signal works. The masked subsystem is able to generate the trapezoidal pulse signal.
  2 件のコメント
Juan José
Juan José 2025 年 3 月 24 日
how you use the internal time on the code? without using the clock block?
Sam Chak
Sam Chak 2025 年 3 月 25 日
I forgot to show how the blocks appear under the Masked Subsystem. As you can see, I also used the Clock block.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSources についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by