![多端口 AC/DC 转换器](https://linux22.com/image/444624/%E5%A4%9A%E7%AB%AF%E5%8F%A3%20AC%2FDC%20%E8%BD%AC%E6%8D%A2%E5%99%A8.png)
我想重现以下电路:
我的问题是如何制作分别具有 3 个和 2 个输入和输出端口的 AC/DC 转换器?
我的代码和相应的输出:
\documentclass{article}
\usepackage[free-standing-units]{siunitx}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}[scale=1.5]
\draw (0,0) to[short,-o](0,0.75);
\draw [very thick] (0,0.78)--(80:1.2);
\draw (0,1.25) to[short,o-] (0,2) to (1,2)
to [L](1,0) to (0,0);
\draw (0,2) to (-1.5,2) to (-1.5, 1.25) to (-2, 1.25);
\draw (0,0) to (-1.5,0) to (-1.5, 0.75) to (-2, 0.75);
\draw (-4,1) to [sacdc] (-3,1);
\draw[dashed] (-1.75,-0.5) rectangle ++(4,2.75);
\node[font=\sffamily] at (1.25,-0.25) {Cryogenic Region};
\node[font=\sffamily] at (1.6,1) {SC Coil};
\node[font=\sffamily] at (-0.75,1) {SC Switch};
\end{circuitikz}
\end{document}
谢谢你!
答案1
这是一个非常蛮力解决方案(您可以使用calc
相对定位更优雅地完成任务),但是......(参见代码中的注释)。
\documentclass{article}
\usepackage[free-standing-units]{siunitx}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}[scale=1.5]
\draw (0,0) to[short,-o](0,0.75);
\draw [very thick] (0,0.78)--(80:1.2);
\draw (0,1.25) to[short,o-] (0,2) to (1,2)
to [L](1,0) to (0,0);
\draw (0,2) to (-1.5,2) to (-1.5, 1.25) to (-2, 1.25);
\draw (0,0) to (-1.5,0) to (-1.5, 0.75) to (-2, 0.75);
% use the node-form, align at the east side with the two wires above
\node [sacdcshape, anchor=east](ACDC) at (-2,1) {};
% draw the input wires
\draw (ACDC.west) -- ++(-1,0);
\draw ([yshift=0.2cm]ACDC.west) -- ++(-1,0);
\draw ([yshift=-0.2cm]ACDC.west) -- ++(-1,0);
%
\draw[dashed] (-1.75,-0.5) rectangle ++(4,2.75);
\node[font=\sffamily] at (1.25,-0.25) {Cryogenic Region};
\node[font=\sffamily] at (1.6,1) {SC Coil};
\node[font=\sffamily] at (-0.75,1) {SC Switch};
\end{circuitikz}
\end{document}
另外,您可以使用来cute switch
绘制开关,无需手工制作。如果您喜欢 AD-DC 转换器的原始绘图,这也是双重的,当场使用子电路。