Plotting of band gaps

Hello,

After seeing some of the plots in the lecture notes and in the solutions of the exams. Is there a program (python script?) we could use to visualise bandgaps and their structure? That you can input the potential and then have a plot to show those bandgaps? Possible in 3d so we could see the full implications of a 2d potential (like the one in the minitest 3 2021)?

Yes, there is! Go to the lectures 13 or 14, press the magic wand button

and then you can use the code right from the lectures (it’ll appear right before the corresponding figures).

@anton-akhmerov, this indeed shows the code for the plotting. But all the plots are hardcoded. Meaning it just plots the final solution and does not allow for changes in initial parameters.

You can edit the code right there and rerun.

Yes you can edit the code, but there is not already a function V = … you can edit to something else. The final solution to the band gap formula is already coded in. Meaning you would stil have to manually do the calculation which makes the code rather useless to edit.