aboutsummaryrefslogtreecommitdiff
path: root/img/massloss_interpolation_plot.tikz
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-01-17 20:58:56 +0100
committerAdrian Kummerlaender2019-01-17 20:58:56 +0100
commit292f7d0710f5986efdd9fb7ac3185c1d9e42a502 (patch)
treee48dc83f3c1acb62d85b94bcc688abf6f84011c1 /img/massloss_interpolation_plot.tikz
parent1b44dd74163a951c1f71d84e66b4e0f9f915f6a8 (diff)
downloadgrid_refinement_bsc_thesis-292f7d0710f5986efdd9fb7ac3185c1d9e42a502.tar
grid_refinement_bsc_thesis-292f7d0710f5986efdd9fb7ac3185c1d9e42a502.tar.gz
grid_refinement_bsc_thesis-292f7d0710f5986efdd9fb7ac3185c1d9e42a502.tar.bz2
grid_refinement_bsc_thesis-292f7d0710f5986efdd9fb7ac3185c1d9e42a502.tar.lz
grid_refinement_bsc_thesis-292f7d0710f5986efdd9fb7ac3185c1d9e42a502.tar.xz
grid_refinement_bsc_thesis-292f7d0710f5986efdd9fb7ac3185c1d9e42a502.tar.zst
grid_refinement_bsc_thesis-292f7d0710f5986efdd9fb7ac3185c1d9e42a502.zip
Add nice plot of mass loss depending on the used interpolation
Diffstat (limited to 'img/massloss_interpolation_plot.tikz')
-rw-r--r--img/massloss_interpolation_plot.tikz54
1 files changed, 54 insertions, 0 deletions
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}