ElectroMag
Q2circuit

Description

This code generates an electrical circuit diagram using the circuitikz package. The circuit diagram has three resistors, labeled R∗g1\mathscr{R}*{g1}, R∗g2\mathscr{R}*{g2}, and R∗g3\mathscr{R}*{g3}, and three voltage sources labeled F∗1\mathscr{F}*1, F∗2\mathscr{F}*2, and F∗3\mathscr{F}*3. The resistors and voltage sources are arranged in a circuit such that F∗1\mathscr{F}*1 is connected to R∗g1\mathscr{R}*{g1}, which is connected to F∗2\mathscr{F}*2, which is connected to R∗g2\mathscr{R}*{g2}, which is connected to F∗3\mathscr{F}*3, which is connected to R∗g3\mathscr{R}*{g3}. The circuit is completed by connecting R∗g3\mathscr{R}*{g3} to R∗g1\mathscr{R}*{g1} and connecting R∗g2\mathscr{R}*{g2} to R∗g3\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