From 97c9c7ac51135f96dac04a6c3da4300ebff37501 Mon Sep 17 00:00:00 2001 From: kanschat Date: Thu, 6 May 2010 22:01:02 +0000 Subject: [PATCH] adding some results git-svn-id: https://svn.dealii.org/trunk@21081 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-39/Makefile | 2 +- deal.II/examples/step-39/doc/results.dox | 87 ++++++++++++++++++ .../step-39/doc/step-39-convergence.png | Bin 0 -> 4223 bytes deal.II/examples/step-39/step-39.cc | 4 +- 4 files changed, 90 insertions(+), 3 deletions(-) create mode 100644 deal.II/examples/step-39/doc/step-39-convergence.png diff --git a/deal.II/examples/step-39/Makefile b/deal.II/examples/step-39/Makefile index 4a33ab61d8..01ea1089e2 100644 --- a/deal.II/examples/step-39/Makefile +++ b/deal.II/examples/step-39/Makefile @@ -98,7 +98,7 @@ run: $(target) @echo ============================ Running $< @./$(target)$(EXEEXT) @echo ============================ Postprocessing to step-39.dat - @$(PERL) postprocess.pl step-39.log > step-39.dat + @$(PERL) postprocess.pl deallog > output.dat # As a last rule to the `make' program, we define what to do when # cleaning up a directory. This usually involves deleting object files diff --git a/deal.II/examples/step-39/doc/results.dox b/deal.II/examples/step-39/doc/results.dox index a79c9a63f4..236939ef23 100644 --- a/deal.II/examples/step-39/doc/results.dox +++ b/deal.II/examples/step-39/doc/results.dox @@ -1,3 +1,90 @@

Results

+

Logfile output

+First, the program produces the usual logfile here stored in deallog. It reads (with ommission of intermediate steps) +
+DEAL::Element: FE_DGQ<2>(3)
+DEAL::Step 0
+DEAL::Triangulation 4 cells, 1 levels
+DEAL::DoFHandler 64 dofs, level dofs 64
+DEAL::Assemble matrix
+DEAL::Assemble multilevel matrix
+DEAL::Assemble right hand side
+DEAL::Solve
+DEAL:cg::Starting value 27.1275
+DEAL:cg::Convergence step 1 value 1.97998e-14
+DEAL::Error    0.161536
+DEAL::Estimate 1.35839
+DEAL::Writing solution to ...
+DEAL::
+DEAL::Step 1
+DEAL::Triangulation 10 cells, 2 levels
+DEAL::DoFHandler 160 dofs, level dofs 64 128
+DEAL::Assemble matrix
+DEAL::Assemble multilevel matrix
+DEAL::Assemble right hand side
+DEAL::Solve
+DEAL:cg::Starting value 35.5356
+DEAL:cg::Convergence step 10 value 1.24790e-13
+DEAL::Error    0.164997
+DEAL::Estimate 1.08528
+DEAL::Writing solution to ...
+DEAL::
+DEAL::Step 2
+DEAL::Triangulation 16 cells, 2 levels
+DEAL::DoFHandler 256 dofs, level dofs 64 256
+DEAL::Assemble matrix
+DEAL::Assemble multilevel matrix
+DEAL::Assemble right hand side
+DEAL::Solve
+DEAL:cg::Starting value 37.0552
+DEAL:cg::Convergence step 10 value 4.74024e-14
+DEAL::Error    0.113596
+DEAL::Estimate 0.990460
+DEAL::Writing solution to ...
 
+...
+
+DEAL::Step 10
+DEAL::Triangulation 124 cells, 9 levels
+DEAL::DoFHandler 1984 dofs, level dofs 64 256 512 512 256 256 256 256 256
+DEAL::Assemble matrix
+DEAL::Assemble multilevel matrix
+DEAL::Assemble right hand side
+DEAL::Solve
+DEAL:cg::Starting value 38.5798
+DEAL:cg::Convergence step 12 value 7.56337e-14
+DEAL::Error    0.0101279
+DEAL::Estimate 0.0957571
+DEAL::Writing solution to ...
+DEAL::
+DEAL::Step 11
+DEAL::Triangulation 163 cells, 10 levels
+DEAL::DoFHandler 2608 dofs, level dofs 64 256 768 576 512 256 256 256 256 256
+DEAL::Assemble matrix
+DEAL::Assemble multilevel matrix
+DEAL::Assemble right hand side
+DEAL::Solve
+DEAL:cg::Starting value 44.1721
+DEAL:cg::Convergence step 12 value 9.49720e-14
+DEAL::Error    0.00716966
+DEAL::Estimate 0.0681646
+DEAL::Writing solution to ...
+
+ +This log for instance shows that the number of conjugate gradient +iteration steps is constant at approximately 12. + +

