Diode

electrical.diode

Diode with the Shockley law i = Is (exp(v / (N Vt)) - 1). Above v = 40 N Vt the current continues along its tangent so the exponential cannot overflow.

Ports

NameDomain
pelectrical
nelectrical

Parameters

NameUnitDefaultRangeDescription
IsA1e-140 to ∞Saturation current
N110 to ∞Emission coefficient
VtV0.0258520 to ∞Thermal voltage k T / q, 0.025852 V at 300 K

Variables

NameUnit
vV
iA

Equations

v = p.v - n.v
0 = p.i + n.i
i = p.i
i = Is * (exp(min(v / (N * Vt), 40)) * (1 + max(v / (N * Vt) - 40, 0)) - 1)