From 292f7d0710f5986efdd9fb7ac3185c1d9e42a502 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 17 Jan 2019 20:58:56 +0100 Subject: Add nice plot of mass loss depending on the used interpolation --- img/massloss_interpolation_plot.tikz | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 img/massloss_interpolation_plot.tikz (limited to 'img/massloss_interpolation_plot.tikz') diff --git a/img/massloss_interpolation_plot.tikz b/img/massloss_interpolation_plot.tikz new file mode 100644 index 0000000..4cc8e5d --- /dev/null +++ b/img/massloss_interpolation_plot.tikz @@ -0,0 +1,54 @@ +\begin{tikzpicture} +\begin{axis}[ + scale only axis, + height=9cm, + width=0.9*\textwidth, + mark size=0, + line width=0.2pt, + legend pos=south west +] + +\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 Interpolation mit (\ref{eq:ipol4ord})}; + +\addplot table[ + x=x, y=linear, + col sep=semicolon, + /pgf/number format/read comma as period +]{img/data/poiseuille2d_bisected_re100_both.csv}; +\draw [dotted] (axis cs:1.9,1.35) rectangle (axis cs:2.09,1.45); +\addlegendentry{Druckverlauf bei Interpolation mit (\ref{eq:ipol2ord})}; +\end{axis} + +\begin{axis}[ + yshift=4.5cm, + xshift=9cm, + scale only axis, + height=3cm, + width=4cm, + mark size=0, + line width=0.2pt, + ticks=none, + xticklabels={,}, + 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} -- cgit v1.2.3