Wie füge ich Text für die unbekannte Kraft auf dem blauen Pfeil hinzu?

Wie füge ich Text für die unbekannte Kraft auf dem blauen Pfeil hinzu?

Ich möchte F_P zur unbekannten Kraft (dem blauen Pfeil) hinzufügen, weiß aber nicht, wie das geht.

 \begin{wrapfigure}{r}{3.2cm}   
\begin{tikzpicture}[>=latex',scale=1.5]
% save length of g-vector and theta to macros
\pgfmathsetmacro{\Gvec}{1.5}
\pgfmathsetmacro{\myAngle}{30}
% calculate lengths of vector components
\pgfmathsetmacro{\Gcos}{\Gvec*cos(\myAngle)}
\pgfmathsetmacro{\Gsin}{\Gvec*sin(\myAngle)}

\coordinate (centro) at (0,0);
\draw[dashed,gray,-] (centro) -- ++ (0,-3.5) node (mary) [black,below]{$ $};
\draw[thick] (centro) -- ++(270+\myAngle:3) coordinate (bob);
\pic [draw, ->, "$\theta$", angle eccentricity=2.3] {angle = mary--centro--bob};
\draw [blue, -stealth] (bob) -- ($(bob)!\Gcos cm!(centro)$);
\draw [-stealth] (bob) -- ($(bob)!-\Gcos cm!(centro)$)
  coordinate (gcos)
  node[midway,above right] {$mg\cos\theta$};
\draw [-stealth] (bob) -- ($(bob)!\Gsin cm!90:(centro)$)
  coordinate (gsin)
  node[midway,above left] {$mg\sin\theta$};
\draw [-stealth] (bob) -- ++(0,-\Gvec)
  coordinate (g)
  node[near end,left] {$mg$};
\pic [draw, ->, "$\theta$", angle eccentricity=1.5] {angle = g--bob--gcos};
\end{tikzpicture}
\captionof{figure}{Free body diagram of physical pendulum}

Bildbeschreibung hier eingeben

Antwort1

Es gibt bereits gute Kommentare von @Qrrbrbirlbel und @John Krmylo. Ich tippe es einfach für Sie ein und füge den erforderlichen Code hinzu, um Ihr MWE kompilierbar zu machen.

\documentclass[a4paper]{article}
\usepackage{xcolor,tikz}
\usetikzlibrary{arrows,angles,quotes,calc}


\begin{document}
\begin{tikzpicture}[>=latex',scale=1.5]
% save length of g-vector and theta to macros
\pgfmathsetmacro{\Gvec}{1.5}
\pgfmathsetmacro{\myAngle}{30}
% calculate lengths of vector components
\pgfmathsetmacro{\Gcos}{\Gvec*cos(\myAngle)}
\pgfmathsetmacro{\Gsin}{\Gvec*sin(\myAngle)}

\coordinate (centro) at (0,0);
\draw[dashed,gray,-] (centro) -- ++ (0,-3.5) node (mary) [black,below]{$ $};
\draw[thick] (centro) -- ++(270+\myAngle:3) coordinate (bob);
\pic [draw, ->, "$\theta$", angle eccentricity=2.3] {angle = mary--centro--bob};
\draw [blue, -stealth] (bob) -- ($(bob)!\Gcos cm!(centro)$)
  node[midway,above right] {$F_P$};
\draw [-stealth] (bob) -- ($(bob)!-\Gcos cm!(centro)$)
  coordinate (gcos)
  node[midway,above right] {$mg\cos\theta$};
\draw [-stealth] (bob) -- ($(bob)!\Gsin cm!90:(centro)$)
  coordinate (gsin)
  node[midway,above left] {$mg\sin\theta$};
\draw [-stealth] (bob) -- ++(0,-\Gvec)
  coordinate (g)
  node[near end,left] {$mg$};
\pic [draw, ->, "$\theta$", angle eccentricity=1.5] {angle = g--bob--gcos};
\end{tikzpicture}
\end{document}

Ergebnis

verwandte Informationen