aboutsummaryrefslogtreecommitdiff
path: root/img/poiseuille2d_error_comparison.tikz
blob: b28f57915c04d8ecb7dd7198fdf168ed7180c8d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
\begin{tikzpicture}
\begin{axis}[
	scale only axis,
	height=8cm,
	width=0.6*\textwidth,
	symbolic x coords={\texttt{uN10},\texttt{uN20},\texttt{vN10A},\texttt{vN10B}},
	xtick=data,
	ylabel=L2-genormter Fehler,
	ymode=log,
	log origin=infty,
	y tick label style={/pgf/number format/sci},
	ybar=5pt,
	bar width=9pt,
	legend cell align={left},
	legend pos=north west
]

\addplot coordinates {
(\texttt{uN10},1.88337e-3)
(\texttt{uN20},1.16253e-3)
(\texttt{vN10A},1.015925e-2)
(\texttt{vN10B},1.90948e-3)
};

\addplot coordinates {
(\texttt{uN10},3.11534e-3)
(\texttt{uN20},2.27404e-3)
(\texttt{vN10A},2.396855e-2)
(\texttt{vN10B},3.25338e-3)
};

\legend{Geschwindigkeit,Druck}
\end{axis}
\end{tikzpicture}

\bigskip

\begin{tabular}{l m{4cm} l l}
& Gitterstruktur & Geschwindigkeitsfehler & Druckfehler \\
\hline \\[-1.75ex]

\texttt{uN10}
& \begin{tikzpicture}
\draw (0,0) rectangle (4,1) node[pos=.5] {\(11 \times 41\)};
\end{tikzpicture}
& \num{1.88337e-3} & \num{3.11534e-3} \\
\hline \\[-1.75ex]

\texttt{uN20}
& \begin{tikzpicture}
\draw (0,0) rectangle (4,1) node[pos=.5] {\(21 \times 81\)};
\end{tikzpicture}
& \num{1.16253e-3} & \num{2.27404e-3} \\
\hline \\[-1.75ex]

\texttt{vN10A}
& \begin{tikzpicture}
\draw (0,0) rectangle (2,1) node[pos=.5] {\(11 \times 21\)};
\draw (2,0) rectangle (4,1) node[pos=.5] {\(21 \times 43\)};
\end{tikzpicture}
& \num{1.015925e-2} & \num{2.396855e-2} \\
\hline \\[-1.75ex]

\texttt{vN10B}
& \begin{tikzpicture}
\draw[white,text=black] (0,0) rectangle (2,1) node[pos=0.5] {\(11 \times 41\)};
\draw (0,0) rectangle (4,1);
\draw (2,0.1) rectangle (3.9,0.9) node[pos=.5] {\(17 \times 41\)};
\end{tikzpicture}
& \num{1.90948e-3} & \num{3.25338e-3} \\
\end{tabular}