Skip to content

Test particle simulation of stochastic heating via KAV wave-particle interaction

Notifications You must be signed in to change notification settings

iwhoppock/stochastic_heating

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stochastic Heating

Test-particle simulation of stochastic heating of particles interacting with a spectrum of Kinetic Alfvén waves. This implements the Boris pusher to move the particles through phase space.

Overview

See these papers for backgroud information:

Others include:

Lastly, much of the code uses analytical expressions of Kinetic Alfvén Waves, which are phenomenally treated in this 1999 work by Joe Hollweg:

Dependencies

  • This runs with OpenMP; this is not configured with MPI, so you must run it on a shared memory system
  • OpenMP can be turned off by disabling the command around the particle loop starting, i.e., #pragma omp parallel for. This is only recommended for local, small runs.

Technical Overview

Running Locally

For large number of particles, run this on Trillian (Cray XE6m-200):

autoreconf -i
./configure CC=cc
make
qsub sh.qsub

sh.qsub is the file for the PBS (batch scheduler). Locally, this is not a concern, it looks like this:

#! /bin/bash
#PBS -l nodes=1:ppn=32
#PBS -j oe

cd $PBS_O_WORKDIR

export OMP_NUM_THREADS=32
aprun -d 32 ./sh_sim

configure.ac can be uncommented in various locations (self explanatory) to include a fortran compiler. This must be noted with the configure command (above).

About

Test particle simulation of stochastic heating via KAV wave-particle interaction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages