Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Readme.md

ARCS magnetic field

We set in config.nml

&Jpar
flagJpar=.true.
/

to enable gemini.bin computing of currents. After gemini.bin runs, we run MatGemini gemini3d.model.magcalc() and then magcalc.bin.

Run

Assuming Gemini3d is already built.

GemCI uses MatGemini as a Git submodule for robustness and repeatability.

Setup and run simulation

# a limitation of Matlab is that user setup functions must be on the Matlab path or current working directory

cd gemci/cfg/mag/arcs

matlab -batch "gemini3d.run('.', '~/sims/arcs_mag')"

This gemini3d.run takes about 8 minutes with 32 CPU cores.

Generate the magcalc grid, which in general is distinct from the Gemini3d simulation grid as desired by the user.

matlab -batch "gemini3d.model.magcalc('~/sims/arcs_mag')"

finally, simulate the magnetic field by running the executable:

gemini3d/build/magcalc.run ~/sims/arcs_mag

Then plot the output.