A friend I walk with is keen on micronavigation his skill with map and compass is a good match for anyone wielding a GPS. This dependency on the earths magnetic field and our need to "correct for magnetic variation" makes me inquisitive about the nature of the earths magnetic field. As illustrated by the links below it comes as no surprise that a vast amount of intellectual effort has been expended in understanding geomagnetism since the early days of William Gilbert (1600) [2] upto modern day MHD computations modelling the geodynamo [1].
I have investigated a simple model of the earths magnetic field based on the idea that the earths magnetic field may be represented by a single current loop. We use numerical integration with the Biot-Savart law.
- Radius of the current loop is 4000km
- Loop carries a current of 1500MA
The following scilab script computes the magnetic field due to a current loop over a 22x22x22 region of total size 11Re where Re is the radius of the earth (Re=6371km).Such a crrent loop is illustrated below.

For each computed field point the Biot Savart law is used to compute the field due to the loop, the numerical integration over the current elements is performed using Simpsons rule. The scilab script to perform this computation is linked below. The script requires a function routine to compute the simpson rule integration, these are contained in the zip file geomagresources.zip. The resources file also contains the net file used to visualise the results with IBM data explorer.
Results calculated using the scilab model and using the bfield2.net data explorer network are shown below.

The scilab script file generates general data scriptions that may be read by IBM data explorer. Using IBM data explorer to run the visual program bfield2.net we may view streamlines representing the magnetic field lines and indivdual magnetic field vectors at each spatial location. The visualisation has a control panel labelled controls that may be used to explore these different aspects of the data set. The results have been compared to the results generated using geomagnetic models provided by the geophysical data centre [7] and are representative within at least an order of magnitude. MHD models of the geodynamo enable an understanding of palaeomagnetism and the evolution of the earths mgnetic field. Results calculated using the MHD geomagnetic dynamo are shown below [1].

In 1838 the German mathematician and magnetician Frederick Gauss developed a method of representing the magnetic field in terms of a converging series of spherical harmonics, whose terms were functions of latitude, longitude and radial distance from the centre of the earth [5]. There exist a wide range of techniques for the computation of magnetic fields, this is important in a wide range of medical, scientific and technological disciplines. An interesting method is one that uses an expansion of spherical harmonics in reciprocal space [9].
In the final blog entry in this series of three we will investigate charged particle motion in the earths magnetic field.
Links
- Geodynamo simulations using MHD
- De magnete by William Gilbert (1600)
- The geodynamo
- Magnetic field of a current loop
- Gauss spherical harmonic model for representing the geomagnetic field
- Geophysical data centre- Geomagnetism
- Geophysical data centre- Geomagnetic models and software
- Numerical integration techniques for computing magnetic fields
- Calculating magnetic field using semi analytical methods - reciprocal space expansion
- IBM Data Explorer
- Scilab
Keywords: data explorer, geomagnetism, math, plasma, scilab