Project 2
1)Fuel cell:
The fuel cell model is made in the simulink blocks to show the hydrogen consumption of the fuel cell and its performance.

The fuel cell stack block is used to demonstrate the working.The sine wave input is given to the fuel cell.The current from the cell is take out and the hydrogen consumption is calculated using the fcn block by entering the necessary formula.The parameters needed for the calculation are given through the consant blocks.

The hydrogen consumption follows the sine wave pattern with the lower amplitude.When the amplitude of the sine wave is increased the hydrogen consumption remains the same pattern with some higher frequency values.