Debian Codegraph @

examples/step-97/doc/results.dox

raw
1 <h1>Results</h1>
2
3 The program generates the following output in the command line interface by
4 default.
5
6 @code
7 Solving for (p = 0): T Jf A B T Jf A B T Jf A B T Jf A B
8 @endcode
9
10 The program assumes the finite elements of the lowermost degree, $p = 0$.
11 To change the degree of the finite elements, say $p = 2$, one needs to change
12 the setting `Settings::fe_degree = 2` and rebuild the program.
13
14 The program also dumps a number of files in the current directory. In the default
15 configuration these files are:
16 - vtu files. They contain the computed vector fields. Recall that the spherical
17 manifold is attached to many cell faces. Consequently, these cell faces are
18 curved. They look more like patches of a sphere. Furthermore, the shape
19 functions are mapped from the reference cell to the real mesh cells by the
20 second-order mapping to accommodate the cells with curved faces. For these
21 reasons, one needs to use a visualization software that can deal with curved
22 faces and the higher-order mapping. A fresh version of ParaView is recommended.
23 Visit will not do. The <a href="https://github.com/dealii/dealii/wiki/Notes-on-visualizing-high-order-output">
24 Notes on visualizing high order output</a> provide more information on this topic.
25 - tex files. These files contain the convergence tables.
26
27 The following provides examples of the convergence tables simulated with the
28 default settings for three different degrees of the finite elements,
29 $p = 0, 1, 2$.
30
31 | p | r | cells | dofs |$\|e\|_{L^2}$|$\alpha_{L^2}$|
32 |-- |---|-------|---------|----------|------|
33 | 0 | 6 | 4625 | 13950 | 1.66e-01 | - |
34 | 0 | 7 | 7992 | 24084 | 1.38e-01 | 0.99 |
35 | 0 | 8 | 12691 | 38220 | 1.19e-01 | 0.99 |
36 | 0 | 9 | 18944 | 57024 | 1.04e-01 | 0.99 |
37 | 1 | 6 | 4625 | 111300 | 8.12e-04 | - |
38 | 1 | 7 | 7992 | 192240 | 4.97e-04 | 2.69 |
39 | 1 | 8 | 12691 | 305172 | 3.32e-04 | 2.61 |
40 | 1 | 9 | 18944 | 455424 | 2.37e-04 | 2.54 |
41 | 2 | 6 | 4625 | 375300 | 6.78e-04 | - |
42 | 2 | 7 | 7992 | 648324 | 3.94e-04 | 2.97 |
43 | 2 | 8 | 12691 | 1029294 | 2.49e-04 | 2.98 |
44 | 2 | 9 | 18944 | 1536192 | 1.67e-04 | 2.99 |
45
46 **Table 1. Convergence table. Free-current density, $\vec{J}_f$.
47
48 | p | r | cells | dofs |$\|e\|_{L^2}$|$\alpha_{L^2}$|
49 |-- |---|-------|---------|----------|------|
50 | 0 | 6 | 4625 | 13950 | 8.84e-08 | - |
51 | 0 | 7 | 7992 | 24084 | 7.36e-08 | 1.00 |
52 | 0 | 8 | 12691 | 38220 | 6.30e-08 | 1.01 |
53 | 0 | 9 | 18944 | 57024 | 5.51e-08 | 1.00 |
54 | 1 | 6 | 4625 | 111300 | 4.41e-09 | - |
55 | 1 | 7 | 7992 | 192240 | 3.11e-09 | 1.91 |
56 | 1 | 8 | 12691 | 305172 | 2.23e-09 | 2.18 |
57 | 1 | 9 | 18944 | 455424 | 1.71e-09 | 1.96 |
58 | 2 | 6 | 4625 | 375300 | 1.84e-10 | - |
59 | 2 | 7 | 7992 | 648324 | 1.03e-10 | 3.21 |
60 | 2 | 8 | 12691 | 1029294 | 6.08e-11 | 3.40 |
61 | 2 | 9 | 18944 | 1536192 | 4.04e-11 | 3.07 |
62
63 **Table 2. Convergence table. Magnetic field, $\vec{B}$.
64
65 The following notations were used in the headers of the tables:
66
67 - p - the degree of the finite elements.
68
69 - r - the mesh refinement parameter, i.e., the number of nodes on the transfinite
70 lines.
71
72 - cells - the total amount of active cells.
73
74 - dofs - the amount of degrees of freedom.
75
76 -$\|e\|_{L^2}$ - the $L^2$ error norm.
77
78 -$\alpha_{L^2}$ - the order of convergence of the $L^2$ error norm.
79
80 If `Settings::log_cg_convergence = true`, the program saves the convergence data
81 of the CG solver into csv files.
82
83 The vector representations of the calculated vector fields, $\vec{J}_f$ and
84 $\vec{B}$, are illustrated above by the first figure on this page. The figures
85 below illustrate slices of the magnitudes of these fields. The figures below
86 were simulated with $p = 2$ and $r = 9$. Visual inspection of the vector
87 potentials is not very informative as their conservative portions are unknown.
88
89 @htmlonly
90 <p align="center">
91 <img src="https://www.dealii.org/images/steps/developer/step-97-Jf.svg" alt="The result - free-current
92 density" height="531">
93 </p>
94 @endhtmlonly
95
96 @htmlonly
97 <p align="center">
98 <img src="https://www.dealii.org/images/steps/developer/step-97-B.svg" alt="The result - magnetic field
99 density" height="531">
100 </p>
101 @endhtmlonly
102
103 <h3>Possibilities for extensions</h3>
104
105 Repeat the simulations for the three types of the boundary conditions,
106 Dirichlet, Neumann, and Robin. The Robin boundary condition is supposed to be
107 superior to the other two. Look at the simulated data to see that this is indeed
108 the case. You can save the projected exact solution next to the simulated
109 solutions into the vtu files, just set `Settings::project_exact_solution = true`.
110 ParaView has "Plot Over Line" filter. You can use this filter to visualize the
111 difference between the exact solution and a solution simulated with a particular
112 boundary condition. You can also draw conclusions by observing the convergence
113 tables. Keep in mind the $\eta^2$ parameter. Increase it if the CG solver chokes
114 while you are experimenting. Note that the benefits offered by the Robin
115 boundary condition are observed the best when higher-order finite elements are
116 used, i.e., $p = 1$ and $p = 2$.
117
118 The Robin boundary condition as described above is also called the first-order
119 asymptotic boundary condition (ABC). There exist ABCs of higher orders
120 @cite gratkowski2010p. Implement and test the second-order ABC to see if it
121 performs any better. There exist improvised asymptotic boundary conditions, IABCs,
122 @cite meeker2013a. Try to implement the first order IABC.