1 #==============================================================================
2 # GSS example: PN Diode simulation
3 # advanced topic:we will do AC sweep with external resistance and capacitance.
4 # for running it, use "gss step4.inp"
5 #==============================================================================
7 set Carrier = pn # specify carrier type
8 set LatticeTemp = 3e2 # specify initial temperature of device. Unit:K
10 #------------------------------------------------------------------------------
12 vsource Type = VDC ID = VCC Tdelay=0 Vconst=0.6
13 #------------------------------------------------------------------------------
14 # specify boundary condition.
15 boundary Type = OhmicContact ID = Anode Res=0.0 Cap=0 Ind=0
16 boundary Type = OhmicContact ID = Cathode Res=0.0 Cap=0 Ind=0
18 #------------------------------------------------------------------------------
19 # import forward bias result computed in step 2
20 IMPORT CoreFile=f0.6.cgns
21 ATTACH Electrode=Anode Vapp=VCC
22 #Call DDML1E to do a steady-state solution to achieve initial value for AC sweep.
23 METHOD Type = DDML1E Scheme = Newton NS=LineSearch LS=GMRES
24 SOLVE Type=STEADYSTATE
26 METHOD Type = DDML1AC LS=LU
27 SOLVE Type=ACSWEEP ACScan=Anode IVRecord=Anode IVFile=ivac.txt \
28 FStart=1e6 FMultiple=1.1 FStop = 1e9