[Tex/LaTex] How to draw an inductive coupling with circuitikz and TikZ

circuitikztikz-pgf

I'd want to draw a circuit with an inductive coupling, as you can see in the following image:

enter image description here

What I need now is putting the dots related to the inductive coupling, as well as the power lines. I think I could draw these last ones using TikZ if they were flat, but as they are wavy, I don't know how to do it.

This is the code I've written till now (I've put two lines between both coupled inductors):

\documentclass[border=2pt]{standalone}
\usepackage{circuitikz}

 \begin{document}
\begin{figure}
\centering
\begin{circuitikz}
  \draw (0,0) to [short,o-o] (8,0);
  \draw (0,1.5) to [short,o-] (3,1.5);
  \draw (5,1.5) to [short,-o] (8,1.5);
  \draw (3,1.5) to [inductor] (5,1.5);
  \draw (6,2.5) to [short] (5,2.5) to [inductor] (3,2.5) to [short] (2,2.5) to [short] (2,3.5) to [C] (6,3.5) to [short] (6,2.5);
  \draw (2,3.5) to [short] (2,4.5) to [inductor] (6,4.5) to [short] (6,3.5);
  \draw (2,4.5) to [short] (2,5.5) to [resistor] (6,5.5) to [short] (6,4.5);
  \draw[-] (3.5,1.95) -- (4.5,1.95) node{};
  \draw[-] (3.5,2.05) -- (4.5,2.05) node{};
\end{circuitikz} 
\end{figure}
\end{document}

How could I complete this drawing?

Thank you.

Best Answer

To draw the "wavy" lines, you can use the snake line pattern offered by the decorations.pathmorphing library. Play with the segment length and amplitude parameters to get the exact line style you want.

Code

\documentclass[border=2pt]{standalone}
\usepackage{circuitikz}
\usetikzlibrary{tikzmark,decorations.pathmorphing}

\begin{document}
\begin{circuitikz}
  \draw (0,0) to [short,o-o] (8,0);
  \draw (0,1.5) to [short,o-] (3,1.5);
  \draw (5,1.5) to [short,-o] (8,1.5);
  \draw (3,1.5) to [inductor] (5,1.5);
  \draw (6,2.5) to [short] (5,2.5) to [inductor] (3,2.5) to [short] (2,2.5) to [short] (2,3.5) to [C] (6,3.5) to [short] (6,2.5);
  \draw (2,3.5) to [short] (2,4.5) to [inductor] (6,4.5) to [short] (6,3.5);
  \draw (2,4.5) to [short] (2,5.5) to [resistor] (6,5.5) to [short] (6,4.5);
  \draw[-] (3.5,1.95) -- (4.5,1.95) node{};
  \draw[-] (3.5,2.05) -- (4.5,2.05) node{};

  % wavy lines
  \draw[->,decorate,decoration={snake,segment length=30pt,amplitude=4pt}](0,.75)--(2,.75);
  \draw[->,decorate,decoration={snake,segment length=30pt,amplitude=4pt}](6,.75)--(8,.75);
\end{circuitikz} 
\end{document}

Output

enter image description here

Related Question