如何使用 circuitikz 在电路中添加回转器?

如何使用 circuitikz 在电路中添加回转器?

如何在具有回转器的电路中添加电阻器等元件?

带回转器和变压器的电路

答案1

这可以通过两种方式实现,即使用带有电路库的 tikz 或 circuitikz。

A。使用带有电路库的 tikz:

\documentclass[border=5pt]{standalone}

\usepackage{tikz}
\usetikzlibrary{circuits.ee.IEC}
\usepackage[european resistor,siunitx]{circuitikz}

\begin{document}
    \begin{tikzpicture}
        % input arrow and its current symbol
        \draw (0.3,2.1) node[inputarrow]{} 
                    node[above]{i\textsubscript{s}};
        % leftmost circuit
        \draw (0,2.1) node[ocirc]{} % gyrator height is 2.1 unit
            to [R,l=R\textsubscript{E}] (2,2.1)
            to [L,l=L$_\text{E}$](4,2.1);
        \draw (0,0) node[ocirc]{} to (4,0);
        % gyrator node
        \draw (5,2.1) node[gyrator]{}
                     node[above]{T};
        % middle circuit elements
        \draw (6.1,2.1) node[inputarrow]{} 
                    node[above]{v\textsubscript{c}};
        \draw (6,2.1)
            to [R,l=R\textsubscript{MS}, i=] (8,2.1)
            to [L,l=M$_\text{MS}$]  (10,2.1)
            to [C,l=C\textsubscript{MS}] (12,2.1);
        \draw (12,0) to (6,0);
        % rightmost circuit
        \draw (13,2.1) node[transformer]{}
            node[above]{S\textsubscript{S}:1};
        \draw (14,2.1) to (15,2.1) node[ocirc]{};
        \draw (14,0) to (15,0) node[ocirc]{};
        % output current
        \draw (14.5,2.1) node[inputarrow]{} 
                    node[above]{Q\textsubscript{s}};
        % input output levels
        \draw[->] (0,1.4) to node[right]{u\textsubscript{s}} (0,0.6);
        \draw[->] (15,1.4) to node[left]{P\textsubscript{s}} (15,0.6);          
    \end{tikzpicture}
\end{document}

b.使用 circuitikz:

\documentclass[border=5pt]{standalone}

\usepackage[european resistor,siunitx]{circuitikz}

\begin{document}
    \begin{circuitikz}
        % input arrow and its current symbol
        \draw (0.3,2.1) node[inputarrow]{} 
                    node[above]{i\textsubscript{s}};
        % leftmost circuit
        \draw (0,2.1) node[ocirc]{} % gyrator height is 2.1 unit
            to [R,l=R\textsubscript{E}] (2,2.1)
            to [L,l=L$_\text{E}$](4,2.1);
        \draw (0,0) node[ocirc]{} to (4,0);
        % gyrator node
        \draw (5,2.1) node[gyrator]{}
                     node[above]{T};
        % middle circuit elements
        \draw (6.1,2.1) node[inputarrow]{} 
                    node[above]{v\textsubscript{c}};
        \draw (6,2.1)
            to [R,l=R\textsubscript{MS}, i=] (8,2.1)
            to [L,l=M$_\text{MS}$]  (10,2.1)
            to [C,l=C\textsubscript{MS}] (12,2.1);
        \draw (12,0) to (6,0);
        % rightmost circuit
        \draw (13,2.1) node[transformer]{}
            node[above]{S\textsubscript{S}:1};
        \draw (14,2.1) to (15,2.1) node[ocirc]{};
        \draw (14,0) to (15,0) node[ocirc]{};
        % output current
        \draw (14.5,2.1) node[inputarrow]{} 
                    node[above]{Q\textsubscript{s}};
        % input output levels
        \draw[->] (0,1.4) to node[right]{u\textsubscript{s}} (0,0.6);
        \draw[->] (15,1.4) to node[left]{P\textsubscript{s}} (15,0.6);          
    \end{circuitikz}
\end{document}

两个结果的输出相同:

在此处输入图片描述

相关内容