Title: Field Simulation For Accelerator Magnets : Theory Of Fields And Magnetic Measurements