From 6bc6faae34ad2f4ef6cdc78af4b1109061851b7e Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 6 Jul 2009 18:35:26 +0000 Subject: [PATCH] Add a few comments about the structure of the program to the intro. git-svn-id: https://svn.dealii.org/trunk@19031 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-36/doc/intro.dox | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/deal.II/examples/step-36/doc/intro.dox b/deal.II/examples/step-36/doc/intro.dox index e6abfb85b0..f8467658ba 100644 --- a/deal.II/examples/step-36/doc/intro.dox +++ b/deal.II/examples/step-36/doc/intro.dox @@ -25,3 +25,34 @@ Then transform using the finite element {\it ansatz} @f] where $\tilde{\phi_i}$ is known as the reduced wavefunction of the state $i$. + + + +

Implementation details

+ +The program below is essentially just a slightly modified version of +@ref step_4 "step-4". The things that are different are the following: + +- The main class (now named EigenvalueProblem) now no + longer has a single solution vector, but a whole set of vectors for + the various eigenfunctions we want to compute. + +- We use PETSc matrices and vectors as in @ref step_17 "step-17" and + @ref step_18 "step-18" since that is what the SLEPc eigenvalue + solvers require. + +- We use the ParameterHandler class to describe a few input parameters, + such as the exact form of the potential $V(\vec x)$, the number of + global refinement steps of the mesh, or the number of eigenvalues + we want to solve for. We could go much further with this but + stop at making only a few of the things that one could select at + run time actual input file parameters. In order to see what could be + done in this regard, take a look at @ref step_29 "step-29", + @ref step_33 "step-33", and in particular @ref step_19 "step-19". + +- We use the FunctionParser class to make the potential $V(\vec x)$ + a run-time parameter that can be specified in the input file as + a formula. + +The rest of the program follows in a pretty straightforward way from +@ref step_4 "step-4". -- 2.39.5