Code and report for my MSc thesis in Engineering Physics