I need a suggestion or help me draw this figure in circuitikz or tikz. thank u:)
Asked
Active
Viewed 221 times
0
-
1You can combine a tikz drawing of a transformer with circuitikz components. I would suggest creating a pic of one wrap of the coil. – John Kormylo Feb 22 '21 at 05:07
-
See also https://tex.stackexchange.com/questions/70090/3d-helix-torus-with-hidden-lines – John Kormylo Feb 22 '21 at 05:12
-
@JohnKormylo I understand what u say but that drawing is in 3d and I don't want it to be so difficult – Gessiel Rojas Feb 22 '21 at 05:18
-
2See also https://tex.stackexchange.com/a/154265/38080 --- you have most of it there. – Rmano Feb 22 '21 at 11:49
1 Answers
3
This should get you started. Note I used \coilwidth in the design to make changes easier.
\documentclass{standalone}
\usepackage{circuitikz}
\newcommand{\coilwidth}{0.25}
\tikzset{coil/.pic={\draw plot ({0.61\coilwidthsin(25\x)},0.01\x);}}% domain=-5:5
\begin{document}
\begin{circuitikz}
\draw (0,0) rectangle (2,2);
\draw (\coilwidth,\coilwidth) rectangle (2-\coilwidth,2-\coilwidth);
\pgfmathsetmacro{\offset}{(2-2\coilwidth-0.1)/4.5}%
\foreach \i in {0,1,2,3,4} {\draw (0.5\coilwidth, 1.22\coilwidth+\offset\i) pic{coil};}
\end{circuitikz}
\end{document}
John Kormylo
- 79,712
- 3
- 50
- 120

