
mesh rect nx=24 ny=40 outf=mosaic.msh

x.m n=1  l=0     r=1.0
x.m n=12 l=0.55  r=0.80
x.m n=23 l=1.0   r=1.25
x.m n=24 l=1.1   r=1.25

y.m n=1  l=0.0   r=1.0
y.m n=9  l=0.1   r=0.8
y.m n=27 l=0.25  r=1.0
y.m n=40 l=1.0   r=1.25

region num=1 ix.l=1 ix.h=24 iy.l=1 iy.h=40 silicon
elec num=1 ix.l=1 ix.h=12 iy.l=1 iy.h=1 
elec num=2 ix.l=23 ix.h=24 iy.l=1 iy.h=1 
elec num=3 ix.l=1 ix.h=24 iy.l=40 iy.h=40 

$substract doping - epi doping
doping reg=1 n.type concen=2.0e16 uniform

$buried collector
doping reg=1 gauss peak=1.0 concen=2.0e19 char=0.152 n.type

$base diffusion for contact
doping reg=1 gauss peak=0.0 concen=5.0e19 char=0.125 p.type x.l=0.85 x.r=1.1

$intrinsic base doping
doping reg=1 gauss peak=0.10 concen=1.25e18 junc=0.25 x.le=0.0 x.r=1.0 p.type

$emitter doping
doping reg=1 gauss peak=0.0 concen=2.0e20 char=0.0465 x.l=0.0 x.r=0.55 n.type

end
