PV module I-V curve Rs, Rsh, error,
Afficher commentaires plus anciens
Hi, my problem is when ı try to start these algorithm it's working. But when i try to change Rs value like different than 0 it's giving error.
"Error using plot. Non-numeric data is not supported in 'Line'"
I need to change value of Rs(manual), and I need to get I-V graph...
Thanks for helping
here is my code;
syms Vt Rp Rpmin Io Ipv V I Rp1 Pmax P Rs
Pmax=200.143;
Imp=7.61;
Vmp=26.3;
Iscn=8.21;
Vocn=32.9;
Ns=54;
q=1.60217646*(10^(-19));
K=1.3806503*(10^(-23));
ki=0.0032;
kv=-0.1230;
Tnom=298.15;
Gnom=1000;
a=1.3;
Vt=K*Tnom*Ns/q;
% for T G calculate Io , for Rs=0 Rpm,n
G=1000;
T=298.15;
Io=(Iscn+ki*(T-Tnom))/(exp((Vocn+kv*(T-Tnom))/(a*Vt))-1)
Rpmin= (Vmp/(Iscn-Imp))-((Vocn-Vmp)/Imp)
Rs=0;
Rp=Rpmin;
Ipvn= ((Rp+Rs)/Rp)*Iscn
Ipv=(Ipvn+ki*(T-Tnom))*(G/Gnom)
Rp1= (Vmp*(Vmp+Imp*Rs))/(Vmp*Ipv-Vmp*Io*exp(((Vmp+Imp*Rs)*q)/(Ns*a*K*T))+Vmp*Io-Pmax)
V=0:0.1:32.9;
I=Ipv-Io*exp((V+I*Rs)/(a*Vt))-((V+I*Rs)/Rp1)
plot(V,I)
Réponse acceptée
Plus de réponses (3)
Walter Roberson
le 30 Juin 2017
syms Vt Rp Rpmin Io Ipv V I Rp1 Pmax P Rs
So I starts as a symbolic variable.
I=Ipv-Io*exp((V+I*Rs)/(a*Vt))-((V+I*Rs)/Rp1)
When rs is 0 then all occurrences of the symbolic variable I are multiplied by 0 so the symbolic variable drops out of the equation. When rs is not 0 then the symbolic variable I stays in the equation giving a result that involves the symbolic variable I. Confusingly the result is then written to I.
When I is then used in the plot() it involves the symbolic variable I. That cannot be be plotted.
Question: why are you creating so many variables as symbolic and then overwriting them with numeric values? That confuses you and confuses us.
1 commentaire
Emircan Han
le 30 Juin 2017
Modifié(e) : Walter Roberson
le 30 Juin 2017
Wissal EL FADIL
le 3 Juil 2017
1 vote
I think you should solve the output current equation using the Newton Raphson method and then you can proceed with the code. I am acctually working on the same thing and I am still struggling to find the solution of the current equation.
2 commentaires
Emircan Han
le 4 Juil 2017
Zia
le 6 Juin 2024
dear Wisaal . have you find the solution for this? i mean NRM..? i am working on the same topic, lets get connected .plz
Ibrahim Abouemira
le 19 Mai 2019
0 votes
Hello,
Here's a suggested code
Catégories
En savoir plus sur Sources dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
