# CircuiTikZ —How to create Warburg element

Good day, Can anyone help with how to create a new component in circuittikz. I am trying to create the Warburg element W shown in Fig.2 and replace the ch in Fig.1 with it.

Thanks

D.

Like this ?

Edited the resistor code to make this custom element customW.

\documentclass[border=3mm]{standalone}
\usepackage{circuitikz}

\makeatletter
\pgfcircdeclarebipole{}{\ctikzvalof{bipoles/resistor/height}}{customW}{\ctikzvalof{bipoles/resistor/height}}{\ctikzvalof{bipoles/resistor/width}}{
\pgfsetlinewidth{\pgfkeysvalueof{/tikz/circuitikz/bipoles/thickness}\pgfstartlinewidth}
\divide \pgf@circ@res@step by 8

\pgf@circ@res@other = \pgf@circ@res@left
\pgfpathmoveto{\pgfpoint{\pgf@circ@res@other}{\pgf@circ@res@up}}
\pgfpathlineto{\pgfpoint{\pgf@circ@res@other}{\pgf@circ@res@down}}
\pgfpathlineto{\pgfpoint{\pgf@circ@res@other}{\pgf@circ@res@up}}
\pgfpathlineto{\pgfpoint{\pgf@circ@res@other}{\pgf@circ@res@down}}
\pgfpathlineto{\pgfpoint{\pgf@circ@res@other}{\pgf@circ@res@up}}
\pgfsetbeveljoin
\pgfusepath{draw}
}
\def\pgf@circ@customW@path#1{\pgf@circ@bipole@path{customW}{#1}}
\compattikzset{customW/.style = {\circuitikzbasekey, /tikz/to path=\pgf@circ@customW@path, label=#1}}
\makeatother

\begin{document}
\begin{circuitikz}
\draw (3.5,0) to[customW] ++(3,0);
\end{circuitikz}
\end{document}

• thanks for the prompt response. Yes this is okay. – Dino Oct 3 '19 at 15:19