电气图

电气图

这是我制定的计划:

在此处输入图片描述

代码如下:

\begin{circuitikz}[european]
\draw (0,0) to[sV,l_=$u_G$] (0,2.7) to[generic,l=$R_G$,i_=$i_{ul}$](2.5,2.7) to[generic,l_=$h_{ie1}$,i=$i_{b1}$] (5.2,2.7) to[short] (7.9,2.7);
\draw(2,2.7) 
(1.45,2.2) to [short] (1.45,2.2) node[anchor=west] {+}
(1.55,0.45) to [short] (1.55,0.45) node[anchor=west] {-};
\node at (1.7,1.35) {$u_{ul}$};
\draw(2.5,2.7)node[above=0.0cm]{$B_1$}  to [generic,l={$R_{B1}$},*-] (2.5,0);
\draw(5.2,0)node[below]{$C_1$} to[american current source,l=$h_{fe} i_{b1}$, *-*] (5.2,2.7)node[above=0.0cm]{$E_1$};
\draw(6.55,2.7) to [generic,l=$R_{E1}$,i=$i_{e1}$] (6.55,0);
\draw(7.9,2.7) node[above=0.0cm]{$B_2$} to[generic,l=$R_{B2}$,i=$i_{B2}$](7.9,0) ;
\draw(7.9,2.7) to [generic,l_=$h_{ie2}$, *-*,i=$i_{b2}$] (10.6,2.7)node[above=0.0cm]{$E_2$} ;
\draw(10.6,2.7) to [generic,l=$R_{E2}$,i=$i_{e2}$,-*](10.6,0)node[below]{$C_2$};
\draw(12.85,2.7) to[generic,l_=$R_{C2}$](12.85,0);
\draw(12.85,2.7) to(14.2,2.7)to [generic,l_=$R_{p}$,i=$i_{iz}$](14.2,0);
\draw(12.85,2.7) to[american current source,l=$h_{fe} i_{b2}$](10.6,2.7);
\draw(15,2.7) 
(14.8,2.2) to [short] (14.8,2.2) node[anchor=west] {+}
(14.9,0.45) to [short] (14.9,0.45) node[anchor=west] {-};
\node at (15.05,1.35) {$u_{iz}$};
\draw (0,0)--(14.2,0);
\draw[red,dashed,thick,rounded corners,-latex] (2.9,1.55)--([shift={(0.9,-0.5)}]2,2.7)-- ([shift={(-0.5,-0.5)}]10.6,2.7)--
([shift={(-0.5,0.5)}]10.6,0)-- ([shift={(0.5,0.5)}]2.4,0);
\end{circuitikz}

我怎样才能移动这个i_{iz}部分,让它像这里一样

在此处输入图片描述

答案1

我不会替你做作业,但我可以帮忙解释中电流的定位circuitikz,这应该有助于你将来完成这样的作业。

当前标签的完整位置规范包括

  • ^/之一_来指定标签在组件上方/下方的位置(其中上方和下方是从从左到右绘制的组件的角度来看的),以及
  • >/之一<来指定电流朝向/反对组件绘制方向的方向。

符号的顺序决定了电流是放在组件之前还是之后:如果方向说明符在先,则绘制电流路径中的组件,而如果方向说明符是最后一个,则绘制当前路径中的组件。

currents 的默认位置规范是^>。如果缺少任何一个说明符,则将使用其默认值。

这个简短的例子应该可以说明所有的可能性:

\documentclass{standalone}
\usepackage{circuitikz}
\newcommand{\labeltest}[2]{\draw (#1) to[generic,i#2=$i_1$] +(0,2);}
\begin{document}
\begin{circuitikz}
  \labeltest{0,0}{} % default position (no specification)
  \labeltest{1,0}{^>} % current in drawing direction (up), current after component, label above (if drawn left-to-right)
  \labeltest{2,0}{_>} % current in drawing direction, current after component, label below
  \labeltest{3,0}{^<} % current opposes drawing direction, current after component, label above
  \labeltest{4,0}{_<} % current opposes drawing direction, current after component, label below
  \labeltest{5,0}{>^} % current in drawing direction, current before component, label above
  \labeltest{6,0}{>_} % current in drawing direction, current before component, label below
  \labeltest{7,0}{<^} % current opposes drawing direction, current before component, label above
  \labeltest{8,0}{<_} % current opposes drawing direction, current before component, label below
\end{circuitikz}
\end{document}

在此处输入图片描述

相关内容