PN Junction Simulator in ATLAS

This post will outline a program for ATLAS that can simulate a pn junction. The mesh definition and structure between the anode and cathode will be defined by the user. The simulator plots both an unbiased and biased pn junction.

go atlas

Title PN JUNCTION SIMULATOR

#Define the mesh

mesh auto
x.m l = -2 Spac=0.1
x.m l = -1 Spac=0.05
x.m l = 1 Spac=0.05
x.m l = 2 Spac =0.1

#TOP TO BOTTOM – Structure Specification
region num=1 bottom thick = 0.5 material = GaAs NY = 20 acceptor = 1e17
region num=2 bottom thick = 0.5 material = GaAs NY = 20 donor = 1e17

#Electrode specification
elec num=1 name=anode x.min=-1.0 x.max=1.0 top
elec num=2 name=cathode x.min=-1.0 x.max=1.0 bottom
#Gate Metal Work Function
contact num=2 work=4.77
models region=1 print conmob fldmob srh optr
models region=2 srh optr
material region=2

#SOLVE AND PLOT
solve init outf=diode_mb1.str master
output con.band val.band
tonyplot diode_mb1.str

method newton autonr trap maxtrap=6 climit=1e-6
solve vanode = 2.5 name=anode
save outfile=diode_mb2.str
tonyplot diode_mb2.str
quit

This program may also be useful for understanding how different materials interact between a PN junction. This simulation below is for a simple GaAs pn junction.

The first image shows four contour plots for the pn junction with an applied 2.5 volts. With an applied voltage of 2.5, the recombination rate is high at the PN junction, while there is low recombination throughout the unbiased pn junction. The hole and electron currents are plotted on the bottom left and right respectively. Here is the pn junction with no biasing. The beam profile can also be obtained: 3 thoughts on “PN Junction Simulator in ATLAS”

1. Pingback: Energy Bandgaps | RF/Photonics Lab