Magnetic field
A magnetic field is a vector field that describes the magnetic influence of electrical currents and magnetized materials. In everyday life, the effects of magnetic fields are often seen in permanent magnets, which pull on magnetic materials (such as iron) and attract or repel other magnets. Magnetic fields surround and are created by magnetized material and by moving electric charges (electric currents) such as those used in electromagnets. Magnetic fields exert forces on nearby moving electrical charges and torques on nearby magnets. In addition, a magnetic field that varies with location exerts a force on magnetic materials. Both the strength and direction of a magnetic field varies with location. As such, it is an example of a vector field.
Geomagnetic reversal
The magnetic field of the Earth, and of other planets that have magnetic fields, is generated by dynamo action in which convection of molten iron in the planetary core generates electric currents which in turn give rise to magnetic fields. In simulations of planetary dynamos, reversals often emerge spontaneously from the underlying dynamics. For example, Gary Glatzmaier and collaborator Paul Roberts of UCLA ran a numerical model of the coupling between electromagnetism and fluid dynamics in the Earth's interior. Their simulation reproduced key features of the magnetic field over more than 40,000 years of simulated time and the computer-generated field reversed itself. Global field reversals at irregular intervals have also been observed in the laboratory liquid metal experiment "VKS2".