Skip to content

Simple test problems and examples, as used in Phantom paper (Price et al. 2018)

Notifications You must be signed in to change notification settings

phantomSPH/phantom-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phantom-examples

Simple test problems and examples for the Phantom Smoothed Particle Hydrodynamics and Magnetohydrodynamics code.

https://github.com/danieljprice/phantom

Each directory contains parameter files (.setup/.in) for the test problems and examples presented in Phantom paper (Price et al. 2018), along with associated files needed to produce the plots presented in the paper using splash.

Usage

Most of the directories contain a script called `run.sh' that should be all you need to re-perform the test and make the associated plot:

cd hydro/shock
./run.sh

At the moment this script assumes the code is located in ~/phantom. If this is not true you should create a soft link i.e.

ln -s $PHANTOM_DIR ~/phantom

For plotting/visualisations to work you will need splash installed and available in your path.

Some of the other directories are less complete and just contain the .in and .setup files used for the test problem. This repository is a work in progress but allows for reproduction of the tests and figures presented in the original paper, with a few more added since.

Feel free to get in touch if you have suggestions for improvement. Contributions also welcome.

Daniel Price July 2021

About

Simple test problems and examples, as used in Phantom paper (Price et al. 2018)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published