You are on page 1of 2

11/10/22 20:07 E:\UNIV-BBA\2022-2023\COURS\St...\SOLAR.

m 1 of 2

clc
clear all
K = 1.38e-23; %Boltzman constant
q = 1.602e-19; %charge electrone
Iscn =5.09; %nominale SC current
Vocn =0.601; %nominal OC voltage
kv = -0.113; %Temperture voltage constant
ki = 0.0032; %Temperture current constant
Ns = 1;%Nubmre of series cels connected
NOCT=49; %Nominal Operating Cell Temperature
%T = 25+273; %operating temperture
Tn = 25+273; % nominal temperture
Gn = 1000; %nominal irradiance
G = [1000,800,600,400,200,100]; %operating irradiance
Eg = 1.12; %band of gap
a = 1.3; %diode ideality factor
Rs = 0.224; %resitance series
Rp = 400.405; %resistance paralel
%------------Equations----------------------------%
for j=1:5
% equations standard dans les documentations
Vtn = Ns*(K*Tn/q);
Ion = Iscn/((exp(Vocn/(a*Vtn)))-1);
T=Tn+((NOCT-20)/800)*G(j)
Io = Ion*((T/Tn)^3)*exp(((q*Eg/(a*K))*((1/Tn)-(1/T))));
Ipvn = Iscn;
Ipv = (Ipvn +ki*(T-Tn))*(G(j)/Gn);
Vt = Ns*(K*T/q);
dimen = Vocn:-0.01:0;
I = zeros(size(dimen));
i =1;
I(1) = 0;
for V = Vocn:-0.01:0 %calcule du courant entre 2 points 1-circuit ouvert
%**** V=max 2-court circuit V=0.
I_part=Io*(exp((V+(I(i)*Rs))/(Vt*a))-1) - ((V+(Rs*I(i)))/Rp);
I(i)=Ipv-I_part;
V1(i)= V;
P(i) =V*I(i);
i=i+1;
end
V=V1;
figure (1)
if j==1
plot (V,I,'b')
hold on
end
if j==2
plot (V,I,'r')
hold on
end
if j==3
plot (V,I,'y')
hold on
end
if j==4
11/10/22 20:07 E:\UNIV-BBA\2022-2023\COURS\St...\SOLAR.m 2 of 2

plot (V,I,'m')
hold on
end
if j==5
plot (V,I,'c')
hold on
end
axis ([0 0.7 0 6])
xlabel ('Volte [V]')
ylabel ('Courant [A]')
hold on
figure (2)
if j==1
plot (V,P,'b')
hold on
end
if j==2
plot (V,P,'r')
hold on
end
if j==3
plot (V,P,'y')
hold on
end
if j==4
plot (V,P,'m')
hold on
end
if j==5
plot (V,P,'c')
hold on
end
axis ([0 0.7 0 3])
xlabel ('Volte [V]')
ylabel ('Puissance [W]')
hold on
end

You might also like