2D electromagnetic modelling of superconductors