initial checkin, based on GSS 0.46 CVS
[gss-tcad.git] / examples / OPTICAL / diode_dc.inp
blobc346506119bc569632521802330af0fb56a0824c
1 #==============================================================================
2 # GSS example: Silicon photoconductive detector simulation with light source and 
3 # PML boundary. We will make the same detector model and compare the result with 
4 # medici's result, in this file.
5 # For running it, use "gss diode_dc.inp"
6 #==============================================================================
8 # Create an initial simulation mesh
9 MESH     Type=GSS    ModelFile=diode.cgns Triangle="pzA"
10 XMESH    WIDTH=5.0   N.SPACES=300
11 YMESH    DEPTH=4.5   N.SPACES=270
13 # Region and electrode statements
14 REGION   Label=PML     Material=PML
15 REGION   Label=Vacuum  Material=Vacuum    X.MIN=1.0 X.MAX=4.0  Y.MAX=-1.0 Y.MIN=-3.5
16 REGION   Label=Silicon Material=Si        X.MIN=1.5 X.MAX=3.5  Y.MAX=-1.5 Y.MIN=-3.0
17 SEGMENT  Label=Source  Direction=Vertical  X=1.5    Y.MAX=-1.5 Y.MIN=-3.0 
18 SEGMENT  Label=Drain   Direction=Vertical  X=3.5    Y.MAX=-1.5 Y.MIN=-3.0 
20 # Specify impurity profiles
21 PROFILE   Type=Uniform Ion=Donor  N.PEAK=1E14  X.MIN=1.5 X.MAX=3.5  \
22           Y.MIN=-3.0  Y.MAX=-1.5
24 #------------------------------------------------------------------------------
25 # specify boundary condition.
26 boundary Type=OhmicContact     ID=Source  Res=0 Cap=0 Ind=0 
27 boundary Type=OhmicContact     ID=Drain   Res=0 Cap=0 Ind=0 
28       
29 set Carrier     = pn 
30 set DopingScale = 1e14
32 #------------------------------------------------------------------------------
33 # some voltage source and light source are needed here.
34 vsource Type=VDC     ID=GND    Tdelay=0   Vconst=0
35 LSOURCE Type=UNIFORM Tdelay=0
37 #------------------------------------------------------------------------------
38 PLOTMESH
40 #specify DDM method
41 METHOD   Type = DDML1   Scheme = Newton  NS=LineSearch LS=BCGS
42 SOLVE    Type=EQUILIBRIUM
44 #Photogeneration State
45 PHOTOGEN  WAVELEN=0.532  INTENSITY=1.0E+2  ANGLE=90  WTE=0.00  WTM=1.00 
46 METHOD    Type=EMFEM     LS=LU
47 SOLVE     
49 #set Source to ground
50 ATTACH   Electrode=Source   VApp=GND
52 #specify DDM method
53 METHOD   Type = DDML1E   Scheme = Newton  NS=Basic LS=GMRES  EJModel=ON
55 # Use DCSWEEP solver to get i-v character
56 SOLVE    Type=DCSWEEP VScan=Drain  IVRecord=Drain  IVFile=iv.txt \
57          VStart=0 VStep=0.025 VStop=1.5
59 PLOT     Variable=OpticalEz    Resolution=RES.High Measure=Linear
60 PLOT     Variable=OpticalG     Resolution=RES.High Measure=Linear
62 # extract mesh and solution
63 EXPORT   CoreFile=diode_dc.cgns  VTKFile=diode_dc.vtk