From: pauletti Date: Tue, 21 Dec 2010 21:34:35 +0000 (+0000) Subject: Small changes to documentation of step-38 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c772d6ab6969de3e3f00f984a577c4e52f1ae51f;p=dealii-svn.git Small changes to documentation of step-38 git-svn-id: https://svn.dealii.org/trunk@23060 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-38/doc/intro.dox b/deal.II/examples/step-38/doc/intro.dox index ea30923933..0d4cb87c1e 100644 --- a/deal.II/examples/step-38/doc/intro.dox +++ b/deal.II/examples/step-38/doc/intro.dox @@ -123,9 +123,10 @@ and In general when you want to test numerically the accuracy and/or order of convergence of an algorithm you need to provide an exact solution. -The usual trick is to pick a function that we want to be the solution applied -the differential operator to define a forcing term for the right hand side. +The usual trick is to pick a function that we want to be the solution, +then apply the differential operator to it that defines a forcing term +for the right hand side. This is what we do in this example. - +We produce one test case for a 2d problem and another one for the 3d one. Mapping objects diff --git a/deal.II/examples/step-38/doc/results.dox b/deal.II/examples/step-38/doc/results.dox index 8608c72dd8..641e0fb7e4 100644 --- a/deal.II/examples/step-38/doc/results.dox +++ b/deal.II/examples/step-38/doc/results.dox @@ -8,9 +8,11 @@ Surface mesh has 5185 degrees of freedom. H1 error = 0.0221245 @endverbatim -By playing around with the number of global refinements in teh -LaplaceBeltrami::make_mesh function you increase or decrease mesh -refinement. For example, doing one more refinement yields the following + +By playing around with the number of global refinements in the +LaplaceBeltrami::make_grid_and_dofs function you increase or decrease mesh +refinement. For example, doing one more refinement and only running the 3d surface +problem yields the following output: @verbatim @@ -34,6 +36,7 @@ this, neatly following the theoretically predicted pattern: Finally, the program produces graphical output that we can visualize. Here is a plot of the results: +@image html step-38.solution-2d.png @image html step-38.solution-3d.png @@ -76,7 +79,7 @@ Point warp (const Point &p) } @endcode -If we followed the LaplaceBeltrami::make_mesh function, we would +If we followed the LaplaceBeltrami::make_grid_and_dofs function, we would extract the 5/6th spherical surface mesh as before, warp it into the shape we want, and refine as often as necessary. This is not quite as simple as we'd like here, though: refining requires that we have an appropriate manifold @@ -93,7 +96,7 @@ above, this would look as follows: @code template -void LaplaceBeltrami::make_mesh () +void LaplaceBeltrami::make_grid_and_dofs () { HyperBallBoundary boundary_description; Triangulation volume_mesh;