2

Using circuitikz I am trying to get an americaninductor with a line next to it representing a core. Or said differently, I want something like a cute choke but with the coil looking like an americaninductor (semi-circles). Something like the second inductor (FeSi Core inductor) enter image description here

Is this possible? My code is as follows:

\documentclass{article}
\usepackage[europeanresistors,americaninductors]{circuitikz}

\begin{document}

\begin{circuitikz} \draw (0,-2)node[left] {} to [short,o-] (0,0) to [short,-*] (1,0); \draw thick-- +(30:0.89); \draw (1.9,0) toshort,- to resistor to lamp to short,-* to (0,-5) to [short,-o] (0,-3);

\draw (3,0) to (5,0) to [L] (5,-3) to lamp to (5,-5) to (3,-5); \end{circuitikz}

\end{document}

user1583209
  • 785
  • 4
  • 12
  • is this what u want -- https://tex.stackexchange.com/questions/530609/how-to-draw-a-3-phase-transformer-in-circuitikz – js bibra Mar 29 '21 at 14:24
  • @jsbibra Not sure what I am looking at, but I guess not. I want an americaninductor (coil represented by semicircles) with a line next to it. I added a picture. – user1583209 Mar 29 '21 at 14:26
  • wheres the picture – js bibra Mar 29 '21 at 14:29
  • @jsbibra pic should be there now – user1583209 Mar 29 '21 at 14:33
  • 1
    If you move the label to the opposite side, you will have plenty of room to add lines. The solenoid is trickier, but doable (see https://tex.stackexchange.com/questions/584424/draw-transformer-circuitikz/584429?r=SearchResults&s=2|0.0000#584429) – John Kormylo Mar 29 '21 at 16:00

2 Answers2

3

This should have happened before or after... ok, if you look at the manual, current version, page 45:

enter image description here

and the rationale is... I don't know. Probably it could be a reasonable feature request for the package, please feel free to add it. I will have a look to see if it's difficult to incorporate.

From now you can just add the line after-the-fact:

\documentclass[border=10pt]{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{tikzpicture}[]
    \draw (0,1) to [cute choke=$L_1$] ++(3,0);
    \draw (0,0) to [american inductor=$L_2$, name=l] ++(3,0);
    \draw [thick]([yshift=1pt]l.north west) -- ([yshift=1pt]l.north east);
\end{tikzpicture}
\end{document}

enter image description here

Since v1.3.3 (not yet released on 2021-04-01) you will be able to use

\draw (0,0) to [american inductor=$L_2$, name=l] ++(3,0);
\draw [thick](l.core west) -- (l.core east);

so you will have no problems with rotations.

Rmano
  • 40,848
  • 3
  • 64
  • 125
0

Like this ?

enter image description here

In this case, use to [cute choke] (5, -3) instead of to [L] (5, -3)

With the option twolineschoke like to [cute choke, twolineschoke ] (5, -3) you obtain

enter image description here

Nicolas
  • 1,023