Green hydrogen PEM fuel cell model problem

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:

Answers (1)

Yifeng Tang
Yifeng Tang on 12 May 2023
Moved: Sabin on 2 Jan 2026
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

I am trying to simulate the green hydrogen production microgrid but i am receiving that error
  • ['Orabi_final/Solver Configuration']: Initial conditions solve failed to converge.
  • Nonlinear solver to advance time one step failed to converge, residual norm too large.
Could you help ?
i am using the some of simulink examples and adjusting the parameters to suit my case study but i still receiving that error
Bachir Alali
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
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.

Sign in to comment.

Products

Release

R2022b

Asked:

on 11 May 2023

Moved:

on 2 Jan 2026

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!