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:

  1. Improve software engineering and enhance software sustainability
  2. Build in perturbed MHD using Athena CTU method
  3. Implement perturbed MHD with central differencing and hyperdiffusion (i.e. SAC)
  4. Integrate GPU code for CTU method re. Wasiljew & Murawski
  5. Integrate SMAUG
  6. Exploit SMR implementation in SAC/SMAUG
  7. 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

Source code description

AthenaMHDCode

Configuring and setting up Athena

Configuring and setting up Athena

Configuring Integrators

Quickstart

1D Sod Shock tube test (HD)

2D Orszag-Tang Test (MHD)

Running under docker

docker run -v /Users/mikegriffiths/proj:/home/jupyter/solar/docker –rm -p 8888:8888 mikeg64/sac-smaug

Docker hub sac-smaug