Week 8 Challenge
1)UC model:
The ultracpacitor model is made using the soc equation and the current produced by the the ultracapcitor along with the open circuit voltage.

The UC model has two subsystems containing the soc and the current value of the UC.The charge of the capacitor is obtained from the capacitance value.THe capacitance value is divided and integratrated to get the open circuit voltage which is then multiplied by the capacitance value is to get the charge value.

The soc subsystem contains the above blocks.The current and the efficiency are multipliedand the result is divided with the charge and integrated to get the soc value.

The current subsystem contains the above block.The current equation of the ultracpacitorcontains the soc value,maximum voltage and the resistance value of the ultracpacitor.All the parameters are given to the model through the mathlab files.