Hermes: SAC Implementation Using Athena
Hermes
Using athena as a basis for implementation of SAC and SMAUG
Magnetohydrodynamic code for gravitationally-stratified media : SAC
A Fast MHD Code for Gravitationally Stratified Media using Graphical Processing Units: SMAUG
Athena: A New Code for Astrophysical MHD
Objectives:
- Improve software engineering and enhance software sustainability
- Build in perturbed MHD using Athena CTU method
- Implement perturbed MHD with central differencing and hyperdiffusion (i.e. SAC)
- Integrate GPU code for CTU method re. Wasiljew & Murawski
- Integrate SMAUG
- Exploit SMR implementation in SAC/SMAUG
- Use multi-architectural approach (hybrid multi-core accelerator approach) targetDP
BKG used to define problem including background fields SAC_INTEGRATOR sac integrator for use with background fields
Next job to compile with SAC_INTEGRATOR, BKG and SAC_FLUX
./configure –with-problem=shkset1d –enable-bkg –with-integrator=sac –with-flux=sac
./configure –with-problem=orszag-tang –with-order=3 –enable-bkg –with-integrator=sac –with-flux=sac
./configure –with-gas=hydro –with-problem=shkset1d –enable-bkg –with-integrator=sac –with-flux=sac
./configure –with-gas=hydro –with-problem=shkset1d –enable-bkg –with-integrator=smaug –with-flux=smaug –enable-smaug
./configure –with-problem=orszag-tang –with-order=3 –enable-bkg –with-integrator=smaug –with-flux=smaug –enable-smaug
all of the above problems will define USE_SAC 3D problems must include –enable-sac-3d this will activate USE_SAC_3D instead of USE_SAC
./configure –with-problem=orszag-tang –with-order=3 –enable-bkg –with-integrator=smaug –with-flux=smaug –enable-smaug
Helpful Links with Athena
Configuring and setting up Athena
Configuring and setting up Athena
Running under docker
docker run -v /Users/mikegriffiths/proj:/home/jupyter/solar/docker –rm -p 8888:8888 mikeg64/sac-smaug