Green hydrogen PEM fuel cell model problem
Show older comments
Dear collegues,
I am facing this error while i am simulating the PEM fuel cell model as a part of a microgrid in the SIMULINK. How cam i resolve it ??
Thanks in advance
An error occurred while running the simulation and the simulation was terminated
Caused by:
- ['Orabi_new_model/Solver Configuration']: At time 0.545853, one or more assertions are triggered. See causes for specific information.
- Cannot remove trace gas when trace gas mass fraction of moist air volume is zero. The assertion comes from: Block path: Orabi_new_model/Cathode Gas Channels/Pipe (MA)1Assert location: o In between line: 706, column: 5 and line: 706, column: 11 in file: C:\Program Files\MATLAB\R2022b\toolbox\physmod\simscape\library\m\+foundation\+moist_air\+elements\pipe.ssc
Answers (1)
Yifeng Tang
on 12 May 2023
Moved: Sabin
on 2 Jan 2026
0 votes
Without seeing the model, I'll have to guess:
1) you are not supplying enough air to the cathode. The current will dictate the O2 (trace gas on the cathode side) consumption rate and once it's all consumed, you will get this error.
2) your initial condition didn't have enough O2 in there. Maybe the supply will soon pick up, but the amount of O2 initially wasn't enough so you run out early.
Could you please check how you specify or control the air flow into the cathode channel, and whether the initial conditions in the channel make sense?
5 Comments
Ahmed Al Orabi
on 26 May 2023
Moved: Sabin
on 2 Jan 2026
Ahmed Al Orabi
on 26 May 2023
Moved: Sabin
on 2 Jan 2026
Ahmed Al Orabi
on 26 May 2023
Moved: Sabin
on 2 Jan 2026
Bachir Alali
on 16 Jun 2023
Moved: Sabin
on 2 Jan 2026
i am using the some of simulink examples and adjusting the parameters to suit my case study but i still receiving that error.
i have the Same One , any one Know the Sultion ?
Yifeng Tang
on 12 Jul 2023
Moved: Sabin
on 2 Jan 2026
@Ahmed Al Orabi most likely parametrization issue. If you could share the model, I can help take a look.
Categories
Find more on Gas Models 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!