PyAMS  (the software under revision)

Diode


Simple diode

Information

The diode is nonlinear element and semiconductor device, can be represented by its equivalent nonlinear current source Id dependent by the voltage in the nodes and it is given by:

Parameters

NameDefaultDescription
Iss1e.0-12Saturation current [A]
Vt0.025Voltage equivalent of temperature (kT/qn) [V]

PyAMS definition

from PyAMS import Signal
from PyAMS import explim

#Simple diode
class Diode:
     def __init__(self, a, b):
         self.Vd = Signal('in','voltage',a,b)
         self.Id = Signal('out','current',a,b)
         self.Iss=1.0e-12                 #Saturation current
         self.Vt=0.025                    #Voltage equivalent of temperature (kT/qn)
     def analog(self):
             self.Id+=self.Iss*(explim(self.Vd/self.Vt)-1)

Documentation generated by PyAMS