I am looking for the Symbol of a AC-impedance as it is used often in some fields of electrical engineering. It's the symbol of a European resistor with a sinusoidal wave in it as in the picture below. Can anyone help me with this?

- 483
3 Answers
If you don't want to create a custom symbol from scratch, you could use the following code to overlay the last symbol with a small sine wave. Maybe it is sufficient for your needs:
\documentclass[border=2mm]{standalone}
\usepackage{circuitikz}
\newcommand{\sine}[1][]{%
\draw[thick, #1] ++(.8,0) sin ++(.1,.1) cos ++(.1,-.1) sin ++(.1,-.1) cos ++(.1,.1);%
}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[generic] (2,0);
\sine
\draw (2,0) to[generic] (4,0);
\draw (0,2) to[generic] (0,0);
\sine[rotate=90]
\draw (0,0) to[generic] (0,-2);
\end{circuitikz}
\end{document}
- 48,848
As far as I know, there are 2 (not so compatible to each other) ways: 1. using TikZ's library circuits.ee.IEC; and 2. using circuitikz package. Searching the keyword impedance from the manuals does not give any result. Do you want to draw it "by hand" with pic of TikZ? Note the use of [sloped] when the path is not a horizontal line.
\documentclass[tikz,border=5mm]{standalone}
\begin{document}
% inductor
\usetikzlibrary{decorations.pathmorphing}
\tikzset{inductor/.pic={
\draw[white,line width=1mm] (-.5,0)--(.5,0);
\draw[decorate,decoration={coil,aspect=0.4,segment length=1mm,amplitude=1.5mm}] (-.5,0)--(.5,0);
}}
% resistor
\tikzset{resistor/.pic={
\fill[white] (-.5,-.1) rectangle (.5,.1);
\draw[pic actions] (-.5,-.1) rectangle (.5,.1);
}}
% AC-impedance
\tikzset{AC-impedance/.pic={
\fill[white] (-.5,-.15) rectangle (.5,.15);
\draw[pic actions] (-.5,-.15) rectangle (.5,.15)
(-.25,0) sin (-.125,.075) cos (0,0) sin (.125,-.075) cos (.25,0); % sin path
}}
% capacitor
\tikzset{capacitor/.pic={
\fill[white] (-.5mm,-2mm) rectangle (.5mm,2mm);
\draw[pic actions] (-.5mm,2mm)--(-.5mm,-2mm) (.5mm,2mm)--(.5mm,-2mm);
}}
\begin{tikzpicture}[nodes={midway}]
\draw
(0,2) to pic[sloped,blue]{AC-impedance}
node[left=1mm]{$Z_1$}
(0,0) to pic{AC-impedance}
node[above=1mm]{$Z$}
(2,0) to pic{resistor}
node[above=1mm]{$R$}
(4,0) to pic{inductor}
node[above=1mm]{$L$}
(6,0) to pic{capacitor}
node[above=1mm]{$C$} (8,0);
\draw (-135:2) to
pic[sloped,red]{AC-impedance}
node[above=1mm,sloped]{$Z_2$}
(0,0);
\end{tikzpicture}
\end{document}
- 17,569
There is also another package, after circuitikz, for drawing the circuits: pst-circ. Here a small example:
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath}
\usepackage{pst-circ}
\usepackage{amssymb,scalerel}
\newcommand{\sinus}{\hstretch{1.8}{$\boldsymbol\sim$}}
\begin{document}
\begin{pspicture}(5,5)
\pnode(0,0){A}\pnode(3,0){B}
\pnode(0,2){C}\pnode(3,2){D}
\resistorlabeloffset=0(D){$\sinus$}
\wire(A)(C)
\wire(A)(B)
\wire(B)(D)
\end{pspicture}
\end{document}
- 54,118



circuitikz- but I also (like @MS-SPO) never saw it in my (too many) years in the field. If you can find some reference entry for it you can do a component request for it... – Rmano Aug 06 '21 at 22:10