-
Notifications
You must be signed in to change notification settings - Fork 0
/
dropletDiagramPresentation.tex
51 lines (37 loc) · 1.98 KB
/
dropletDiagramPresentation.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
\documentclass[Presentation.tex]{subfiles}
\begin{document}
\begin{tikzpicture}[scale=0.7,auto,semithick,>=to,decoration={markings,mark=at position 0.5 with {\arrow{>}}}]
\def\unitlessLegDist{1.5113}
\def\legDist{\unitlessLegDist cm}
\def\legRad{0.04cm}
\def\legShade{black!75}
\def\motWidth{0.2cm}
\def\motHeight{0.8cm}
\def\motDist{1.90cm}
\def\motShade{gray!50}
\def\dropletOrient{90}
\def\pivotTheta{20}
\pgfmathsetmacro{\helpfulTheta}{asin(cos(\pivotTheta/2))}
\pgfmathsetmacro{\chordLength}{2*\unitlessLegDist*sin(\pivotTheta/2)}
\pgfmathsetmacro{\answerTheta}{180-\helpfulTheta - 30}
\pgfmathsetmacro{\resultXunitless}{\chordLength*cos(\answerTheta)}
\pgfmathsetmacro{\resultYunitless}{\chordLength*sin(\answerTheta)}
\def\shiftX{\resultXunitless cm}
\def\shiftY{\resultYunitless cm}
\pgftransformrotate{\dropletOrient}
\draw[thick] (0cm,0cm) circle(2.2cm);
\draw[gray!50] (0cm, 0cm) -- (2.2cm,0cm);
% \draw[] (-120:\motDist) -- (60:\legDist) node[below, midway] {\large$\ell$}; %This is the line showing '\ell'
\foreach \i in {1,...,3} {
\node[rectangle,draw=black,fill=\motShade,minimum width=\motWidth, minimum height=\motHeight,
rotate around={(-\i*120-240+\dropletOrient):(0,0)},label={[label distance=-0.05cm]-180:$m_\i$}] at (-120*\i-240:\motDist) {};
\node[circle, draw=none, fill=\legShade, inner sep=\legRad,rotate around={-\i*120-60:(0,0)},label={[label distance=-0.13cm]90:{\small$l_\i$}}] at (-60-120*\i:\legDist) {};
}
%\node[inner sep=0mm, fill=white] at (-\rxPhi*0.5+\txPhi*0.5 + \rxPhi:0.35cm) {$\theta$};
\pgftransformrotate{-\dropletOrient}
\draw[|-|,black, thick] (-2.5,-2.2) -- (-2.5, 2.2) node[rotate=90,midway,anchor=south] {$4.4\,\mathrm{cm}$};
%\draw[thin] (0,0) arc (-30:-30+\pivotTheta:\legDist) node[right,midway, inner sep=0mm,label={[label distance=-0.02cm]365:$\theta$}] {};
% \draw[gray] (150:\legDist) -- (\shiftX, \shiftY);
% \node[inner sep=0mm,label=-10:$\theta$] at (\shiftX/2,\shiftY/2) {};
\end{tikzpicture}
\end{document}