1 #==============================================================================
2 # GSS example: PN Diode simulation
3 # On this step, we will first calculate the forward IV curve by voltage
4 # and current sewwps. Then we will compute reverse breakdown IV curve.
5 #==============================================================================
7 set Carrier = pn # specify carrier type support p,n or pn
8 set LatticeTemp = 3e2 # specify initial temperature of device. Unit:K
11 #------------------------------------------------------------------------------
12 # no voltage source is needed.
14 #------------------------------------------------------------------------------
15 # specify boundary condition.
16 boundary Type = OhmicContact ID = Anode Res=0 Cap=0 Ind=0
17 boundary Type = OhmicContact ID = Cathode Res=0 Cap=0 Ind=0
19 #------------------------------------------------------------------------------
20 # Import CGNS file generated at first step
21 IMPORT CoreFile=pn.cgns
23 #------------------------------------------------------------------------------
25 # sweep with voltage boundary condition
26 METHOD Type=DDML1E Scheme=Newton NS=LineSearch LS=GMRES EJModel=On
27 SOLVE Type=DCSWEEP VScan=Anode IVRecord=Anode IVRecord=Cathode \
28 IVFile=ivfp1.txt VStart=0 VStep=0.02 VStop=0.6
29 EXPORT CoreFile=f0.6.cgns
31 # sewwp with current boundary condition
32 METHOD Type=DDML1E Scheme=Newton NS=LineSearch LS=GMRES EJModel=On
33 SOLVE Type=DCSWEEP IScan=Anode IVRecord=Anode IVRecord=Cathode \
34 IVFile=ivfp2.txt IStart=0.014 IStep=1e-2 IStop=0.1
37 #------------------------------------------------------------------------------
39 # sweep with voltage boundary condition
40 IMPORT CoreFile=pn.cgns
41 METHOD Type=DDML1E Scheme=Newton NS=LineSearch LS=GMRES ImpactIonization=On
42 SOLVE Type=DCSWEEP VScan=Anode IVRecord=Anode IVRecord=Cathode \
43 IVFile=ivb.txt VStart=0 VStep=-0.1 VStop=-75
44 EXPORT CoreFile=b75.cgns
46 PLOT Variable=ElecDensity Resolution=RES.High AzAngle=40 ElAngle=40
47 PLOT Variable=HoleDensity Resolution=RES.High AzAngle=40 ElAngle=40
48 PLOT Variable=Potential Resolution=RES.High AzAngle=40 ElAngle=40
49 PLOT Variable=EFieldX Resolution=RES.High AzAngle=40 ElAngle=40
50 PLOT Variable=EFieldY Resolution=RES.High AzAngle=40 ElAngle=40
51 PLOT Variable=Temperature Resolution=RES.High AzAngle=40 ElAngle=40
52 # note: the first column of IVFile is the voltage of electrode, unit:V
53 # the second column is current, unit:mA.