-
Notifications
You must be signed in to change notification settings - Fork 129
Quick Start
You can download the latest version on the GitHub repository. You can download the code from the repository using any Git client. To download the code using the standard git clone, type:
> git clone https://github.com/PrincetonUniversity/athena
To retrieve the latest update, move into the code directory and type:
> git pull
For more information, please consult the documentation of the Git client you use.
A comprehensive way of testing that the code works is to run the regression test suite. From within the athena/
directory, go to the regression directory and run some tests:
> cd tst/regression
> python run_tests.py hydro/sod_shock mhd/mhd_carbuncle
This should take only a few minutes on a modern laptop. At the end of the execution, a summary of the test pass/fail results will be printed. Note, when the Python script is executed without arguments, by default it will run all regression tests, which possibly take several hours and includes tests with specific library dependencies that might be missing from your system (MPI, parallel HDF5, FFTW, ...).
Athena++ is compiled from an automatically generated Makefile
. From the top-level directory, the code can be configured and compiled as follows:
> python configure.py <options>
> make clean
> make
This places the executable athena
in the bin/
directory. Available configuration options are covered in Configuring.
The code is easily run by specifying an input file:
> cd bin
> ./athena -i <path/filename>
Additional command line options are covered in Running the Code.
Getting Started
User Guide
- Configuring
- Compiling
- The Input File
- Problem Generators
- Boundary Conditions
- Coordinate Systems and Meshes
- Running the Code
- Outputs
- Using MPI and OpenMP
- Static Mesh Refinement
- Adaptive Mesh Refinement
- Load Balancing
- Special Relativity
- General Relativity
- Passive Scalars
- Shearing Box
- Diffusion Processes
- General Equation of State
- FFT
- Multigrid
- High-Order Methods
- Super-Time-Stepping
- Orbital Advection
- Rotating System
- Reading Data from External Files
- Non-relativistic Radiation Transport
- Cosmic Ray Transport
- Units and Constants
Programmer Guide