我拼命想画出两个电感器之间的互耦,如下所示:
或者
其中实际重点是两个线圈的互耦 M。当我在网上搜索时,我浏览了这两张图片,它们是电路讲座的一部分。显然,它们是使用 Circuitikz 完成的,但我无法确定作者并直接询问他。
例如,我想在这两个线圈之间添加相互的:
\documentclass{article}
\usepackage{tikz}
\usepackage[siunitx,europeanresistors,cuteinductors,americanvoltages,americancurrents]{circuitikz}
\begin{document}
\begin{figure}[h!]
\centering
\begin{circuitikz}
\draw (0,0)
to[sV=$V_0$] (0,2)
to[L=$L_1$] (2,2)
to[short] (2,0)
to[L=$L_2$] (0,0) ;
\end{circuitikz}
\caption{Two coils without mutual coupling.}
\end{figure}
\end{document}
提前致谢!
答案1
这是一种可能的解决方案。amssymb 用于环路电流。
代码
\documentclass{article}
\usepackage{tikz}
\usepackage[siunitx,cuteinductors,americanvoltages,americancurrents]{circuitikz}
\usepackage{latexsym,amssymb,amsmath}
\begin{document}
\begin{circuitikz}
\draw (0,0) to [R=$R_1$] (2,0) -| (3,-1) to [L,l_=$L_1$] (3,-3) |- (-1,-4) to [V,l=$v_g$] (-1,0) -- (0,0)
(1,-2) node[scale=6]{$\circlearrowright$}
(1,-2) node{$I_1$};
\draw (5,0) to [short] (7,0) -| (8,-1) to [R=$R_2$,] (8,-3) |- (4,-4) to [L,l_=$L_2$] (4,0) -- (4,0) --(5,0)
(6,-2) node[scale=6]{$\circlearrowleft$}
(6,-2) node{$I_2$};
\draw [fill=black] (2.5,-1)node(a){} circle (2pt);
\draw [fill=black] (4.5,-3)node(b){} circle (2pt);
\draw [<->,>=stealth] (a) to [bend left] node[pos=0.5,fill=white] {M} ++(2,0);
\end{circuitikz}
\vspace{1cm}
\begin{circuitikz}
\draw (0,0) to [R=$R_1$,i=$I_1$] (2,0) -| (3,-1) to [L,l_=$L_1$] (3,-3) |- (-1,-4) to [V,v=$v_g$] (-1,0) -- (0,0)
(1,-2) node[scale=1.5]{$M\frac{di_2}{dt}L_1\frac{di_1}{dt}$};
\draw(1,-0.5)node{-} to [open] (1,-3.5)node(){+}; % adding polarities
\draw(2,-0.5)node{+} to [open] (2,-3.5)node(){-}; % adding polarities
\draw (5,0) to [short,i<=$I_2$] (7,0) -| (8,-1) to [R=$R_2$,] (8,-3) |- (4,-4) to [L,l_=$L_2$] (4,0) -- (4,0) --(5,0)
(6,-2) node[scale=1.5]{$L_2\frac{di_2}{dt}M\frac{di_1}{dt}$};
\draw(5,-0.5)node{+} to [open] (5,-3.5)node(){-}; % adding polarity
\draw(6,-0.5)node{-} to [open] (6,-3.5)node(){+}; % adding polarity
\draw [fill=black] (2.5,-1)node(a){} circle (2pt);
\draw [fill=black] (4.5,-3)node(b){} circle (2pt);
\draw [<->,>=stealth] (a) to [bend left] node[pos=0.5,fill=white] {M} ++(2,0);
\end{circuitikz}
\end{document}
答案2
杰西为您的耦合问题提供了答案,展示了如何使用tikz
绘制圆形箭头,以便您拥有匹配的箭头以及控制颜色的能力:
参考:
代码:
\documentclass{article}
\usepackage{tikz}
\usepackage[siunitx,europeanresistors,cuteinductors,americanvoltages,americancurrents]{circuitikz}
\usepackage{calc}
%% https://tex.stackexchange.com/questions/29841/how-to-put-a-symbol-inside-a-circle-arrow/29856#29856
\makeatletter
\newlength\@SizeOfCirc%
\newcommand{\CricArrowRight}[2][]{%
\setlength{\@SizeOfCirc}{\maxof{\widthof{#2}}{\heightof{#2}}}%
\tikz [x=1.0ex,y=1.0ex,line width=.20ex, draw=black, fill=black, -stealth, #1]%
\draw [anchor=center]%
node (0,0) {#2}%
(0,1.2\@SizeOfCirc) arc (85:-240:1.2\@SizeOfCirc);%
}%
\newcommand{\CricArrowLeft}[2][]{\CricArrowRight[xscale=-1,#1]{#2}}%
\makeatother
\begin{document}
\begin{circuitikz}
\draw (0,0) to [R=$R_1$] (2,0) -| (3,-1) to [L,l_=$L_1$] (3,-3) |- (-1,-4) to [V,l=$v_g$] (-1,0) -- (0,0)
(1,-2) node{\CricArrowRight[draw=cyan, fill=cyan, text=red]{$I_1$}};
\draw (5,0) to [short] (7,0) -| (8,-1) to [R=$R_2$,] (8,-3) |- (4,-4) to [L,l_=$L_2$] (4,0) -- (4,0) --(5,0)
(6,-2) node{\CricArrowLeft{$I_2$}};
\draw [fill=black] (2.5,-1)node(a){} circle (2pt);
\draw [fill=black] (4.5,-3)node(b){} circle (2pt);
\draw [<->,>=stealth] (a) to [bend left] node[pos=0.5,fill=white] {M} ++(2,0);
\end{circuitikz}
\end{document}