- 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 views (last 30 days)
Show older comments
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 Comments
Answers (3)
Steve Miller
on 21 Dec 2023
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 Comments
Andreas Goser
on 11 Dec 2023
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 Comments
Hamidreza
on 11 Dec 2023
2 Comments
Andreas Goser
on 11 Dec 2023
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?
See Also
Categories
Find more on Foundation and Custom Domains in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!