\input{Preambule}%

\begin{document}
\ctikzset{american, bipoles/length=1cm}%
\begin{tikzpicture}[%
    show background rectangle,%
    tight background,%
    background rectangle/.style={fill=white}%
  ]
  % Version multifilaire

  %
  % Définitions
  %
  % No European transformer in circuitikz [BV, 17/07/2023]
  \tikzset{
    transformer/.pic={
      \draw (-0.2,0) circle[radius=0.4] (0.2,0) circle[radius=0.4];
    },
  }
  \pgfmathsetmacro{\xl}{0};%
  \pgfmathsetmacro{\xy}{1.75};%
  \pgfmathsetmacro{\xlt}{2.5};%
  \pgfmathsetmacro{\xrt}{4.5};%
  \pgfmathsetmacro{\xz}{6};%
  \pgfmathsetmacro{\xm}{7.5};%
  \pgfmathsetmacro{\xt}{0.5*(\xlt+\xrt)};%

  \pgfmathsetmacro{\yn}{0};%
  \pgfmathsetmacro{\ya}{2};%
  \pgfmathsetmacro{\transformerheight}{\ya-\yn};%
  \ctikzset{quadpoles/transformer/height=\transformerheight};%
  \pgfmathsetmacro{\yt}{0.5*(\ya+\yn)};%

  %
  % Dessin
  %
  % Transformer
  \draw (\xt,\yt) node[transformer] (T) {};
  \node[above] at ($(T.base)-(0,0.2)$) {$k$};%
  \draw (T.inner dot A1) node[circ] {}; %
  \draw (T.inner dot B1) node[circ] {}; %

  % Tensions amont
  \node[left] at (\xl,\ya) {$\underline{V_{1,\arm}}$};
  \node[left] at (\xl,\yn) {$\underline{V_{1,\nrm}}$};

  % Tensions aval
  \node[right] at (\xm,\ya) {$\underline{V_{2,\arm}}$};
  \node[right] at (\xm,\yn) {$\underline{V_{2,\nrm}}$};

  % Câbles principaux
  % A
  \draw (\xl,\ya) to[short,*-*,i=$\underline{I_{1,\arm}}$]
  (\xy,\ya) to[short,-] (T.A1);
  \draw (T.B1) -- (\xrt,\ya) to[generic, l=$\underline{Z_2}$, -]
  (\xz,\ya) to[short,-*,i<=$\underline{I_{2,\arm}}$] (\xm,\ya);%

  % Neutre
  \draw (\xl,\yn) to[short,*-*,i=$\underline{I_{1,\nrm}}$]
  (\xy,\yn) to[short,-] (T.A2);
  \draw (T.B2) to[short, -] (\xz,\yn) to[short,-*,i<=$\underline{I_{2,\nrm}}$] (\xm,\yn);%

  % Ym
  \draw (\xy,\ya) to[generic, l=$\underline{Y_{\mathrm{m}}}$, v>=$\underline{U_{1,\arm}}$, -] (\xy,\yn);%
  \draw (\xz,\ya) to[open, v>=$\underline{U_{2,\arm}}$] (\xz,\yn);%

\end{tikzpicture}
\end{document}
% Local Variables:
% mode: latex
% TeX-engine: luatex
% TeX-source-correlate-method-active: synctex
% ispell-local-dictionary: "british"
% coding: utf-8
% LaTeX-indent-level: 2
% fill-column: 120
% End:
