Circuits
Circuite300n1

Description

The code defines a circuit diagram using the TikZ package with the Circuitikz library. The circuit has a voltage source labeled "NI" connected to a resistor "R1", which is connected to another resistor "R2" and so on, forming a series circuit. Each resistor is labeled with its resistance value and a different color. The circuit also includes arrows indicating the direction of the current flowing through each resistor, labeled as phi_1, phi_2, and phi_3. Finally, there are labels for the voltage drop across each resistor, labeled as F_1, F_2, F_3, F_4, and F_g, where F_g is the voltage drop across the last resistor "Rg".

Keywords

Circuit, diagram, circuitikz, resistors, voltage, current, colors.

Source Code

Circuits

\documentclass[tikz]{standalone}
\usepackage{circuitikz}
\usepackage{siunitx}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{circuitikz}
	\draw (0,4) to [V,l_=$ NI$] (0,0) 
	(0,4) to  [R,i>=$\phi_1$, l^= ${R}_{1}$,v_>=${F}_1$, color=purple] (4,4) 
	(4,0) -- (0,0) 
	(4,4) to [R,i^>=$\phi_2$, l^= ${R}_{2}$,v_>=${F}_2$, color=blue] (4,0)
	(4,4) to [R,l^= ${R}_{3}$,v_>=${F}_3$, color=red] (8,4)
	(8,4) to [R,i^>=$\phi_3$, l^= ${R}_{g}$,v_>=${F}_g$, color=cyan] (8,0)
	(8,0) to [R, l^= ${R}_{4}$,v_>=${F}_4$, color=green] (4,0);
	\draw[thin, <-, >=triangle 45] (6,2) node{$\phi_3$}   ++(-90:1) arc (-90:100:1);
	\draw[thin, <-, >=triangle 45] (2,2) node{$\phi_2$}   ++(-90:1) arc (-90:100:1);
	%		\node (phi) at (4.25,0.5) {$\phi_2$};
	%		\draw[-stealth]  (4.25,2.5) to [bend left=90] (phi);  
\end{circuitikz}
\end{document}
Deploy to Overleaf