%% mechanics-pulley-two-masses.tex
%% A fixed pulley with two freely hanging masses (Atwood arrangement).

\documentclass[tikz,border=5mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{tikzphysics}

\begin{document}
\begin{tikzpicture}
  \node[physicsceiling, physics ceiling width=3.2, physics ceiling depth=0.3]
    (C) at (0,0) {};
  \draw (C.surface) -- ++(0,-0.5) coordinate (mount);
  \node[physicspulley, physics pulley diameter=0.85] (P) at (mount) {};

  \node[physicsblock, physics block width=0.75, physics block height=0.75]
    (L) at ($(P.west)+(0,-2.2)$) {$m_1$};
  \node[physicsblock, physics block width=0.75, physics block height=0.75]
    (R) at ($(P.east)+(0,-2.8)$) {$m_2$};

  \physicsstringoverpulley[physics string route=over]{L.north}{P}{R.north}
\end{tikzpicture}
\end{document}
