Skip to content

Compute magnetic fields

Michael Hirsch, Ph.D edited this page Jan 4, 2019 · 2 revisions

Compute magnetic fields from the currents calculated by GEMINI by:

mpirun -np 4 ./magcalc ../simulations/3Dtest/ ../simulations/input/3Dtest/magfieldpoints.dat

This will compute magnetic fields over a grid at ground level using currents computed from the 3Dtest simulation. In order to run this program, you will need to create a set of field points at which the magnetic perturbations will be calculated. For example, this could be a list of ground stations, a regular mesh, or a set of satellite tracks.

Plot magnetic field perturbations

The example script magplot_fort_map.m shows an example of how to load the results of running magcalc.

Clone this wiki locally