How to run Simscape PEM Fuel Cell model with discrete fixed-step solver
3 ビュー (過去 30 日間)
古いコメントを表示
Hey MathWorks community!
So far i changed all continuous blocks with their discrete equals but i think the MEA (Membrane Electrode Assembly) block is still a contiuous one. Has anyone any idea how to solve this?
Thanks in advance!
Daniel
0 件のコメント
回答 (1 件)
Pratik
2024 年 1 月 2 日
Hi Daniel,
As per my understanding, you want to simulate the PEM Fuel Cell Simscape model example using discrete fixed-step solver. And to achieve the same have changed all continuous blocks to their discrete equivalent, but Membrane Electrode Assembly block is still continuous.
“FixedStepDiscrete” solver cannot be used with Simscape products because those models will always include continuous states. A possible workaround is to use solvers like “ode1” or “ode2” which permits fixed step simulation of models that include continuous states.
Please refer to the below documentation for more information on how to choose a solver:
Hope this helps!
1 件のコメント
参考
カテゴリ
Help Center および File Exchange で Variable Initialization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!