The dynamo theory proposes a mechanism by which a celestial body such as the Earth or a star generates a magnetic field. The theory describes the process through which a rotating, convecting, and electrically conducting fluid can maintain a magnetic field over astronomical time.
Contents 
In 1905, shortly after composing his special relativity paper, Albert Einstein described the origin of the Earth's magnetic field as being one of the great unsolved problems facing modern physicists. Since then, there have been many studies of the geodynamo problem based on historical measurements of the Earth's field.
In order to maintain the magnetic field against ohmic decay (which would occur for the dipole field in 20,000 years) the outer core must be convecting. Convection is likely some combination of thermal and compositional convection. The mantle controls the rate at which heat is extracted from the core. Heat sources include gravitational energy released by the compression of the core, gravitational energy released by the rejection of light elements (probably sulphur, oxygen, or silicon) at the inner core boundary as it grows, latent heat of crystallization at the inner core boundary, and radioactivity of potassium, uranium and thorium^{[1]}.
Dynamo theory describes the process through which a rotating, convecting, and electrically conducting fluid acts to maintain a magnetic field. This theory is used to explain the presence of anomalously longlived magnetic fields in astrophysical bodies. The conductive fluid in the geodynamo is liquid iron in the outer core, and in the solar dynamo is ionized gas at the tachocline. Dynamo theory of astrophysical bodies uses magnetohydrodynamic equations to investigate how the fluid can continuously regenerate the magnetic field.
It was actually once believed that the dipole, which comprises much of the Earth's magnetic field and is misaligned along the rotation axis by 11.3 degrees, was caused by permanent magnetization of the materials in the earth. This means that dynamo theory was originally used to explain the sun's magnetic field in its relationship with that of the Earth. However, this theory, which was initially proposed by Joseph Larmor in 1919,^{[2]} has been modified due to extensive studies of magnetic secular variation, paleomagnetism (including polarity reversals), seismology, and the solar system's abundance of elements. Also, the application of the theories of Carl Friedrich Gauss to magnetic observations showed that Earth's magnetic field had an internal, rather than external, origin.
In the case of the Earth, the magnetic field is induced and constantly maintained by the convection of liquid iron in the outer core. A requirement for the induction of field is a rotating fluid. Rotation in the outer core is supplied by the Coriolis effect caused by the rotation of the Earth. The coriolis force tends to organize fluid motions and electric currents into columns (also see Taylor columns) aligned with the rotation axis. Induction or creation of magnetic field is described by the induction equation:
where u is velocity, B is magnetic field, t is time, and η = 1 / σμ is the magnetic diffusivity with σ electrical conductivity and μ permeability. The ratio of the second term on the right hand side to the first term gives the Magnetic Reynolds number, a dimensionless ratio of advection of magnetic field to diffusion.
In kinematic dynamo theory the velocity field is prescribed, instead of being a dynamic variable. This method cannot provide the time variable behavior of a fully nonlinear chaotic dynamo but is useful in studying how magnetic field strength varies with the flow structure and speed.
Using Maxwell's equations simultaneously with the curl of Ohm's Law, one can derive what is basically the linear eigenvalue equation for magnetic fields (B) which can be done when assuming that the magnetic field is independent from the velocity field. One arrives at a critical magnetic Reynolds number above which the flow strength is sufficient to amplify the imposed magnetic field, and below which it decays.
The most functional feature of kinematic dynamo theory is that it can be used to test whether a velocity field is or is not capable of dynamo action. By applying a certain velocity field to a small magnetic field, it can be determined through observation whether the magnetic field tends to grow or not in reaction to the applied flow. If the magnetic field does grow, then the system is either capable of dynamo action or is a dynamo, but if the magnetic field does not grow, then it is simply referred to as nondynamo.
The membrane paradigm is a way of looking at black holes that allows for the material near their surfaces to be expressed in the language of dynamo theory.
The kinematic approximation becomes invalid when the magnetic field becomes strong enough to affect the fluid motions. In that case the velocity field becomes affected by the Lorentz force, and so the induction equation is no longer linear in the magnetic field. In most cases this leads to a quenching of the amplitude of the dynamo. Such dynamos are sometimes also referred to as hydromagnetic dynamos. Virtually all dynamos in astrophysics and geophysics are hydromagnetic dynamos.
Numerical models are used to simulate fully nonlinear dynamos. A minimum of 5 equations are needed. They are as follows. The induction equation, see above. Maxwell's equation:
The (sometimes) Boussinesq conservation of mass:
The (sometimes) Boussinesq conservation of momentum, also known as the NavierStokes equation:
where ν is the kinematic viscosity, ρ^{'} is the density perturbation that provides buoyancy (for thermal convection ρ^{'} = αΔT, Ω is the rotation rate of the Earth, and is the electrical current density.
Finally, a transport equation, usually of heat (sometimes of light element concentration):
where T is temperature, κ = k / ρc_{p} is the thermal diffusivity with k thermal conductivity, c_{p} heat capacity, and ρ density, and ε is an optional heat source. Often the pressure is the dynamic pressure, with the hydrostatic pressure and centripetal potential removed. These equations are then nondimensionalized, introducing the nondimensional parameters,
where Ra is the Rayleigh number, E the Ekman number, Pr and Pm the Prandtl and magnetic Prandtl number. Magnetic field scaling is often in Elsasser number units B = ρΩ / σ.
