我想绘制一个如下所示的电路图:
我正遭受那些圆形流动 $i_1(t),i_2(t)$ 的困扰(我把它们画成红色来指出;它们实际上不需要上色)。
我到目前为止已经编码:
\begin{circuitikz}
\ctikzset{inductor=american}
\draw(0,0)to[open,v^>=$v_i(t)$,o-o](0,2);
\draw(0,2)to[short,o-*,R=$R_1$](2,2)to[short,*-*,L=$L$](2,0);
\draw(2,2)to[short,*-*,R=$R_2$](4,2)to[C,*-,l_=$C$,v^<=$v_o(t)$](4,0);
\draw(0,0)to[short,-*](2,0)to[short,*-](4,0);
% FIXME the following line and so far
\draw(1,1.5)arc[short,start angle=90,end angle=-90,I=$i_1(t)$,radius=0.5];
\end{circuitikz}
,输出:
答案1
\documentclass[border=3.1314592mm]{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\ctikzset{inductor=american}
\draw (0,0) to [open,v^>=$v_i(t)$] ++ (0,2)
to [R=$R_1$,o-*] ++ (2,0) coordinate (L)
to [R=$R_2$,*-*] ++ (3,0)
to [C,a=$C$,v^<=$v_o(t)$] ++ (0,-2)
to [short, *-o] (0,0)
(L) to [L=$L$,-*] ++ (0,-2);
%
% now is FIXED :-)
\draw[->] (0.8,1.5) arc(110:-110:5mm) node[midway, left, font=\footnotesize] {$i_1(t)$};
\draw[->] (3.3,1.5) arc(110:-110:5mm) node[midway, left, font=\footnotesize] {$i_2(t)$};
\end{circuitikz}
\end{document}
或者(我认为更好):
其中 MWE 是
\documentclass[border=3.1314592mm]{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\ctikzset{inductor=american,
bipoles/capacitor/height=0.4,
bipoles/capacitor/width=0.1
}
\draw (0,0) to [open,v^>=$v_i(t)$] ++ (0,2)
to [R=$R_1$,o-*] ++ (2,0) coordinate (L)
to [R=$R_2$,*- ] ++ (3,0)
to [C,a=$C$,v^<=$v_o(t)$] ++ (0,-2)
to [short, -o] (0,0)
(L) to [L=$L$,-*] ++ (0,-2);
%
% now is FIXED :-)
\draw[->] (0.8,1.5) arc(110:-110:5mm) node[midway, left, font=\footnotesize] {$i_1(t)$};
\draw[->] (3.7,0.5) arc(290: 70:5mm) node[midway, right,font=\footnotesize] {$i_2(t)$};
\end{circuitikz}
\end{document}