我想要显示总和的结果向量v_{ab}
,平行四边形定律矢量加法如第一张图所示:
该电路是在circuitikz上制作的。代码如下
\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage[american]{circuitikz}
\begin{document}
\begin{circuitikz}
\def\DIR{0,120,-120}
\foreach \i in
\DIR {
\draw (\i:2.5) to[sV=$ $, *-o] (0,0);
}
\draw
(0,0)node[xshift=0.5*10,yshift=-10*0.866]{d}
(0:2.5)node[xshift=10,yshift=0]{a}
(120:2.5)node[xshift=-0.5*10,yshift=10*0.866]{b}
(-120:2.5)node[xshift=-0.5*10,yshift=-10*0.866]{c}
(0:1.25)node[xshift=0,yshift=20]{$v_{ad}$}
(120:1.25)node[xshift=-0.5*10-14,yshift=-10*0.866-7]{$v_{bd}$}
(-120:1.25)node[xshift=0.5*10+14,yshift=-10*0.866-7]{$v_{cd}$}
;
\end{circuitikz}
\end{document}
生成以下第二幅图像:
v_{ab}
在circuitikz上制作的电路中,如何用平行四边形定律来显示矢量?
答案1
我对电路一无所知,这只是为了表明你可以tikz
在其中使用普通命令circuitikz
:
\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage[american]{circuitikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{circuitikz}
\draw[dashed,green] (60:2.5) to (0:2.5);
\draw[dashed,blue] (60:2.5) to (120:2.5);
\node[black,circle,text width=.13cm,inner sep=0,fill=black]at (60:2.5)(circb){};
\draw[red, Stealth-] (circb)node[xshift=0.5*10,yshift=10*0.866]{b} to (0,0);
\node at (70:1.75) {$v_{ab}$};
\def\DIR{0,120,-120}
\foreach \i in \DIR { \draw (\i:2.5) to[sV=$ $, *-o] (0,0); }
\draw (0,0)node[xshift=0.5*10,yshift=-10*0.866]{e} (0:2.5)node[xshift=10,yshift=0]{a} (120:2.5)node[xshift=-0.5*10,yshift=10*0.866]{c} (-120:2.5)node[xshift=-0.5*10,yshift=-10*0.866]{d} (0:1.25)node[xshift=0,yshift=20]{$v_{ae}$} (120:1.25)node[xshift=-0.5*10-14,yshift=-10*0.866-7]{$v_{ce}$} (-120:1.25)node[xshift=0.5*10+14,yshift=-10*0.866-7]{$v_{de}$} ;
\end{circuitikz}
\end{document}