\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../fm.tikz}
\begin{document}
\begin{tikzpicture}[font=\small]
\draw[line width=1pt] (0,0) rectangle (2.4,0.9); \draw[line width=1pt] (1.2,0) -- (1.2,0.9);
\node at (0.6,0.45) {$n$}; \node at (1.8,0.45) {$p$};
\node at (-0.2,1.15) {$-$}; \node at (1.2,1.25) {$V_\mathrm{D}$}; \node at (2.6,1.15) {$+$};
\draw (0,0.45) -- (-0.6,0.45) -- (-0.6,-0.8) -- (0.9,-0.8);
\draw (0.9,-0.8) to[battery1, invert] (1.5,-0.8);
\draw (1.5,-0.8) -- (3.0,-0.8) -- (3.0,0.45) -- (2.4,0.45);
\node at (0.7,-0.5) {$-$}; \node at (1.7,-0.5) {$+$}; \node at (1.2,-1.3) {$V_\mathrm{B}$};
\draw[->] (3.25,-0.4) -- (3.25,0.3) node[midway,right]{$I_\mathrm{D}$};
\end{tikzpicture}
\end{document}
