Блог Федора Сарафанова

Исходники иллюстрации

pre.tex

\documentclass[tikz]{standalone}\input{pre.tex}\begin{document}\begin{tikzpicture}
    \begin{scope}[scale=1, rotate=30]
        \draw (0.5,0) circle (0.28);

        \draw[acceleration,->] (1,3) -- node[above] {$\vec{b}$} ++ (1,0);
        \draw[axis,->] (-1,3) --  ++ (5,0) node[right] {$+x$}; 
        \draw[axis,<-] (-1,4) node[above] {$+y$} --  ++ (0,-3.55) ; 

        \draw (2.5,0) circle (0.28);
        \draw[fill=white] (0,0) rectangle (3,0.3);
        \draw[line width=2pt] (2.5,0.3) -- ++(0,2) -- ++(-1,0) ++(0,1pt) coordinate (o);

        \draw[fill=black] (o) -- ++(-150:1.5cm) coordinate (b) circle (2pt); 

        \draw[axis] (o) -- ++ (0,-3);

        \draw[interface, pattern = north west lines,] (-1,-0.3) rectangle ++(5,-0.3);
        % \draw[interface, pattern=vertical lines] (-1,-0.3) -- (4,-0.3) --  ++(-150:0.6) -- (-1,-0.6) -- cycle;
        \draw[thick] (-1,-0.3) -- ++(5,0);

        \draw[force,->] (b) -- ++(30:1) node[above,left] {$\vec{T}$};


    \end{scope}
           \draw[solid,shorten >=0.5pt, ] (o) ++ (-90:1)
                arc(-90:-120:1);
            \node at ($(o) + (-104:1.2)$) {$\alpha$};

           \draw[solid,shorten >=0.5pt, ] (o) ++ (-60:1.2)
                arc(-60:-90:1.2);
            \node at ($(o) + (-75:1.4)$) {$\phi$};

        \draw[axis] (o) -- ++ (0,-3.6);

        \draw[force,->] (b)  -- node[left, pos=0.4] {$m\vec{g}$} ++(0,-1);
        \draw[fill=white, draw=white] (-0.7,-0.78) rectangle ++(4.31,-0.3);
        \draw[interface, pattern = north west lines,] (-0.7,-0.78) rectangle ++(4.31,-0.3);
        \draw[thick] (-0.7,-0.78) -- ++(4.31,0);
        \draw[acceleration,->] (3,3.55) -- node[left] {$\vec{g}$} ++(0,-1);

    
\end{tikzpicture}\end{document}