aboutsummaryrefslogtreecommitdiff
path: root/img/poiseuille2d_error_comparison.tikz
blob: d9b63e22659bf0d9d726e370627ccc0e1ad9be8b (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
\begin{tikzpicture}
\begin{axis}[
	scale only axis,
	height=6.5cm,
	width=0.7*\textwidth,
	symbolic x coords={\texttt{uN10},\texttt{uN20},\texttt{vN10A},\texttt{vN20A},\texttt{vN10B},\texttt{vN20B}},
	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}
]

\addplot coordinates {
(\texttt{uN10},1.88337e-3)
(\texttt{uN20},1.16253e-3)
(\texttt{vN10A},1.00761e-2)
(\texttt{vN20A},1.02424e-2)
(\texttt{vN10B},1.77561e-3)
(\texttt{vN20B},2.04335e-3)
};

\addplot coordinates {
(\texttt{uN10},3.11534e-3)
(\texttt{uN20},2.27404e-3)
(\texttt{vN10A},2.71447e-2)
(\texttt{vN20A},2.07924e-2)
(\texttt{vN10B},3.11244e-3)
(\texttt{vN20B},3.39432e-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[fill=gray!20!white] (0,0) rectangle (4,1) node[pos=.5] {\(11 \times 41\)};
\end{tikzpicture}
& 1.88337e-3 & 3.11534e-3 \\
\hline \\[-1.75ex]

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

\texttt{vN10A}
& \begin{tikzpicture}
\draw[fill=gray!20!white] (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}
& 1.00761e-2 & 2.71447e-2 \\
\texttt{vN20A}
& \begin{tikzpicture}
\draw (0,0) rectangle (2,1) node[pos=.5] {\(11 \times 21\)};
\draw[fill=gray!20!white] (2,0) rectangle (4,1) node[pos=.5] {\(21 \times 43\)};
\end{tikzpicture}
& 1.02424e-2 & 2.07924e-2 \\
\hline \\[-1.75ex]

\texttt{vN10B}
& \begin{tikzpicture}
\draw[fill=gray!20!white] (0,0) rectangle (4,1);
\draw[gray!20!white,text=black] (0,0) rectangle (2,1) node[pos=0.5] {\(11 \times 41\)};
\draw (0,0) rectangle (4,1);
\draw[fill=white,text=black] (2,0.1) rectangle (3.9,0.9) node[pos=.5] {\(17 \times 41\)};
\end{tikzpicture}
& 1.77561e-3 & 3.11244e-3 \\
\texttt{vN20B}
& \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[fill=gray!20!white,text=black] (2,0.1) rectangle (3.9,0.9) node[pos=.5] {\(17 \times 41\)};
\end{tikzpicture}
& 2.04335e-3 & 3.39432e-3 \\
\end{tabular}