06.08.2013 Views

Abstract

Abstract

Abstract

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

APPENDIX C. GUIDE TO RTD SIMULATION CODE 141<br />

C.1 Initialization Code<br />

C.1.1 equil.f<br />

This routine is the driver of the initialization code that calculates f0(x, k). An im-<br />

portant parameter for this driver is the number of GMRES iterations allowed for<br />

the linear solves. Due to the memory limitation created by using a large number of<br />

unknowns, when using fine grids this value could be as small as 20. The parameter<br />

krymax sets the upper limit of GMRES iterations.<br />

C.1.2 transi.f<br />

This routine is the physics module of the RTD simulator. There are functions within<br />

that solve Poisson’s equations for the electric potential, calculates the relaxation time,<br />

defines the barrier locations and heights, etc.<br />

C.1.3 wprockinit.f<br />

This routine computes the preconditioned nonlinear residual ˜ MW( f), where W ( f)<br />

is the nonlinear residual and ˜ M = K −1 is the left preconditioner. Since we are<br />

computing f0(x, k), we can neglect scattering since S(f0) =0.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!