go athena
line x loc=0 spac=0.15
line x loc=0.8 spac=0.01
line x loc=1.5 spac=0.01
line x loc=2 spac=0.15
line y loc=0 spac=0.01
line y loc=0.5 spac=0.01
line y loc=1 spac=0.15
init orientation=110 space.mul=2
implant phosphorus dose=1e14 energy=100
doping reg=1 gauss p.type conc=5e19 peak=0 char=0.08 x.left=1.5
diffuse temp=950 time=100 weto2 hcl=3
etch oxide all
doping reg=1 gauss n.type conc=5e19 peak=0 junc=0.05 x.right=0.8
diffuse temp=950 time=100 weto2 hcl=3
etch oxide all
save outf=ath_bjt.str
go atlas
mesh infile=ath_bjt.str
electrode name=E x.min=0, x.max=0.8, y.min=0
electrode name=B x.min=0.8, x.max=1.5, y.min=0
electrode name=C x.min=1.5, x.max=2, y.min=0
models ath_bjt
#code about setting different base voltage
structure outfile=ath_bjt_structure.str
tonyplot -overlay.log .log ~~
quit