Calculation of magnetic field for 4 T fast cycling superconducting dipole magnet