A multiscale approach to the analysis of magnetic grid shields and its validation