我的问题是我不知道如何在电路中绘制圆形网格电流。以下杂乱的电流是用 MS Paint 生成的。任何帮助都将不胜感激。
\documentclass[border=0.4cm]{standalone}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}[american voltages,cute inductors]
\draw
(0,3) to [V,l_=$\frac{1}{s}$](0,0)
(4,3)
node[label={above:$\text{V}_{x}$}] {}
to [R,*-*, l^=$1$] (4,0)
node[label={below:Ref}] {}
(8,3) to [V,l=$\frac{1}{s}$] (8,0)
(0,0)--(8,0)
(0,3) to [C, l^=$\frac{2}{s}$] (4,3)
to [L, l^=$4s$] (8,3)
;\end{circuitikz}
\end{document}
答案1
arc
像在普通 tikzpicture 中一样绘制两个s。
\documentclass[border=0.4cm]{standalone}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}[american voltages,cute inductors]
\draw
(0,3) to [V,l_=$\frac{1}{s}$](0,0)
(4,3)
node[label={above:$\text{V}_{x}$}] {}
to [R,*-*, l^=$1$] (4,0)
node[label={below:Ref}] {}
(8,3) to [V,l=$\frac{1}{s}$] (8,0)
(0,0)--(8,0)
(0,3) to [C, l^=$\frac{2}{s}$] (4,3)
to [L, l^=$4s$] (8,3);
\draw[->,shift={(2,1.5)}] (120:.7cm) arc (120:-90:.7cm) node at(0,0){$I$};
\draw[->,shift={(6,1.5)}] (120:.7cm) arc (120:-90:.7cm) node at(0,0){$I_L$};
\end{circuitikz}
\end{document}