변압기 그림 그리기

변압기 그림 그리기

이 이미지에 가까운 변압기를 그리고 싶습니다 여기에 이미지 설명을 입력하세요

이상적으로는 한쪽에 다른 쪽보다 더 많은 첨탑이 있을 것입니다.

저는 Tikz로 몇 가지 트리 결정을 수행하는 방법을 배웠기 때문에 두 개의 동심원을 수행할 수 있지만 나머지는 어떻게 해야 할지 모르겠습니다. 나는 비록 많지 않더라도 내가 뭔가를 했다는 것을 보여주기 위해 MWE(생략한 여러 수학 관련 패키지가 있습니다. 이것들이 컴파일하기에 충분하기를 바랍니다)를 넣었습니다.

여기에 이미지 설명을 입력하세요

\documentclass[a4paper]{book}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}    
\usepackage{amsmath, amsthm, amssymb}
\usepackage{mathtools}
\usepackage{tikz-cd}
\usetikzlibrary{shapes,arrows,intersections}
\usetikzlibrary{matrix,fit,calc,trees,positioning,arrows,chains,shapes.geometric,shapes}


\begin{document}

\begin{figure}[htp]
\caption{Un transformateur}
\begin{tikzpicture}
\centering
    \node[circle,draw,inner sep=1.2cm,label={[font=\bfseries]}] (b) at (7,0) {};
    \node[circle,draw,inner sep=1.5cm,label={[font=\bfseries]+80:Tore en matériau ferromagnétique}] (c) at (7,0) {};
\end{tikzpicture}
\end{figure}
\end{document

더 적절하다고 판단되면 Tikz보다 다른 패키지를 선택할 수 있습니다.

나는 발견했다이 스레드인상적인 3D 변환기를 사용했지만 먼저 수행되는 작업의 대부분을 이해하지 못하고 두 번째로 내가 사용하는 온라인 컴파일러에 맞게 컴파일하는 데 너무 많은 시간이 걸립니다.

고마워

답변1

나는 다음 코드가 출발점이 될 수 있다고 믿습니다. 필요에 따라 모든 치수를 조정하고 그림과 같이 장식과 라벨을 추가하세요. 코일은 직선이며 링의 곡선을 따르지 않습니다.작동하게 하려면 이 답변의 mypathmorphing 코드가 필요합니다. TikZ 코일 장식 수정

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.mypathmorphing}
\begin{document}
\begin{tikzpicture}
\draw (-8,1.5) -- (-4.5,1.5);
\draw [decorate, decoration={coilup, aspect=0.4, amplitude=7 mm,  segment length=3mm}]   (-4.5,1.5) -- (-4.5,-1.5);
\draw [decorate, decoration={coildown, aspect=0.4, amplitude=7 mm,  segment length=2mm}] (4.5,-1.5) -- (4.5,1.5);
\draw (4.5,1.5) -- (8,1.5);
\draw [fill=white, even odd rule] (0,0) circle (5cm) (0,0) circle (4cm);
\draw [decorate, decoration={coilup, aspect=0.4, amplitude=7 mm,  segment length=2mm}]   (4.5,-1.5) -- (4.5,1.5);
\draw [decorate, decoration={coildown, aspect=0.4, amplitude=7 mm,  segment length=3mm}] (-4.5,1.5) -- (-4.5,-1.5);
\draw (-8,-1.5) -- (-4.5,-1.5);
\draw (4.5,-1.5) -- (8,-1.5);
\end{tikzpicture}
\end{document}

링 변압기

관련 정보