Magnetic Fields Simulation