modelSimpleDiode

Shockley diode equation

Extends from Modelica.Electrical.Analog.Interfaces.OnePort (Component with two electrical pins p and n and current i from p to n).

Information

This is a simple diode model based on the Shockley equation i = Ids*(exp(v/nVt) - 1).

Parameters

TypeNameDefaultDescription
SI.CurrentIds1e-9Diode: saturation current
SI.VoltagenVt2*26e-3Diode: n * voltage equivalent of temperature

Connectors

TypeNameDefaultDescription
PositivePinp (from TwoPin)Positive electrical pin
NegativePinn (from TwoPin)Negative electrical pin

Components

TypeNameDefaultDescription
SI.Voltagev (from TwoPin)Voltage drop of the two pins (= p.v - n.v)
SI.Currenti (from OnePort)Current flowing from pin p to pin n