06.08.2013 Views

Abstract

Abstract

Abstract

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

• printSolution - a routine that postprocesses the computed steady-state distri-<br />

bution, such as computing the current output and the potential energy within<br />

the RTD. These post-processing routines are written in Fortran 77.<br />

• applyMassMatrix - a routine that applies the left preconditioner ˜ M =(K −<br />

1<br />

τ I)−1 .<br />

C.2.2 RTDProblemInterfaceParallel.C<br />

This is the concrete implementation of the routines defined within RTDProblemInter-<br />

face.H. These routines are written in the accompanying Fortran 77 code, and they<br />

are wrapped to interface with the C++ code at the top of the file.<br />

C.2.3 RTDContinuationParallel.C<br />

This is the driver of the continuation run. The various parameters for the nonlinear<br />

solver (inexact-Newton’s Method), the corresponding linear solver (GMRES), and<br />

eigensolver (Arnoldi) are set in this code. These include:<br />

• Continuation Run<br />

– ”Continuation Method” - Selects which continuation method is used. Cur-<br />

rently set to ”Householder Arc Length”.<br />

– ”Initial Value” - Sets the initial voltage parameter in the continuation run.

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

Saved successfully!

Ooh no, something went wrong!