Need help to solve and plot implicit diode equation

조회 수: 16 (최근 30일)
Abhi
Abhi 2014년 6월 16일
답변: Han 2022년 11월 17일
Hey everyone!
I need some help trying to solve the following equation for I, given different values of V.
I = Il - Io * exp(q * (V + IR) / (n * k * T)) - (V + I*R) / S
This is the equation of a diode with a constant photo-current (Il) and injection current moving through it. The circuit has a series and a shunt resistance.
The trouble with this equation is that current depends on the voltage drop across components (V is the applied forward bias) and to evaluate that I need to use the relation V = IR (Ohm's Law).
This makes it a recursive equation of sorts. Can someone please help me understand how to plot I as a function of V? I'm new to this so it is possible that the solution is straightforward.
Thanks! :D

답변 (4개)

Mischa Kim
Mischa Kim 2014년 6월 16일
편집: Mischa Kim 2014년 6월 17일
Abhi, turn this into a zero-finding problem and use fsolve to get the solution.
Something like
V = 0:0.1:10;
% define function you want to solve for: fun = 0
fun = @(I) Il - Io * exp((V + I*R)/(n*kT_q)) - (V + I*R)/S - I;
% get solution for all V
I_sol = fsolve(fun, Il*ones(size(V)));
plot(V,I_sol)
  댓글 수: 3
Tanmay
Tanmay 2014년 8월 27일
Hi Rosemarie, I am also working on similar problem as yours. I have some doubt in building the equations for infinite diode ladder equation. Could you please, show me your circuit ?
Rosemarie
Rosemarie 2014년 8월 27일
Hi Tanmay. I used the single diode circuit for my solar cell J-V data fitting just like the one on this link:

댓글을 달려면 로그인하십시오.


Roger Stafford
Roger Stafford 2014년 6월 17일
An explicit solution for I as a function of V can be found using matlab's 'solve'. The solution involves the 'lambertw' function.
  댓글 수: 1
lloyd mukunza
lloyd mukunza 2014년 9월 20일
everytime I try to use the solve fuction it gives [sysm empty] and says the explicit solution can not be found. I noticed the moment I introduce the + in the exp component that's when this error occurs. so I have tried this simple equation to solve for x: take for example x = exp(x+y) and try to solve for x using
syms x y
solve('x = exp(x+y)',x)
it gives
[sym empty].
How then do I solve for x in this simple equation.

댓글을 달려면 로그인하십시오.


Roger Stafford
Roger Stafford 2014년 9월 21일
@Abhi. The explicit solution for I in the equation
Il-Io+exp(q*(V+I*R)/(n*k*T))-(V+I*R)/S = I
which I obtained using my (ancient) 'solve' function is:
I = ((Il-Io)*S-V)/(R+S) - ...
n*k*T/q/R*lambertw(-exp(S*q*(V+R*(Il-Io))/n/k/T/(R+S))*S*q*R/n/k/T/(R+S))
The 'lambertw' function in this should be a part of your Symbolic Toolbox or MuPad. Note that for some values of its argument there are two possible real answers. The function provides a flag for selecting which of these answers (which "branch") you wish to use.
  댓글 수: 2
lloyd mukunza
lloyd mukunza 2014년 9월 23일
Abhi can you explain to me how you used the solve function. help me with the code. I have tried it som many times but I get [syms empty]
lozkane
lozkane 2016년 9월 26일
Roger, I am interested in the explicit Lambert solution. When I test this, however, I find the solution for the Lambert part of the equation fails with any voltage value above ~ 1. This appears to be the case regardless of which branch is used. I am testing with a module (Munchen MSP290AS-36.EU) at STC ratings. Can you offer any further information to assist in debugging this?

댓글을 달려면 로그인하십시오.


Han
Han 2022년 11월 17일
current-voltage and capacitance-voltage characteristics of Au/n-GaAs and Au/GaN/n-GaAs Schottky diodes in wide temperature rang (Need solve and plot diod equation - MATLAB ANSWERES)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by