画一条曲线来表示相互

画一条曲线来表示相互

我想知道如何画一条曲线并将其添加到电路中来表示相互,如下所示:

在此处输入图片描述

小电路的脚本如下:

\begin{figure}
\centering
\begin{circuitikz}[american, line width=0.3, line cap=round, line join=round]
    \ctikzset{resistors/scale=0.6,capacitors/scale=0.6,inductors/scale=0.6} 
    \draw[dashed, black] (1.2,0) -- (1.6,0);
    \draw[short](1.6,0)to(2,0);

    \draw[dashed, black] (1.2,-1.5) -- (1.6,-1.5);
    \draw[short](1.6,-1.5)to(7.5,-1.5);
    
    \draw[R,l_=\gls{rs}] (2,0)to(3.5,0);
    \draw[L,l=\gls{ls}](3.5,0)to(5,0);
    \draw[R,l_=$R_\mathrm{p_i}$](3.5,-0.7)to(5,-0.7);
    \draw[short](3.5,0)to(3.5,-0.7);
    \draw[short](5,0)to(5,-0.7);
    \draw[short](5,0)to(7,0);       
    \draw[short] (7,0) to (7,-0.5)
    to[short] (6.5,-0.5)to[R,l_=$R_\mathrm{m_i}$] (6.5,-1.5);   
    \draw[short] (6.5,-0.5) to (7.5,-0.5)to[C,l=$C_\mathrm{m_i}$] (7.5,-1.5);
    \draw[short](6.5,0)to(7.5,0);
    \draw[dashed,black](7.5,0)to(8.1,0);
    \draw[dashed,black](7.5,-1.5)to(8.1,-1.5);
            
    \draw[short](2,0)to(2,2.5)
    to[short](3.7,2.5)to[short](3.7,3)
    to[C,l=$C_\mathrm{t_{ij}}$](5.2,3)to[short](5.2,3);
    \draw [short](3.7,2.5)to(3.7,2)
    to[R,l_=$R_\mathrm{t_{ij}}$](5.2,2)to[short](5.2,2);
    \draw[short](5.2,2)to(5.2,3);
    \draw[short](5.2,2.5)to(7.5,2.5);       
    \draw[dashed, black] (7.5,2.5) -- (8.1,2.5);
\end{circuitikz}
\caption{My circuit}
\label{fig:circuit}
 \end{figure}

答案1

下面的代码

\documentclass{article}
\usepackage{tikz}
\usepackage{circuitikz}
\usetikzlibrary{calc, positioning}

\begin{document}
  \begin{circuitikz}[american, line width=0.3, line cap=round, line join=round]
    \ctikzset{resistors/scale=0.6,capacitors/scale=0.6,inductors/scale=0.6} 
    \draw[dashed, black] (1.2,0) -- (1.6,0);
    \draw[short](1.6,0)to(2,0);
    
    \draw[dashed, black] (1.2,-1.5) -- (1.6,-1.5);
    \draw[short](1.6,-1.5)to(7.5,-1.5);
    
    \draw[R,l_=rs] (2,0)to(3.5,0);
    \draw[L,l=ls](3.5,0)to(5,0);
    \draw[R,l_=$R_\mathrm{p_i}$](3.5,-0.7)to(5,-0.7);
    %% line added here %%
    \draw[purple] ($(5, 0)+(0,.5)$) to [out=90, in=190] (7, 1.5) node [anchor=west] {$M$};
    %%
    \draw[short](3.5,0)to(3.5,-0.7);
    \draw[short](5,0)to(5,-0.7);
    \draw[short](5,0)to(7,0);       
    \draw[short] (7,0) to (7,-0.5)
    to[short] (6.5,-0.5)to[R,l_=$R_\mathrm{m_i}$] (6.5,-1.5);   
    \draw[short] (6.5,-0.5) to (7.5,-0.5)to[C,l=$C_\mathrm{m_i}$] (7.5,-1.5);
    \draw[short](6.5,0)to(7.5,0);
    \draw[dashed,black](7.5,0)to(8.1,0);
    \draw[dashed,black](7.5,-1.5)to(8.1,-1.5);
    
    \draw[short](2,0)to(2,2.5)
    to[short](3.7,2.5)to[short](3.7,3)
    to[C,l=$C_\mathrm{t_{ij}}$](5.2,3)to[short](5.2,3);
    \draw [short](3.7,2.5)to(3.7,2)
    to[R,l_=$R_\mathrm{t_{ij}}$](5.2,2)to[short](5.2,2);
    \draw[short](5.2,2)to(5.2,3);
    \draw[short](5.2,2.5)to(7.5,2.5);       
    \draw[dashed, black] (7.5,2.5) -- (8.1,2.5);
  \end{circuitikz}
\end{document}

生产

在此处输入图片描述

随意调整参数!

相关内容