实际上,我想对我使用 Circuitikz 绘制的电路进行一些更改。代码如下:
\documentclass[review]{elsarticle}
\usepackage{graphicx}
\usepackage{amssymb,amsmath,nccmath}
\usepackage{cclicenses}
\usepackage{makecell}
\usepackage[straightvoltages]{circuitikz}
\usetikzlibrary{arrows}
\usepackage{lscape,array}
\begin{document}
\begin{circuitikz}[scale=0.5][american voltages]
\ctikzset{bipoles/length=.8cm}
\draw
(0,0) to [open,v>=${v}_{ds}$] (0,5)
to [short, *- ,i=${i}_{ds}$] (0.3,5)
to [R, l=$R_s$] (2,5)
to [L, l=$X_s$] (3.2,5)
to [european voltage source, l_=${\omega}_s {\phi}_{qs}$] (4.9,5)
(4.5,5) to [short, -] (5,5)
(5,5) to [L, l_=$X_m$] (5,0)
(5,5) to [european voltage source, l_=${\omega}_r {\phi}_{qr}$] (7,5)
to [L, l=$X_r$] (8,5)
to [R, l=$R_r$] (10,5)
to [short, -* ,i<=${i}_{dr}$] (10.3,5)
(10.3,0) to [open, v>=${v}_{dr}$] (10.3,5)
(0,0) to [short, *-*] (10.3,0);
\end{circuitikz}
\end{document}
答案1
对我来说,你不太清楚你想要实现什么。据我了解,如果你想要这个: 那么你应该使用这个代码:
\documentclass[review]{elsarticle}
\usepackage{graphicx}
\usepackage{amssymb,amsmath,nccmath}
\usepackage{cclicenses}
\usepackage{makecell}
\usepackage[straightvoltages]{circuitikz}
\usetikzlibrary{arrows}
\usepackage{lscape,array}
\begin{document}
\begin{circuitikz}[scale=0.5][american voltages]
\ctikzset{bipoles/length=.8cm}
\draw
(0,0) to [open,v>=$v_{ds}$] (0,5)
to [short, *- ,i=$i_{ds}$] (0.3,5)
to [R, l=$R_s$] (2,5)
to [L, l=$X_s$] (3.2,5)
to [european voltage source, l^=$\omega_s \phi_{qs}$] (4.9,5)
(4.5,5) to [short, -] (5,5)
(5,5) to [L, l_=$X_m$] (5,0)
(5,5) to [european voltage source, l^=$\omega_r \phi_{qr}$] (7,5)
to [L, l=$X_r$] (8,5)
to [R, l=$R_r$] (10,5)
to [short, -* ,i<=$i_{dr}$] (10.3,5)
(10.3,0) to [open, v>=$v_{dr}$] (10.3,5)
(0,0) to [short, *-*] (10.3,0);
\draw[->](3.5,4.3) -- (4.9,4.3);
\draw[->](6.5,4.3) -- (5.1,4.3);
\end{circuitikz}
\end{document}