1 #==============================================================================
2 # GSS example: PN Diode simulation
3 # On this step, we will calculate the forward IV curve by voltage and current
4 # sewwps. Here we use lattice temperature corrected solver.
5 #==============================================================================
7 set Carrier = pn # specify carrier type
8 set LatticeTemp = 3e2 # specify initial temperature of device. Unit:K
11 #------------------------------------------------------------------------------
12 # no voltage source is needed.
14 #------------------------------------------------------------------------------
15 # specify boundary condition. Must give heat transfer rate here.
16 boundary Type=OhmicContact ID=Anode Res=0 Cap=0 Ind=0
17 boundary Type=OhmicContact ID=Cathode Res=0 Cap=0 Ind=0 Heat.Transfer=1e3
19 #------------------------------------------------------------------------------
20 # Import CGNS file generated at first step
21 IMPORT CoreFile=pn.cgns
22 METHOD Type=DDML2 Scheme=Newton NS=LineSearch LS=GMRES
23 PLOT Variable=DeviceMesh
24 SOLVE Type=STEADYSTATE
26 #------------------------------------------------------------------------------
28 METHOD Type = DDML2 Scheme = Newton NS=LineSearch LS=TFQMR
30 # sweep with voltage boundary condition
31 SOLVE Type=DCSWEEP VScan=Anode IVRecord=Anode IVRecord=Cathode \
32 IVFile=ivfp1.txt VStart=0 VStep=1e-2 VStop=0.6
33 # sweep with current boundary condition
34 SOLVE Type=DCSWEEP IScan=Anode IVRecord=Anode IVRecord=Cathode \
35 IVFile=ivfp2.txt IStart=0.02 IStep=1e-2 IStop=1.0
36 PLOT Variable=Temperature Measure=Linear Resolution=RES.Middle
38 #------------------------------------------------------------------------------
40 IMPORT CoreFile=pn.cgns
41 METHOD Type=DDML2E Scheme=Newton NS=Basic LS=GMRES ImpactIonization=On
42 SOLVE Type=DCSWEEP VScan=Anode IVRecord=Anode IVRecord=Cathode \
43 IVFile=ivb.txt VStart=0 VStep=-0.5 VStop=-80
45 PLOT Variable=ElecDensity Resolution=RES.Middle AzAngle=40 ElAngle=40
46 PLOT Variable=HoleDensity Resolution=RES.Middle AzAngle=40 ElAngle=40
47 PLOT Variable=Potential Resolution=RES.Middle AzAngle=40 ElAngle=40
48 PLOT Variable=EFieldX Resolution=RES.Middle AzAngle=40 ElAngle=40
49 PLOT Variable=EFieldY Resolution=RES.Middle AzAngle=40 ElAngle=40
50 PLOT Variable=Temperature Resolution=RES.Middle AzAngle=40 ElAngle=40
51 EXPORT CoreFile=b70.cgns