From cecefc905ffe4db4fc508ed57ef3c587483800c1 Mon Sep 17 00:00:00 2001
From: wolf
+ Step 3 +
+
Back to the tutorial index
diff --git a/deal.II/doc/tutorial/chapter-2.step-by-step/step-3.data/solution-1.jpg b/deal.II/doc/tutorial/chapter-2.step-by-step/step-3.data/solution-1.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..1b44a311f4ec066f48f0097f39cfaeffd8e98c0a
GIT binary patch
literal 15240
zcmb_@Wl$W^w(cN70t5>>xCAFakl^k?g1c*AaLwQl90mr5Ai;tMA3V5AAOxGi1_|y?
zfR}U5J?Gt9uil?mue++Ny1Htwy;m>!_Fmt5T6kIm5U409D*#YXPyqk90Z)$r5jtg%
zrM)eky{(I_hozUT4V{%gowT#1jg6xVouY%Qr R{|qy@QpT6{C^PzKdJRY%9X1(_XszM$2&K4p95L@DloF7N+`7
zj4#FF>S|f52C=`dnAl6ON?R={0eFOmfC2!-kkH3A!EVLIeSS_{x{Ns7^BP$cL|{xf
z5jdhB9ARYedapfmD^AYEa{ }5b}mo}J3AFZLZYU`DoG}d
z$9T+`ScA|r)
+
+Apart from the output shown above, the program generated the file
+
+
diff --git a/deal.II/doc/tutorial/chapter-2.step-by-step/toc.html b/deal.II/doc/tutorial/chapter-2.step-by-step/toc.html
index df36f194b5..1e16ec2e09 100644
--- a/deal.II/doc/tutorial/chapter-2.step-by-step/toc.html
+++ b/deal.II/doc/tutorial/chapter-2.step-by-step/toc.html
@@ -40,17 +40,23 @@ At present, the following programs exist:
y9lDK_ASB{cqa2C|AS=Iq13XJL}V*W(wmUYaPi>YH$GkQS9_Mi_dA
zr4?nVpI%wjG;lb9NMe`uv
gG>Q3F(*ou!q9j*OXIfJ#
z$vH|wq3KxLTxhDC;ayX4b4)_?@G;Hr5LK2E<7|kM4*tDV7t=~-f`!$f&4CB?d!N$x
z&Bknp#T@K?G{5wOwD7BMYo{-
n_?M>@O3d*PFVddF!dY&1gU=p5EE8JG%W0MsJkzBF
z1j*F@Tcob(5ys5T=!~ilE{t>@SAu>~R+?cr^nHvDdcjuz3v+Xc4>Lu}3yZ4-s$&M+
z1k|6hdDen+rJn%y?mGe>xH-E;b(>nDOqh@IV!?+R?e(=upmSH2ZCLsU-4oyi75;6C
zCih+JIazWPtuIOHH8COlV1$7Pd*
y`|&ps%aDd`&&*g3YJK@Bu0w
jxlqPLf#+of4gky$z-h(e|9#MZ+4X;9{6D=0KP~<*-t$qc
literal 0
HcmV?d00001
diff --git a/deal.II/doc/tutorial/chapter-2.step-by-step/step-3.data/solution-2.jpg b/deal.II/doc/tutorial/chapter-2.step-by-step/step-3.data/solution-2.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..15f44e3bf4d2ec158d4e289349d1807f0765612f
GIT binary patch
literal 13623
zcmb_?bySqm+V8;7CCwn=0D~wc9n#H!2qIn5H4L2+5{l9=2q;oYcQdrW(5W;-4KRRo
zgCKD|=X~dW_pH0_KX-laUTgoe*LrF{@jmty=wqWZ3u!4(~t*w(QSk2MR%iGJw)5+Z%{K(eM*U83C#@!X}Y328r
z
miUYP
zMmzJaX|XkqdDzM3I`;RG=wNWRODb87>xa!}siI^(p%Mx6jb!oeB(}*YDl&oa@$IMK
z9CaP@uTV(bc`(Jj3>!w9lg9>_N3`iz{`~16s)~9k+Ia~eyAjb~?VG@3W~=~!V8jD%
z3CBXIwPRWup4Z1XkQ`D1RU;%=Ju?3EAw0~r{3x;#2gt%w^cIZpStgWcmvIvy$71nv
zge(Q62W<#Q>hPC9M;meak6sTb73D_KI&NXs`-&prLIlGp6T^;7F(dVDRNY08aF
znXiK-)rj4buDhAZ!T}gEjHtH@t16$5ALLn04fKbMXkBKN5
Introduction
+
+This is the first example, where we actually use finite elements. We
+will solve a simple version of Laplace's equation witht zero boundary
+values, but a nonzero right hand side. This example is still quite
+simple, but it already shows the basic structure of most finite
+element programs, which are along the following lines:
+
+
diff --git a/deal.II/doc/tutorial/chapter-2.step-by-step/step-3.results b/deal.II/doc/tutorial/chapter-2.step-by-step/step-3.results
new file mode 100644
index 0000000000..6815f678d2
--- /dev/null
+++ b/deal.II/doc/tutorial/chapter-2.step-by-step/step-3.results
@@ -0,0 +1,57 @@
+
+Results
+
+The output of the program looks as follows:
+
+
+
+The first three lines is what we wrote to
+Number of active cells: 1024
+Total number of cells: 1365
+Number of degrees of freedom: 1089
+DEAL:cg::Starting value 0.121094
+DEAL:cg::Starting value 0.323075
+DEAL:cg::Convergence step 47 value 5.33692e-13
+
+cout
. The last
+three lines were generated without our interaction by the CG
+solver. The first two lines state the residual at the start of the
+iteration, while the last line tells us that the solver needed 47
+iterations to bring the norm of the residual to 5.3e-13, i.e. below
+the threshold 1e-12 which we have set in the `solve' function. We will
+show in the next program how to suppress this output, which is
+sometimes useful for debugging purposes, but often clutters up the
+screen display.
+
+solution.gpl
, which is in GNUPLOT format. It can be
+viewed as follows: invoke GNUPLOT and enter the following sequence of
+commands at its prompt:
+
+
+This produces the picture of the solution below left. Alternatively,
+you can order GNUPLOT to do some hidden line removal by the command
+
+gnuplot> set data style lines
+gnuplot> splot "solution.gpl"
+
+
+
+to get the result at the right:
+
+gnuplot> set hidden3d
+
+
+
+
+
+
+
+
+
+
+
+
--
2.39.5