Simulates an MOS (metal-oxide semiconductor) diode with a voltage applied through it. Solves the 1D Poisson equation
using the finite difference method and computes Fermi-Dirac integrals
to determine the charge density distribution
Compilation:
make
Compilation requires the LAPACK and GSL libraries.
Usage:
./difidi diode.in diode.out > out.log
The file diode.in contains the simulation parameters. The file diode.out contains the solution in the format:
<z position> <rho(z)> <phi(z)> <n(z)> <p(z)> <Ev(z)> <Ec(z)>
Plotting:
./plot.py [diode.out]
This produces plots for potential, charge distribution, charge carrier distributions and the band diagram.
Solver residual can be monitored in real time using:
gnuplot residual.gp