\begin{tikzpicture}[scale=1]

\pgfmathsetmacro{\tkW}{8}               % Total width
\pgfmathsetmacro{\tkH}{5}               % Total height
% left
\pgfmathsetmacro{\tkLx}{0}              % Start
\pgfmathsetmacro{\tkLW}{2}              % Right width
\pgfmathsetmacro{\tkLyshift}{-0.5}      % y-shift
\pgfmathsetmacro{\tkLBendH}{0}        % Band bending height
\pgfmathsetmacro{\tkLBendW}{0}    % Band bending width
\pgfmathsetmacro{\tkLEV}{4.0+\tkLyshift}% Vacuum energy
\pgfmathsetmacro{\tkLEf}{2.5+\tkLyshift}% Fermi level energy
% right
\pgfmathsetmacro{\tkRx}{\tkLW}          % Left start
\pgfmathsetmacro{\tkRW}{\tkW-\tkRx}     % Left width
\pgfmathsetmacro{\tkRyshift}{0}      % y-shift
\pgfmathsetmacro{\tkRBendH}{-0.5}         % Band bending height
\pgfmathsetmacro{\tkRBendW}{\tkRW/4}     % Band bending width
\pgfmathsetmacro{\tkREv}{0.7+\tkRyshift}% Valence band energy
\pgfmathsetmacro{\tkREc}{2.5+\tkRyshift}% Conduction band energy
\pgfmathsetmacro{\tkREV}{4.0+\tkRyshift}% Vacuum energy
\pgfmathsetmacro{\tkREf}{2.0+\tkRyshift}% Fermi level energy

% materials
\draw[sc metal] (0,0) rectangle (\tkLW,\tkH);
\node at (\tkLW/2,\tkH-0.2) {\GT{metal}};
\path[sc n type] (\tkRx,0) rectangle (\tkW,\tkH);
\node at (\tkRx+\tkRW/2,\tkH-0.2) {\GT{n-type}};
\path[sc separate] (\tkRx,0) -- (\tkRx,\tkH);

\drawAxes

% right bands
\path[sc occupied] (\tkRx, 0) -- \rightBandAuto{}{\tkREv} -- (\tkW, 0) -- cycle;
\draw[sc band con] \rightBandAuto{$\Econd$}{\tkREc};
\draw[sc band val] \rightBandAuto{$\Evalence$}{\tkREv};
\draw[sc band vac] (0,\tkLEV) -- \rightBandAuto{$\Evac$}{\tkREV};
\draw[sc fermi level] \rightBand{$\Efermi$}{\tkREf};
% left bands
\path[sc occupied] (0,0) rectangle (\tkLW,\tkLEf);
\draw[sc fermi level] \leftBand{$\Efermi$}{\tkLEf};

% work functions
\drawDArrow{\tkLW/2}{\tkLEf}{\tkLEV}{$e\Phi_\txM$}
\drawDArrow{\tkRx+\tkRW*3/4}{\tkREf}{\tkREV}{$e\Phi_\txS$}
\drawDArrow{\tkRx+\tkRW*2/4}{\tkREc}{\tkREV}{$e\chi$}
% barrier height
\drawDArrow{\tkRx+\tkRBendW}{\tkREc}{\tkREc-\tkRBendH}{$eU_\text{Bias}$}

\end{tikzpicture}

