I am trying to draw a magnetic field diagram, but I am unsure how to draw arrows in the middle of bent and ellipse lines (desired output indicated by the yellow highlights).
Could anyone please suggest how to achieve this?
Thank you!
\documentclass[]{article}
\usepackage[margin=0.5in]{geometry}
\usepackage{pgfplots}
\renewcommand{\thesection}{\arabic{section}}
\usepackage{mathtools}
\usepackage{cancel}
\usepackage{pgfplots}
\usepackage{amsmath}
\newtheorem{theorem}{THEOREM}
\newtheorem{proof}{PROOF}
\usepackage{tikz}
\usepackage{amssymb}
\usetikzlibrary{patterns}
\usepackage{fancyhdr}
\usepackage{bigints}
\usepackage{color}
\usepackage{tcolorbox}
\usepackage{color,xcolor}
\usepackage{booktabs,array}
\usepackage{hyperref}
\usepackage{graphicx}
\usetikzlibrary{arrows}
\usepackage{polynom}
\usepackage{wallpaper}
\usepackage{flexisym}
\usepackage{caption}
\usetikzlibrary{shapes.misc}
\usetikzlibrary{arrows.meta,decorations.markings}
\usetikzlibrary{arrows}
\usepgfplotslibrary{fillbetween}
\usepgfplotslibrary{statistics}
\newenvironment{tightcenter}{
\setlength\topsep{0pt}
\setlength\parskip{0pt}
\begin{center}}{\end{center}}
\begin{document}
\begin{tikzpicture}
%MAGNET
\fillgray!60 rectangle (2.5,0.5);
\fillgray!60 rectangle (8.0,0.5);
%
\node at (2.2,0) {\Large N};
\node at (5.8,0) {\Large S};
%
\drawgray,thick -- (2.5,-0.5) -- (2.5,0.5) -- (0,0.5);
\drawgray,thick -- (5.5,-0.5) -- (5.5,0.5) -- (8.0,0.5);
%
%MIDDLE
\begin{scope}
\drawthick,red arc (-180:-360:1.8cm and 2.2cm);
\drawthick,red arc (-180:-360:1.7cm and 1.5cm);
\drawthick,red arc (-180:-360:1.6cm and 0.9cm);
%
\drawthick, to [bend left=50] (5.5,+0.3);
\drawthick, to [bend left=25] (5.5,+0.2);
\drawthick, to [bend left=15] (5.5,+0.1);
\drawthick, to [bend left=5] (5.5,+0.0);
%
\drawthick, to [bend right=5] (5.5,+0.0);
\drawthick, to [bend right=15] (5.5,-0.1);
\drawthick, to [bend right=25] (5.5,-0.2);
\drawthick, to [bend right=50] (5.5,-0.3);
%
\drawthick,blue arc (-180:0:1.6cm and 0.9cm);
\drawthick,blue arc (-180:0:1.7cm and 1.5cm);
\drawthick,blue arc (-180:0:1.8cm and 2.2cm);
\end{scope}
%
%LEFT MAGNET
\drawthick,-latex to [bend left=20] (2.6,2.9);
\drawthick,-latex to [bend left=5] (1.9,2.7);
\drawthick,-latex to [bend right=5] (1.4,2.5);
\drawthick,-latex to [bend right=13] (1.0,2.2);
\drawthick,-latex to [bend right=15] (0.7,1.9);
\drawthick,-latex to [bend right=17] (0.4,1.5);
\drawthick,-latex to [bend right=27] (0.1,1.2);
%
\drawthick,-latex to [bend right=20] (2.6,-2.9);
\drawthick,-latex to [bend right=5] (1.9,-2.7);
\drawthick,-latex to [bend left=5] (1.4,-2.5);
\drawthick,-latex to [bend left=13] (1.0,-2.2);
\drawthick,-latex to [bend left=15] (0.7,-1.9);
\drawthick,-latex to [bend left=17] (0.4,-1.5);
\drawthick,-latex to [bend left=27] (0.1,-1.2);
%
%RIGHT MAGNET
\drawthick, to [bend right=20] (8-2.6,2.9);
\drawthick, to [bend right=5] (8-1.9,2.7);
\drawthick, to [bend left=5] (8-1.4,2.5);
\drawthick, to [bend left=13] (8-1.0,2.2);
\drawthick, to [bend left=15] (8-0.7,1.9);
\drawthick, to [bend left=17] (8-0.4,1.5);
\drawthick, to [bend left=27] (8-0.1,1.2);
%
\drawthick, to [bend left=20] (8-2.6,-2.9);
\drawthick, to [bend left=5] (8-1.9,-2.7);
\drawthick, to [bend right=5] (8-1.4,-2.5);
\drawthick, to [bend right=13] (8-1.0,-2.2);
\drawthick, to [bend right=15] (8-0.7,-1.9);
\drawthick, to [bend right=17] (8-0.4,-1.5);
\drawthick, to [bend right=27] (8-0.1,-1.2);
\end{tikzpicture}
\end{document}

