Single-Diode Model

A diagram of the single-diode circuit model of a solar cell:

\[I = I_L - I_0 \left[ \exp \left( \frac{V + I R_s}{n V_T}\right) \right] - \frac{V + I R_s}{R_{sh}}\]
import schemdraw
import schemdraw.elements as elm
d = schemdraw.Drawing(unit=3)
I1 = elm.SourceI().label('$I_L$').up()
d += I1
d += elm.LineDot().right()
d.push()
D1 = elm.Diode().down()
d += D1
d += elm.lines.CurrentLabelInline().at(D1).down().label('$I_D$')
d += elm.Dot()
d += elm.Line().left()
d.pop()
d += elm.LineDot().right()
d.push()
Rsh = elm.Resistor().label('$R_{sh}$').down()
d += Rsh
d += elm.lines.CurrentLabelInline().at(Rsh).down().label('$I_{sh}$')
d += elm.Dot()
d += elm.Line().left()
d.pop()
Rs = elm.Resistor().label('$R_s$').right()
d += Rs
d += elm.lines.CurrentLabelInline(direction='out', start=False).at(Rs).right().label('$I$')
d += elm.Dot(open=True)
d += elm.Gap().down().toy(I1.start).label(['+', '$V$', '–'])
d += elm.Dot(open=True)
d += elm.LineDot().left()

d.draw()
single diode model

Out:

<schemdraw.backends.mpl.Figure object at 0x7fd3b58f4880>

Total running time of the script: ( 0 minutes 1.176 seconds)

Gallery generated by Sphinx-Gallery