- Switch to Step input.
- Multiply the Final Value by 0.1 (lower current demand)
- Set Stop Time to 18000 seconds
Does anyone know why I get an error when I run the fuel cell model for about 18000s?
6 ビュー (過去 30 日間)
古いコメントを表示
I dont know how I can fix this error, I changed the max and min step size but error remained the same, also I changed the solver tolerance but nothing happened.
0 件のコメント
回答 (3 件)
Steve Miller
2023 年 12 月 21 日
The error message you encountered is because the test conditions for the fuel cell are not suitable for 18000 seconds. The drive cycle is only defined for 2500 seconds, so increasing the stop time can lead to unexpected system inputs as extrapolation is used beyond 2500 seconds. Simply switching to the other input options (ramp, step) which are well-defined after 2500 seconds will eventually lead to the fuel cell exceeding other physical limits (too much heat, etc.).
If you follow these steps, the simulation will run for 18000 seconds:
--Steve
0 件のコメント
Andreas Goser
2023 年 12 月 11 日
It seems you are leveraging a MathWorks example. Please let us know which release you are using an which operating system, that might be helpful. Other than that, I suppose the example itself runs and then you make modifications and then it terminates? The it would be helpgful to describe the change.
0 件のコメント
Hamidreza
2023 年 12 月 11 日
2 件のコメント
Andreas Goser
2023 年 12 月 11 日
I could reproduce the behaviour by running the example in Simukink Online and just increasing the stop time.
Moving forward, I wonder what your overall goal is. Surely, we could identify the author(s) of the example and ask about the reason for the error or why the example is not supposed to work beyond 2500s, but maybe this is not a good use of everyone's time. Can you elaborate a bit on your overall goal? Are you currently learning to use some of MathWorks products without a specifc project? Or is this example supposed to be the starting point of a thesis?
参考
カテゴリ
Help Center および File Exchange で Foundation and Custom Domains についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!