aboutsummaryrefslogtreecommitdiff
path: root/img/poiseuille2d_grid.tikz
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-01-19 15:50:58 +0100
committerAdrian Kummerlaender2019-01-19 15:50:58 +0100
commit7e3d8ca683f9cc32a31724c0f7c4c3fb325852d2 (patch)
tree3c164e41eb4df63b7dbfd386fd56ebf6a7a51c92 /img/poiseuille2d_grid.tikz
parente440d98649dfc7cf36fadd485c7762612f12d05c (diff)
downloadgrid_refinement_bsc_thesis-7e3d8ca683f9cc32a31724c0f7c4c3fb325852d2.tar
grid_refinement_bsc_thesis-7e3d8ca683f9cc32a31724c0f7c4c3fb325852d2.tar.gz
grid_refinement_bsc_thesis-7e3d8ca683f9cc32a31724c0f7c4c3fb325852d2.tar.bz2
grid_refinement_bsc_thesis-7e3d8ca683f9cc32a31724c0f7c4c3fb325852d2.tar.lz
grid_refinement_bsc_thesis-7e3d8ca683f9cc32a31724c0f7c4c3fb325852d2.tar.xz
grid_refinement_bsc_thesis-7e3d8ca683f9cc32a31724c0f7c4c3fb325852d2.tar.zst
grid_refinement_bsc_thesis-7e3d8ca683f9cc32a31724c0f7c4c3fb325852d2.zip
Generate grid plots from ParaView exported CSV
Nice.
Diffstat (limited to 'img/poiseuille2d_grid.tikz')
-rw-r--r--img/poiseuille2d_grid.tikz36
1 files changed, 36 insertions, 0 deletions
diff --git a/img/poiseuille2d_grid.tikz b/img/poiseuille2d_grid.tikz
new file mode 100644
index 0000000..3df52a8
--- /dev/null
+++ b/img/poiseuille2d_grid.tikz
@@ -0,0 +1,36 @@
+\begin{tikzpicture}
+\begin{axis}[
+ scale only axis,
+ height=(1.1*\textwidth)/4,
+ width=1.1*\textwidth,
+ axis equal,
+ xmin=0, xmax=4,
+ ymin=0, ymax=1,
+ scatter/classes={
+ 1={color=blue},
+ 2={color=black},
+ 3={color=green},
+ 4={color=red}
+ },
+ legend style={
+ at={(0.5,-0.2)},
+ anchor=north,
+ draw=none,
+ column sep=1ex
+ },
+ legend columns=4,
+ legend image post style={scale=1.5}
+]
+
+\addplot[scatter,only marks,point meta=explicit] table[
+ x=x, y=y, point meta=\thisrow{geometry},
+ col sep=semicolon,
+ /pgf/number format/read comma as period
+] {img/data/poiseuille2d_re10_n10_grid.csv};
+
+\addlegendentry{Fluid}
+\addlegendentry{Wand}
+\addlegendentry{Einfluss}
+\addlegendentry{Ausfluss}
+\end{axis}
+\end{tikzpicture}