aboutsummaryrefslogtreecommitdiff
path: root/img/cylinder2d_lift_comparison.tikz
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-02-06 14:16:29 +0100
committerAdrian Kummerlaender2019-02-06 14:16:29 +0100
commit90fa82533991c68396e5932a85cbaeec200adc60 (patch)
tree5b329b385a6724119c120f231ea0dbba73672aef /img/cylinder2d_lift_comparison.tikz
parent8221184819a52f6a83d64f8f03559778ec9f29f2 (diff)
downloadgrid_refinement_bsc_thesis-90fa82533991c68396e5932a85cbaeec200adc60.tar
grid_refinement_bsc_thesis-90fa82533991c68396e5932a85cbaeec200adc60.tar.gz
grid_refinement_bsc_thesis-90fa82533991c68396e5932a85cbaeec200adc60.tar.bz2
grid_refinement_bsc_thesis-90fa82533991c68396e5932a85cbaeec200adc60.tar.xz
grid_refinement_bsc_thesis-90fa82533991c68396e5932a85cbaeec200adc60.zip
Add cylinder2d comparison plots
Diffstat (limited to 'img/cylinder2d_lift_comparison.tikz')
-rw-r--r--img/cylinder2d_lift_comparison.tikz39
1 files changed, 39 insertions, 0 deletions
diff --git a/img/cylinder2d_lift_comparison.tikz b/img/cylinder2d_lift_comparison.tikz
new file mode 100644
index 0000000..8bdc295
--- /dev/null
+++ b/img/cylinder2d_lift_comparison.tikz
@@ -0,0 +1,39 @@
+\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
+
+\begin{axis}[
+ scale only axis,
+ height=8cm,
+ 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 in Sekunden},
+ ylabel={Auftriebskraft}
+]
+
+\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}\)};
+
+\end{axis}
+\end{tikzpicture}
+