如何增加预定义变压器铁芯的垂直尺寸?

如何增加预定义变压器铁芯的垂直尺寸?

如何增加预定义变压器铁芯的垂直尺寸?

\documentclass[11pt]{article}

\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage{mathrsfs}
\usepackage[english]{babel}
\usepackage{circuitikz}
\usepackage{tikz}                           % for flowcharts
%\usepackage[latin1]{inputenc}
\usetikzlibrary{shapes.geometric, arrows, shapes.arrows,decorations.pathmorphing, matrix,chains,scopes,positioning,fit,shapes.gates.logic.US, shapes.gates.logic.IEC, calc, decorations.markings,arrows.meta,bending}
\usepackage{textcomp} % avoid the warning from gensymbol's package

\begin{document}

\begin{center}
    \begin{tikzpicture}[baseline=(current bounding box.center)]
    \draw (0,0)
    to[short,o-] (1,0) 
    to[R] (2.5,0)
    to[L] (4,0)
    to[short,-*] (5.5,0)
    -- (7,0)
    (8,0) node[transformer core] (T) {} (T.B1) -- (9.5,0)
    to[L] (11,0)
    to[R] (12.5,0)
    to [short,-o] (13.5,0)
    (5.5,0) -- (5.5,-0.4)
    -- (5.9, -0.4)
    to[L] (5.9,-1.9)
    -- (5.5,-1.9)
    -- (5.5,-2.3);  

\end{tikzpicture}
\end{center}    
\end{document}

在此处输入图片描述

答案1

你可以使用类似

node[transformer core,yscale=2] (T)

或者

node[transformer core,yscale=2,transform shape] (T)

但是,我建议您不要扩展变压器,而是采用另一种方法:

\documentclass[11pt]{article}

\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage{mathrsfs}
\usepackage[english]{babel}
\usepackage{circuitikz}
\usepackage{tikz}                           % for flowcharts
%\usepackage[latin1]{inputenc}
\usetikzlibrary{shapes.geometric, arrows, shapes.arrows,decorations.pathmorphing, matrix,chains,scopes,positioning,fit,shapes.gates.logic.US, shapes.gates.logic.IEC, calc, decorations.markings,arrows.meta,bending}
\usepackage{textcomp} % avoid the warning from gensymbol's package

\begin{document}

\begin{center}
    \begin{tikzpicture}[baseline=(current bounding box.center)]
    \draw (0,0)
    to[short,o-] (1,0) 
    to[R] (2.5,0)
    to[L] (4,0)
    to[short,-*] (5.5,0)
    -- (7,0)
    (8,0) node[transformer core] (T) {} (T.B1) -- (9.5,0)
    to[L] (11,0)
    to[R] (12.5,0)
    to [short,-o] (13.5,0)
  (5.5,0) |- 
  ([shift={(10pt,-10pt)}]5.5,0) 
   to[L]
  ([shift={(10pt,10pt)}]5.5,0|-T.A2) -|
  (5.5,0|-T.A2) -- 
  (T.A2);
\end{tikzpicture}
\end{center}    

\end{document}

结果:

在此处输入图片描述

相关内容