From 5770cbf3327ed4d1a70a81c9dd0fc997ce1a804c Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 18 Jan 2019 16:31:22 +0100 Subject: Add poiseuille2d setup figure --- img/poiseuille2d_setup.tikz | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 img/poiseuille2d_setup.tikz (limited to 'img') diff --git a/img/poiseuille2d_setup.tikz b/img/poiseuille2d_setup.tikz new file mode 100644 index 0000000..c4e50f5 --- /dev/null +++ b/img/poiseuille2d_setup.tikz @@ -0,0 +1,38 @@ +\begin{tikzpicture}[ + scale=0.375, + coarse/.style={circle,thick,inner sep=2}, + fine/.style={cross out,thick,inner sep=0.75}, + legend/.style={minimum height=1,minimum width=1} +] + +\foreach \x in {0,...,20} + \foreach \y in {0,...,10}{ + \ifthenelse{\equal{\y}{0} \OR \equal{\y}{10}}{ + \node[coarse,draw=black] at (\x,\y){ }; + }{ + \ifthenelse{\equal{\x}{0}}{ + \node[coarse,draw=green] at (\x,\y){ }; + }{ + \node[coarse,draw=blue] at (\x,\y){ }; + } + } + } + +\foreach \x in {0,...,42} + \foreach \y in {0,...,20}{ + \ifthenelse{\equal{\y}{0} \OR \equal{\y}{20}}{ + \node[fine,draw=black] at (19+\x*0.5,\y*0.5){ }; + }{ + \ifthenelse{\equal{\x}{42}}{ + \node[fine,draw=red] at (19+\x*0.5,\y*0.5){ }; + }{ + \node[fine,draw=blue] at (19+\x*0.5,\y*0.5){ }; + } + } + } + +\node[legend,fill=blue,label=0:Fluid] at (9+0*6,-2) { }; +\node[legend,fill=black,label=0:Wand] at (9+1*6,-2) { }; +\node[legend,fill=green,label=0:Einfluss] at (9+2*6,-2) { }; +\node[legend,fill=red,label=0:Ausfluss] at (9+3*6,-2) { }; +\end{tikzpicture} -- cgit v1.2.3