Postprocessing of the logfile

+ +Convergence graphs +Using the perl script postprocess.pl, we extract relevant +data into output.dat, which can be used to plot graphs with +gnuplot. The graph on the right for instance was produced with +
+set style data linespoints
+set logscale
+set xrange [50:3000]
+plot "output.dat" using 2:3 title "error", "" using 2:4 title "estimate", \
+     "" using 2:(3000*$2**-1.5) title "3rd order"
+
diff --git a/deal.II/examples/step-39/doc/step-39-convergence.png b/deal.II/examples/step-39/doc/step-39-convergence.png new file mode 100644 index 0000000000000000000000000000000000000000..3f85cdf0788236ab6e4c83ed9f8a9859203acb2c GIT binary patch literal 4223 zcma)9dpJ~G``$D5Ff+m&oQc6OI?zNpmCVRti0E7@ZBh;u6UkZIkcbc^6`J_c0U5nH zPi9Z)98pPUlPFE)EJEhn-uL^x|NO4+yWVxJz1Oqu=eeKfUf0@dU)M_aUhAqv)FuJ| zpybAJS`PqN7yvL5yc~*PRTjTQCkwniHag2>G8EzS`EvsT0I&=JWWc}x!a`pFjfTh& z8UVBSuncAaGFS#65P%>61S1d(zyM1IGa(p;02bO{GzDstUsby%~5&NB46=8K>6X@bldoQ8AOk>HckG)p@jXG?&YNm&%&r=B-K+W{{ z_7YEe<9lD{sS4#nMbm5fD9@f+CLWuzAdBahRtjkvu>x{mHkJ zBBR`AY9;r41MZjiM85fv4Gb@`4IY|`a6fWj^vG;vokJ@i^OfDMt0E_NnnVw;fAqBL zC8M;;^`)rd>-=s}jcD3oXke6g;mfh-Uk3X!lGHH+i<6ob@kfFSL=IDmP|Ve&uMDI` zTEFFFX#yfTmMS6{CK^qr6wJJ78x=Qa@xCrety-P&)GBJ*hpF~|#csH!B}vfF0jmSJ zsvf*armYHx7roSu?8%E}#+jsmpH6DJG7A;x;vg%TEL0z-zw-B~c{jX9;4 zMVZIQoc8MOq~u@Id5^wY$(*Y#VIFf}&qE}3?H ztVoYfh{~N%8%hQ3-{6OScML{dw&_-gH((#JlAGCviBfh{KE^5nIXvacC2>QMq}<82 z#$Dk9t7?U26y1}hfE(B8I+iXT)?B4_#)W5eFeX@;qMLpP#p&j9bn!tOr5p`G_U!}k zV&3i{9U4Jd90Aj9fNo4KG$B;r@QOzDX@tXOjxhaIwI&MIm7ukX!mXA5NCuleg=_Cs zARK0FM!iKrs5h_&$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U6e9J@l_)wEq3PL3H7}pP6yL znCauW-j8sh&3$s1EcX~o;ds6ZXk$L!%3a9D>K2H#Cr53ux@QOW79_A{yyFjNl|uA> zWz!i$q$9X3$e5YyVAE;ash`<z@&N}h33A@D+gFtb`VXq-m|U+Oe6k4 zt8NTFO~aI|KX0}aQ{tP9RtOa4i=~v&(z9E(Si~mWoZ9iDh!t>VgGR%Xtk0X@T(0eM zwZ!z~^Vh+ai)d}0O8KBo6*fM8?AA7u+eV zHI5@$u6R3W@Jd z97r4b5!L!FIVxThnx0@0mpC@nTc`$&D5iTQ9trs%3*TL1ePKF6p_?(&AG33Q8_woS zB@7k}CxG?i^GCyrP{M5Q#7iyHJhDXSgZbi|@(sXXn$Vrc2mg6xE7p;|*mZXMK|aP^ z4!wagGrM~4gpjaW>$7!LpsThq%9Q*6F%u}d$8zV;hORsH(F?V=QU01-e>@le=fu`Z yT=NRFX2UgjK~mQfxj?e}C4E~x)_<::run(unsigned int n_steps) int main() { - std::ofstream logfile("step-39.log"); + std::ofstream logfile("deallog"); deallog.attach(logfile); FE_DGQ<2> fe1(3); Step39<2> test1(fe1); - test1.run(20); + test1.run(12); } -- 2.39.5