how can i find li-ion battery charging and discharging?
    8 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
Hello dear friends,
could you please hepl me to write 2 equations in matlab?
how can i modelling li-ion battery charging and discharging in matlab? how can i find SOC of the battery with below eq.
the eq. 
Pb(t)= (Pb(t-1)*(1-sigma))+(Ppv(t)-(PL(t)/nu_i))*nu_b;   %Charging
Pb(t)= (Pb(t-1)*(1-sigma))-((Ppv(t)/nu_i)-PL(t));            %Discharging
Pb(t-1)=    3600          %SOC at the begining  Wh
%Ppv(t) =                %Enegy of PV wh
%PL(t) =  load             %Load Demand 
sigma =    2                 %Self_Discharge factor
nu_b =  0.95              %Battery effeciency
nu_i =  0.9               %inverter effeciency
i also uploaded matlab file
0 comentarios
Respuestas (2)
  Ahmad Wahid
 el 9 de Feb. de 2020
        As far i know your PV data and demand load should be for a specific time duration( i.e 24 hours) .
for t=1:24:
 Pb(t)= (Pb(t-1)*(1-sigma))+(Ppv(t)-(PL(t)/nu_i))*nu_b;   %Charging
Pb(t)= (Pb(t-1)*(1-sigma))-((Ppv(t)/nu_i)-PL(t));            %Discharging
end
this will solve both equations for 24 hours
0 comentarios
  Ahmad Wahid
 el 9 de Feb. de 2020
        brother if you have find a way to solve it please provide me. i will be very thankful 
0 comentarios
Ver también
Categorías
				Más información sobre Sources en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

