Simulink Model Description
Simulink Model Description
% figure(2)
% plot(V,I,'LineWidth',2,'Color','k')
% axis([0 35 0 10])
% xlabel('Volatge of Solar cell','FontSize',18)
% ylabel('Current of solar cell','FontSize',18)
% title('I-V Characterisics of Solar Panel','FontSize',22)
figure(1)
% [ax,h1,h2] = plotyy(V,I,V,P);
% % Good choice with old version command
% set(ax(1),'YLim',[0 210])
% set(ax(2),'YLim',[0 10])
% set(ax(1),'YTick',[0:10:210])
% set(ax(2),'YTick',[0:0.5:10])
% grid on
%%%%%%%%%%%%%%%%%%%%%%%%%%%
% or wirh new version
yyaxis left
plot(V,I,'LineWidth',2,'Color','b') % Plot into left axes
ylim([0 10]);
yticks([0:0.5:10]);
xlabel('Volatge of Solar cell','FontSize',18)
ylabel('Current of solar cell','FontSize',18)
title('Characterisics of Solar Panel','FontSize',22)
yyaxis right
plot(V,P,'LineWidth',2,'Color','r') % Plot into right axes
ylim([0 210]);
yticks([0:10:210]);
ylabel('Power of solar cell','FontSize',18)
legend('I-V curve','P-V curve','Location','northwest')
grid on
hold on
% Do analysis using Matlab on the data
[P_Max indexMax]=max(P);
vMax=V(indexMax);
plot(vMax,P_Max,'rx','LineWidth',2,'MarkerSize',14)
xx=[vMax vMax];
yy=[P_Max 0];
line(xx,yy,'Color','blue','LineStyle','--');
text(vMax+1,P_Max,'MPP', 'FontSize', 20)
legend('I-V curve','P-V curve','Location','northwest')
Here it is seen that two X-Y graphs are used to get plot of I-V and P-V curve. In both cases, voltage, V is placed at
x-axis , which is on top of two inputs to X-Y graphs. The result are fully graphically controlled to make them
printable format.
However, from the X-Y graph, we can also get X-Y plots. But they cannot be used in research paper.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Matlab_Simulink_interaction1.slx
Program:
Theta0=-0*pi/180;
ThetaDot0=0;
% Create an input called 'simT' which will be used as input of
simlink
% model
t_in = linspace(0, tFinal, 100)';
T_in=zeros(size(t_in));
for k = 1:length(t_in)
if(t_in(k)<10)
T_in(k)=t_in(k);
else
T_in(k)=sin(t_in(k));
end
end
figure
subplot(2,1,1)
hold on
plot(t,Theta)
plot(tMax,ThetaMax,'rx','LineWidth',2,'MarkerSize',14)
xlabel('t (seeconds)')
ylabel('\theta(rad)')
grid on
title('Data generated by the simulink model')
legend('\theta','Max(\theta)')
subplot(2,1,2)
plot(t,ThetaDot)
xlabel('t (seeconds)')
ylabel('d\theta/dt(rad/s)')
grid on
-0.5
-1
0 5 10 15 20 25 30 35 40 45
t (seeconds)
1
d /dt(rad/s)
-1
-2
0 5 10 15 20 25 30 35 40 45
t (seeconds)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Simulation Procedure:
First of all, simulate without having resistance as it is given open circuit voltage V OC and short circuit
current, ISC .
Simulate 1 sec as well.
The display shows VOC = 0.6 V
Now get short circuit current.
Short ground to upper point. And simulate for 1 sec
ISC displays 7.34A.
Now give normal connection through resistanec Rsh =1 ohm. This is load resistance.
V = 0.5967 volt and I = 0.5967A
Increase R =1000 ohms, V =0.6 and I = 0.0006 A
PV Array:
As we have seen solar cell takes very small amount of current. So we need a combination of them in order
to get higher value. P-V array is nothing but series or parallel combination of solar cells. Depending on the
voltage and current requirements, we connect solar cells either in series or parallel.
For example: one solar cell has V OC = 0.6 volt and I SC = 6 A(set it). If we connect 3 cells in series, at the
output terminals, VOC = 3*0.6 = 1.8 V and the short circuit current, I SC will remain same. Now it becomes a P-
V mosule. It is an example of one P-V module of 0.6V and 6A.
One module picuture.
We can have
1. Series combination
2. Parallel combination
3. Series parallel combination.
Depending on the requirement.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
yyaxis left
plot(V,I,'LineWidth',2,'Color','b') % Plot into left axes
ylim([0 8]);
yticks([0:0.5:8]);
xlabel('Volatge of single Solar cell','FontSize',18)
ylabel('Current of single solar cell','FontSize',18)
title('Characterisics of single Solar Cell','FontSize',22)
I-V curve