ElectroMag
Q2circuit

Description

This code generates an electrical circuit diagram using the circuitikz package. The circuit diagram has three resistors, labeled Rg1\mathscr{R}*{g1}, Rg2\mathscr{R}*{g2}, and Rg3\mathscr{R}*{g3}, and three voltage sources labeled F1\mathscr{F}*1, F2\mathscr{F}*2, and F3\mathscr{F}*3. The resistors and voltage sources are arranged in a circuit such that F1\mathscr{F}*1 is connected to Rg1\mathscr{R}*{g1}, which is connected to F2\mathscr{F}*2, which is connected to Rg2\mathscr{R}*{g2}, which is connected to F3\mathscr{F}*3, which is connected to Rg3\mathscr{R}*{g3}. The circuit is completed by connecting Rg3\mathscr{R}*{g3} to Rg1\mathscr{R}*{g1} and connecting Rg2\mathscr{R}*{g2} to Rg3\mathscr{R}*{g3}. Additionally, the diagram has two labels for the phase angles, ϕ_1\phi\_1 and ϕ_2\phi\_2, which are connected to the circuit using curved arrows.

Keywords

latex, circuitikz, graphicx, mathrsfs, latexsym, amssymb, amsmath, documentclass, newcommand, standalone, draw, V, R, node, color, l, to, bent, equal, phi.

Source Code

ElectroMag

\documentclass{standalone}
\usepackage[american]{circuitikz}
\usepackage{graphicx}
\usepackage{mathrsfs} 
\usepackage{latexsym,amssymb,amsmath}
\newcommand{\equal}{=}
\begin{document}
		\begin{circuitikz}
			\draw (3,4) to [V,l_=$\mathscr{F}\equal NI$] (3,2) 
			(3,2) to [R,l^=$\mathscr{R}_{g1}$, v_>=$\mathscr{F}_1$, color=green] (3,0)
			(3,2) -- (3,0)
			(3,0) -- (0,0)
			(0,4) to [R,l^=$\mathscr{R}_{g2}$, v_>=$\mathscr{F}_2$, color=red] (0,0)
			(6,4) to [R, l^=$\mathscr{R}_{g3}$,v_>=$\mathscr{F}_3$, color=blue] (6,0) 
			(6,0) -- (3,0)
			(0,4) -- (6,4);
			%	     \draw[thin, <-, >=triangle 45] (1.5,1.5) node[scale=2]{$\phi$}   ++(-90:0.5) arc (-90:100:0.5);
			\node (phi) at (1.25,0.5) {$\phi_1$};
			\draw[-stealth]  (1.25,2.5) to [bend left=90] (phi);  
			
			\node (phi) at (4.25,0.5) {$\phi_2$};
			\draw[-stealth]  (4.25,2.5) to [bend left=90] (phi);  
			\end{circuitikz}
%	\begin{circuitikz}
%		\draw (0,3) to [V,l_=$\mathscr{F}\equal NI$] (0,0) 
%		(0,3) to [R,l^=$\mathscr{R}_{1,thick}$, v_>=$\mathscr{F}_1$, color=red] (0,6)
%		(0,6) to [R, l^=$\mathscr{R}_{2,thin}$,v_>=$\mathscr{F}_2$, color=blue] (3,6) 
%		(3,6) -- (3,3)
%	    (3,3) to [R, l^=$\mathscr{R}_{3,thick}$,v_>=$\mathscr{F}_3$, color=red] (3,0) 
%	     (3,0) to [R, l^= $\mathscr{R}_{4,thin}$,v_>=$\mathscr{F}_4$, color=blue] (0,0)
%	     
%	     (1.5,3) node[scale=4]{${\circlearrowright}$}
%	     (1.5,3) node[scale=2]{${\mathbf{\phi}}$};
%		;\end{circuitikz}
%	\label{fig:q1fig}
\end{document}
Deploy to Overleaf