5 //The solution and auxiliary data structure for each zone node
7 //----------------------------------------------------------------
11 PetscScalar n
,p
; //density
12 PetscScalar P
; //electrostatic potential
13 PetscScalar T
; //lattice temperature
14 PetscScalar Tn
,Tp
; //carrier temperature
15 PetscScalar Eqc
,Eqv
; //quantum conduction/valence band
16 PetscScalar n_last
,p_last
; //solution at previous step
19 PetscScalar Tn_last
,Tp_last
;
20 PetscScalar Eqc_last
,Eqv_last
;
42 PetscScalar phin
,phip
;
43 PetscScalar phi_intrinsic
;
46 PetscScalar Na
,Nd
; //doping profile
47 PetscScalar mole_x
,mole_y
;
50 PetscScalar OpEx
,OpEy
,OpEz
;
51 PetscScalar OpHx
,OpHy
,OpHz
;
52 PetscScalar OptG
;//dot not plot this variable
53 PetscScalar RealOptG
;//for transient case
58 phi_intrinsic
=phin
=phip
=0;
69 //----------------------------------------------------------------
73 PetscScalar P
; //potential
74 PetscScalar T
; //lattice temperature
75 PetscScalar P_last
; //solution at n-1 step
93 PetscScalar OpEx
,OpEy
,OpEz
;
94 PetscScalar OpHx
,OpHy
,OpHz
;
104 //----------------------------------------------------------------
108 PetscScalar P
; //potential
109 PetscScalar T
; //lattice temperature
110 PetscScalar P_last
; //solution at n-1 step
111 PetscScalar T_last
; //solution at n-1 step
124 PetscScalar affinity
;
126 PetscScalar OpEx
,OpEy
,OpEz
;
127 PetscScalar OpHx
,OpHy
,OpHz
;
137 //----------------------------------------------------------------
141 PetscScalar P
; //potential
142 PetscScalar P_last
; //solution at n-1 step
154 PetscScalar OpEx
,OpEy
,OpEz
;
155 PetscScalar OpHx
,OpHy
,OpHz
;
165 //----------------------------------------------------------------
169 PetscScalar P
; //potential
170 PetscScalar P_last
; //solution at n-1 step
182 PetscScalar OpEx
,OpEy
,OpEz
;
183 PetscScalar OpHx
,OpHy
,OpHz
;