-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathturek.tex
executable file
·82 lines (68 loc) · 2.46 KB
/
turek.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
\documentclass[tikz, border = 1 cm]{standalone}
%%%%%%%%%%%%%%
\usepackage{tikz}
\usetikzlibrary{calc}
%%%%%%%%%%%%%%
%%%%%%%%%%%%%%
\definecolor{blue1}{RGB}{0,177,234}
\definecolor{blue4}{RGB}{178,231,248}
\definecolor{orange1}{RGB}{255,126,46}
%%%%%%%%%%%%%%
%%%%%%%%%%%%%%
%%%%%%%%%%%%%%
%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%
\def\xaxis{22}
\def\yaxis{4.1}
\def\sc{0.6}
%%%%%%%%%%%%%%
\begin{tikzpicture}[scale=\sc]
%%% Domain
\draw[black, very thick] (0,0) rectangle (\xaxis,\yaxis);
%%% Obstacle
\filldraw[fill=blue4,draw=blue1,thick] (2,2) circle (0.5);
%%% Top and bottom BC
\node (top) at (17,4.1) {};
\node (bot) at (17,0) {};
\node[scale=0.8] (bc_top_bot) at (15,2.05) {$u=v=0$};
\draw[-stealth] (bc_top_bot) to[out=0,in=90] (bot);
\draw[-stealth] (bc_top_bot) to[out=0,in=-90] (top);
%%% Outlet BC
\node (out) at (22,2.05) {};
\node[scale=0.8] (bc_out) at (20,1) {free pressure};
\draw[-stealth] (bc_out) to[out=90,in=180] (out);
%%% Obstacle BC
\node (obs) at (2.5,2) {};
\node[scale=0.8] (bc_obs) at (4,3) {$u=v=0$};
\draw[-stealth] (bc_obs) to[out=-90,in=0] (obs);
%%% Inlet BC
\foreach \y in{0.41, 0.82, 1.23, 1.64, 2.05, 2.46, 2.87, 3.28, 3.69}
\draw[-stealth, orange1] (0,\y) -- ({sin(0.25*3.14*(\y-0.05) r)},\y);
\node (in) at (0,0.6) {};
\node[scale=0.8] (bc_in) at (5,1.75) {$u=u_{in}$};
\draw[-stealth] (bc_in) to[out=-90,in=0] (in);
%%% Redraw domain
\draw[black, very thick] (0,0) rectangle (\xaxis,\yaxis);
%%% Draw dimensions
\draw[stealth-stealth] (-0.2,0) -- (-0.2,1.5);
\node[scale=0.7,rotate=90,anchor=north] at (-0.8,0.75) {0.15};
\draw[stealth-stealth] (-0.2,1.5) -- (-0.2,2.5);
\node[scale=0.7,rotate=90,anchor=north] at (-0.8,2.0) {0.1};
\draw[stealth-stealth] (-0.2,2.5) -- (-0.2,4.1);
\node[scale=0.7,rotate=90,anchor=north] at (-0.8,3.3) {0.16};
\draw[thin, dash pattern=on 2pt] (-0.4,1.5) -- (2.1,1.5);
\draw[thin, dash pattern=on 2pt] (-0.4,2.5) -- (2.1,2.5);
\draw[stealth-stealth] (0.0,4.3) -- (1.5,4.3);
\draw[stealth-stealth] (1.5,4.3) -- (2.5,4.3);
\node[scale=0.7] at (0.75,4.6) {0.15};
\node[scale=0.7] at (2.0,4.6) {$d$};
\draw[thin, dash pattern=on 2pt] (1.5,2.0) -- (1.5,4.5);
\draw[thin, dash pattern=on 2pt] (2.5,2.0) -- (2.5,4.5);
\draw[stealth-stealth] (0.0,-0.2) -- (22.0,-0.2);
\node[scale=0.7] at (11,-0.5) {2.2};
\draw[stealth-stealth] (22.2,0.0) -- (22.2,4.1);
\node[scale=0.7,rotate=-90,anchor=north] at (22.8,2.05) {0.41};
\end{tikzpicture}
%%%%%%%%%%%%%%
\end{document}