Skip to content

About

Analysis scripts for use with Athena++ data files

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

403 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Codacy Badge License

athena-analysis

A set of analysis and plotting scripts for use with Athena++ data files. The scripts (and the data they analyse) are based on Athena++ v21.0 (archived) but may also work on other versions. Athena++ is a GRMHD and Adaptive Mesh Refinement (AMR) code. The latest release is available at https://github.com/PrincetonUniversity/athena.

Dependencies

Most core scripts rely on a slightly modified version of Athena++'s athena_read.py, contained within the dependencies/ folder. In addition, you will need:

  • AAT (Athena Analysis Tools), also found in dependencies/
  • numpy
  • matplotlib (for plotting scripts)
  • pandas (for plotting scripts)
  • scipy
  • mpi4py (for parallel scripts)

Running the scripts

Note 1: The location of the dependencies/ folder is hard-coded to follow the structure in this repository. If you move it, make sure to change the address!

Note 2: Many scripts rely on results from calc/calc_scale.py (to average within 3 scale heights) and calc/create_timelist.py (for selecting certain times). Where required, these are to be supplied under <args>

For parallel calc/ scripts, run using mpirun

mpirun -n <procs> <script_name> <args> <*kwargs>

For plotting scripts, run

python <script_name> <args> <*kwargs>

For any given script, running

python <script_name> -h

will show you the arguments (required and optional) that can be passed to that script.

About

Analysis scripts for use with Athena++ data files

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages