aboutsummaryrefslogtreecommitdiff
path: root/img/cylinder2d_drag_lift_comparison.tikz
blob: 778f4d310f5c2cd2e7bd0a34e82c927aeb3a4962 (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
\begin{tikzpicture}
\pgfplotstableread[col sep=comma]{img/data/cylinder2d_optimized_refinement_n5_re100_drag_lift_deltap.csv}\refined
\pgfplotstableread[col sep=comma]{img/data/cylinder2d_unrefined_n12_re100_drag_lift_deltap.csv}\uniform
\pgfplotstableread[col sep=comma]{img/data/cylinder2d_unrefined_n40_re100_drag_lift_deltap.csv}\uniformHighRes

\begin{axis}[
	scale only axis,
	height=7.5cm,
	width=0.85*\textwidth,
	legend cell align=left,
	legend pos=south east,
	grid=both,
	domain=0:16,
	xmin=0, xmax=16,
	ylabel={Widerstandskoeffizient},
	ylabel absolute, every axis y label/.append style={yshift=0.2cm}
]

\addplot[
	color=blue!50!white,
	very thin
] table [
	x expr=\thisrow{time}, y=drag
] {\uniform};

\addplot[
	color=green!70!black,
	thick
] table [
	x expr=8*\thisrow{time}, y=drag
] {\refined};

\addplot[color=black]{3.23};
\addlegendentry {Gemittelte Referenzlösung \(c_\text{Wmax} := \num{3.23}\)};

\end{axis}

\begin{axis}[
	scale only axis,
	height=7.5cm,
	yshift=-8.75cm,
	width=0.85*\textwidth,
	legend cell align=left,
	legend pos=south west,
	grid=both,
	domain=0:16,
	xmin=0, xmax=16,
	xlabel={Simulierte physikalische Zeit},
	ylabel={Auftriebskoeffizient},
	ylabel absolute, every axis y label/.append style={yshift=0.2cm},
	x unit=s
]

\addplot[
	color=blue!50!white,
	very thin
] table [
	x expr=\thisrow{time}, y=lift
] {\uniform};
\addlegendentry {Uniformes \(N=12\) Gitter};

\addplot[
	color=green!70!black,
	thick
] table [
	x expr=8*\thisrow{time}, y=lift
] {\refined};
\addlegendentry {Problembezogen verfeinertes \(N=5\) Gitter};

\addplot[color=black]{1.0};
\addlegendentry {Gemittelte Referenzlösung \(c_\text{Amax} := 1\)};

\end{axis}

\end{tikzpicture}