绘制电力系统网络

绘制电力系统网络

我想画出下图,但是我无法为粗体垂直线命名,也无法显示圆圈。我也试图找到变压器的符号,但找不到。

你能帮我吗?非常感谢。

这是我尝试过的代码(非常简单)

\documentclass{article}
\usepackage{tikz}
\usepackage{verbatim}
\usetikzlibrary{shapes,arrows.meta,decorations, positioning, arrows.meta, calc, shapes.geometric}
\usetikzlibrary{shapes, arrows,positioning}
\usetikzlibrary{shapes,arrows.meta,decorations}
\begin{document}
\tikzset{
line/.style = {line width=1pt, draw=black},
shin/.style = {line, line width=3pt},
net node/.style = {circle, draw=black,line width=1.2pt,minimum width=0.8cm, inner sep=0pt, outer 
sep=0pt},
}

 \begin{tikzpicture}
   \path [shin] (0.8,-2) -- (0.8,2);
\path [shin] (4.8,-2) -- (4.8,2);
\path [shin] (8,-4) -- (8,4);
\path [line] (8,3) --  (9, 3);
\path [line] (8,2) --  (9, 2);
\path [line] (8,1) --  (9, 1);
\path [line] (8,0) --  (9, 0);
\path [line] (8,-1) --  (9, -1);
\path [line] (8,-2) --  (9, -2);
\path [line] (8,-3) --  (9, -3);
\path [line] (8,-3.5) --  (7, -3.5);
\coordinate(net node) at (9,3);
\end{tikzpicture}
\end{document}

在此处输入图片描述

答案1

因此,以下内容基于我之前的回答https://tex.stackexchange.com/a/595368/38080--- 我向\bushere宏添加了一个参数,然后我展示了如何使用circuitikz元素来模拟您的图表。您仍需完成它,但我认为现在应该很简单:

\documentclass[border=10pt]{standalone}
\usepackage[RPvoltages]{circuitikz}

\newcommand{\bushere}[3]{% length, text above, text below
    % optional arguments do not work in paths
    %
    % starting point; draw an edge and then two nodes
    % save the position
    coordinate(tmp)
    % go up and do an edge down
    ++(0,#1) node[anchor=base]{#2} edge[ultra thick] ++(0,{-2*#1})
    % edges do not move the current point, go down to position the node
    ++(0,{-2*#1}) node[below]{#3}
    % go back to where we started
    (tmp)
}
\begin{document}
\ctikzset{sources/fill=gray!20, resistors/fill=gray!20}
\begin{tikzpicture}[semithick]% default line width
    \draw (0,0)
        \bushere{1}{System Bus}{}
        to[oosourcetrans, name=trafo] ++(3,0)
        \bushere{1}{Low-side Bus}{} coordinate(low side)
        -- ++(1,0) coordinate(c1)
        to[generic, l={\small Feeder equivalent}, resistors/width=3] ++(5,0)
        coordinate(c2) -- ++(1,0)
        \bushere{3}{Load bus}{} coordinate(load)
        ;
    % capacitors
    \draw (c1) to[C] ++(0,-1) node[ground]{};
    \draw (c2) to[C] ++(0,-1) node[ground]{};
    \draw (low side) ++(0,-0.7) -- ++(-0.7,0) to[C] ++(0,-1) node[ground]{};
    % variable arrow
    \draw[-Stealth] (trafo.center) ++(-0.5,-0.5) -- ++(1,1);
    % one load
    % position: start form the coord load, go up
    \ctikzset{bipoles/border margin=1.0}% see manual section 3.1.2
    \draw (load) ++(0,1) -- ++(1,0) node[rmetershape, fill=cyan, t=M]{}
        ++(1,0) node[right]{Motor 1};
    \draw (load) ++(0,-2) -- ++(0.5,0) node[draw, fill=orange!30, anchor=west]{Static Load};
\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容