Why do I get Fuel Cell stack - hydrogen partial pressure function calculation error?
12 views (last 30 days)
Show older comments
I have been trying to simulate a system which has both fuel cell and a lithium ion battery to a resistive load. I have used bi directional converter for the battery and a boost converter for the fuel cell. Both the sources have a voltage of 24V which can supply 48V to the load But there is this error of a function in the fuel cell stack which calculates the partial pressure of hydrogen which i am unable to solve for a few days. I have attached the images of the system, the error and the image of the function. Kindly pinpoint the source and the methodology to solve the error.
Thank you




0 Comments
Answers (1)
Sabin
on 5 Aug 2025
Without the model we can not give a definitive answer. However, this points to a problem with the parameterization. Probably the fuel flow rate is too small which will make the internally calculated fuel utilization greater than 1. This then trigger the error. Revise the parameterization and units.
Since R2024b, if, in the Signal Variation settings, you clear the Fuel flow rate [FuelFr(Ipm)] and Air flow rate [AirFr(Ipm)] parameters, the block now obtains the air flow rate directly from the value of the Nominal Air flow rate (Ipm) parameter and calculates the fuel flow rate by rearranging the equation for hydrogen utilization by making flow rate the subject, based on the nominal conditions.
0 Comments
See Also
Categories
Find more on Choose and Parameterize Blocks 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!