Project 1
Model


Working of model
As soon as IGNITION Switch is turned ON, the initial state is active and allows the transition to be happen inside chart.
The other input i.e power demand profile has a following nature,

According to the power demand profile the transition between states will take place.
Power flow logic here implements the logic. This logic if said theoritically simply means that fuel cell will supply power to the motor when the power demand is >=30 and 80<=. Battery has its role when the power demand is 30< and when the power demand is >=80 where battery and FC both supplies the power to the motor.
Output

We see that the power demand and our logic, our model performed as per logic.