It's thought that convection cells in the fluid outer core generate strong magnetic fields, but the different adjacent cells are assumed to counter rotate, almost cancelling out each others field. Only a residual field remains that can collapse or reverse depending on changes in the core convection cells.
That's the abstract of this:
http://www.psc.edu/science/glatzmaier.html
Better post these things in the Earth Science forum.