Field simulations for large dipole magnets