Project 1
The logic which is required in this is that if the power demand from the vehicle is less than the minimum FC power than the FC must go on standby and the power should be supplied from the battery storage system and if the power demand is greater than the min FC power than the FC should be used and if the power demand of vehicle is more than the max power of FC than the battery should supply the power.
The state flow chart is been developed for this as shown below,
operating region of FC is 10 to 100

Constant block is used as the input to give the power demand required by the vehicle, the simulation is been run for 10 sec and the output such as FC power, battery power and FC status is observed.
Output
