@@ -0,0 +1,1629 @@
+#%0A#   Copyright (c) 2015, Scott J Maddox%0A#%0A#   This file is part of Open Band Parameters Device Simulator (OBPDS).%0A#%0A#   OBPDS is free software: you can redistribute it and/or modify%0A#   it under the terms of the GNU Affero General Public License as published%0A#   by the Free Software Foundation, either version 3 of the License, or%0A#   (at your option) any later version.%0A#%0A#   OBPDS is distributed in the hope that it will be useful,%0A#   but WITHOUT ANY WARRANTY; without even the implied warranty of%0A#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A#   GNU Affero General Public License for more details.%0A#%0A#   You should have received a copy of the GNU Affero General Public License%0A#   along with OBPDS.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A#%0A#############################################################################%0A%0Aimport logging; logging.basicConfig()%0A%0A# Make sure we import the local obpds version%0Aimport os%0Aimport sys%0Asys.path.insert(0,%0A    os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')))%0Afrom obpds import *%0A%0A# Layers%0An = Layer(1*um, Material(GaAs, -1e17/cm3))%0Ap = Layer(1*um, Material(GaAs,  1e17/cm3))%0A%0A# Device%0Ad = TwoTerminalDevice(layers=%5Bn, p%5D,%0A                      Fp='right',%0A                      Fn='left')%0A%0A# Simulate and show the equilibrium band profile using the default method.%0Ad.show_equilibrium()%0A%0A# Simulate and show the band profile at 0.5 V forward bias under the zero%0A# current approximation.%0Ad.show_zero_current(V=-0.5)%0A%0A# Simulate and show the band profile at 0.5 V reverse bias under the zero%0A# current approximation.%0Ad.show_zero_current(V=0.5)

add `examples.np_diode`