\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee1.tikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[american voltage source, l=$V_\mathrm{in}$, invert] (0,1.4) to[empty diode, l_=$D_1$] (1.8,1.4) node[ocirc]{};
\draw (0,0) -- (1.8,0) node[ocirc]{};
\draw (1.8,1.1) node[font=\small]{$+$} (1.8,0.3) node[font=\small]{$-$};
\node at (2.4,0.7) {$V_\mathrm{out}$};
\draw[double, ->] (3.2,0.7) -- (4.6,0.7) node[midway, above, font=\small]{$D_1$ off};
\draw (5,1.4) -- (5.3,1.4) to[opening switch] (6.3,1.4) -- (6.6,1.4) node[ocirc]{};
\draw (5,0) -- (6.6,0) node[ocirc]{};
\draw (6.6,1.1) node[font=\small]{$+$} (6.6,0.3) node[font=\small]{$-$};
\node[anchor=west] at (6.9,0.7) {$V_\mathrm{out}$ = Not defined!};
\end{circuitikz}
\end{document}
