From 075ae15277c04fd96180a5f93b501d995d1b9a43 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 1 Mar 2019 11:33:39 +0100 Subject: Relayout cylinder2d coefficient section --- img/cylinder2d_drag_lift_comparison.tikz | 75 ++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 img/cylinder2d_drag_lift_comparison.tikz (limited to 'img/cylinder2d_drag_lift_comparison.tikz') diff --git a/img/cylinder2d_drag_lift_comparison.tikz b/img/cylinder2d_drag_lift_comparison.tikz new file mode 100644 index 0000000..ca4bb02 --- /dev/null +++ b/img/cylinder2d_drag_lift_comparison.tikz @@ -0,0 +1,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.9*\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.9*\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{Lmax} := 1\)}; + +\end{axis} + +\end{tikzpicture} -- cgit v1.2.3