In [1]:
%matplotlib inline
from ipywidgets import interactive, fixed
from obpds import *

layers = [
    Layer(1*um, GaAs, -1e17/cm3), # n-type layer
    Layer(1*um, GaAs, 1e17/cm3),  # p-type layer
    ]

d = TwoTerminalDevice(layers=layers,
                      Fp='right',
                      Fn='left')

In [2]:
d.show_zero_current(V=0)



In [3]:
interactive(d.show_zero_current, V=(-1,10), T=fixed(300), N=fixed(1000), approx=fixed('kane'))