THESIS FOR THE DEGREE OF LICENTIATE OF ENGINEERING Mesoscopic Thin Film Superconductors A Computational Framework