aboutsummaryrefslogtreecommitdiff
path: root/img/massloss_interpolation_plot.tikz
blob: 2626c2646a743e869052d7bfb5032a1f2a2b1367 (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
\begin{tikzpicture}
\begin{axis}[
	scale only axis,
	height=8.75cm,
	width=0.9*\textwidth,
	mark size=0,
	line width=0.5pt,
	legend pos=south west,
	xlabel=Horizontale Kanalposition,
	ylabel=Druck,
	y unit=N/m^2,
	x unit=m,
	x tick label style={/pgf/number format/.cd, use comma},
	y tick label style={/pgf/number format/.cd, use comma}
]

\addplot table[
	x=x, y=cubic,
	col sep=semicolon,
	/pgf/number format/read comma as period
]{img/data/poiseuille2d_bisected_re100_both.csv};
\addlegendentry{Druckverlauf bei Interpolationsordnung \(\mathcal{O}(h^4)\)};

\addplot table[
	x=x, y=linear,
	col sep=semicolon,
	/pgf/number format/read comma as period
]{img/data/poiseuille2d_bisected_re100_both.csv};
\addlegendentry{Druckverlauf bei Interpolationsordnung \(\mathcal{O}(h^2)\)};

\draw [dotted] (axis cs:1.9,1.35) rectangle (axis cs:2.09,1.45);
\end{axis}

\begin{axis}[
	yshift=4.5cm,
	xshift=9cm,
	scale only axis,
	height=3cm,
	width=4cm,
	mark size=0,
	line width=0.5pt,
	ticks=none,
	title=Übergangsbereich
]

\addplot table[
	x=x, y=cubic,
	col sep=semicolon,
	/pgf/number format/read comma as period
]{img/data/poiseuille2d_bisected_re100_detail.csv};

\addplot table[
	x=x, y=linear,
	col sep=semicolon,
	/pgf/number format/read comma as period
]{img/data/poiseuille2d_bisected_re100_detail.csv};
\draw [dashed,gray] (axis cs:1.98,\pgfkeysvalueof{/pgfplots/ymin}) -- (axis cs:1.98,\pgfkeysvalueof{/pgfplots/ymax});
\draw [dashed,gray] (axis cs:2.00,\pgfkeysvalueof{/pgfplots/ymin}) -- (axis cs:2.00,\pgfkeysvalueof{/pgfplots/ymax});
\end{axis}
\end{tikzpicture}