Project 1
Aim :- Create the simulink model using the provided flowchart.
Objective :- Create the simulink model using flowchart and input will be power demand.
Output of the model 1. Fuel cell power.
2. Battery Power.
3. FC Operating state.(Running,Standby)
Theory :-
StateFlow Model Explanation,
- To create the stateflow model using the given flowchart,we need to first decide the input and output for the model.
- The input for the model is power demand which we are going to provide using Drive Cycle Source block.
- Drive cycle source block used to provide inputs(like vehicle speed with respect to time) to the model in many,like we can give matlab workspace values as a input to the model or the .xl files or .txt files.
- For the output of the model we are going to use scope block which can gives us output in the form of graph.
- To create the Staeteflow model we first add the chart block in the blank model.
- In the blank chart we first add state block in it and it comes with default transition which is important for the model to work.Default transition work as reference to solve our model.
- Then for first state we name it as a power demand.
- After that we add two more states for the negative power demand and positive power demand
- In the negative power demand we put fuelcell power is equal to zero which shows fuell cell power is in OFF mode.
- For the positive power demand we put fuel cell power is equal to the one which shows fuel cell is in the ON mode.
- After that the states which are connected to the -ve and +ve power state they are further connected to the battery state block where we can turn ON and OFF battery power.
StateFlow Model,
Inside Chart Block,
Output,
In the above graph three output were shown,which are FC power,Battery power,Operating State.
When we run simulation for 1369sec (which is input provided to the Drive cycle source block),then we get the output which shows battery power is getting used as per our conditions.