- 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?
5 次查看(过去 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!