Initial conditions / pre-cooked configurations

How to select a pre-cooked compile-time configuration

When writing your local Makefile simply give the name of the desired SETUP variable as the argument. For example:

~/phantom/scripts/writemake.sh disc > Makefile

Alternatively you can override this manually at compile-time:

make SETUP=disc
make SETUP=disc setup

Possible values of the SETUP variable are listed below.

Well-maintained setups

The most used, well-maintained and supported options for the SETUP variable are:

List of pre-cooked SETUP configurations

SETUP=

description

compile-time options

initial conditions file

disc

locally isothermal gas disc

disc viscosity, isothermal

setup_disc.f90

star

import stellar model from 1D stellar evolution code

self-gravity

setup_star.f90

binary

binary stars

self-gravity

setup_binary.f90

wind

wind setup with dust nucleation

setup_wind.f90

jet

Jet simulation from Price, Tricco & Bate (2012)

MHD, self-gravity, isothermal, periodic

setup_sphereinbox.f90

turb

driven supersonic turbulence (hydro, mhd, dusty)

isothermal

setup_turb.f90

cluster

star cluster formation

self-gravity, isothermal

setup_cluster.f90

All setups

The full list of pre-cooked configurations (taken from build/Makefile_setups) is as follows:

List of pre-cooked SETUP configurations

SETUP=

description

compile-time options

initial conditions file

BHL

Bondi-Hoyle-Lyttleton setup

setup_BHL.f90

adiabaticdisc

adiabatic disc

disc viscosity

setup_disc.f90

alfven

MHD circularly polarised Alfven wave problem

MHD, periodic

setup_alfvenwave.f90

asteroidwind

asteroid emitting a wind (Trevascus et al. 2021)

isothermal

setup_asteroidwind.f90

balsarakim

Balsara-Kim 2004

MHD, periodic

setup_unifdis.f90

binary

binary stars

self-gravity

setup_binary.f90

binarydiscMFlow

binarydiscMFlow setup

isothermal

setup_disc.f90

blob

Blob evaporation problem

periodic

setup_blob.f90

bondi

Bondi accretion flow

isothermal

setup_bondi.f90

cluster

star cluster formation

self-gravity, isothermal

setup_cluster.f90

common

binary setup

setup_common.f90

converging

Simulation from Wurster & Bonnell (2023)

no, self-gravity, no, periodic

setup_collidingclouds.f90

default

default setup, uniform box

dust, periodic

setup_unifdis.f90

disc

locally isothermal gas disc

disc viscosity, isothermal

setup_disc.f90

dustsettle

dust settling test from PL15

dust, isothermal, periodic

setup_dustsettle.f90

dustybox

dust in a box

dust, isothermal, periodic

setup_dustybox.f90

dustydisc

locally isothermal dusty discs

dust, disc viscosity, isothermal

setup_disc.f90

dustyisosgdisc

isothermal self-gravitating dustydisc

dust, self-gravity, disc viscosity, isothermal

setup_disc.f90

dustysedov

Sedov blast wave test with dust

dust, periodic

setup_dustysedov.f90

dustysgdisc

self-gravitating dustydisc

dust, self-gravity

setup_disc.f90

dustyshock

shock tube tests with dust

dust, periodic

setup_shock.F90

dustystar

import stellar model from 1D stellar evolution code w/dust

self-gravity

setup_star.f90

dustywave

dust in a box

dust, periodic

setup_wave.f90

empty

empty setup for external-driver simulation

setup_empty.f90

evrard

Evrard collapse test problem

self-gravity

setup_star.f90

exoALMA

exoALMA comparison of planet-disc interaction

isothermal

setup_disc.f90

firehose

injection of a stream of gas as a firehose

setup_firehose.f90

flrw

constant density FLRW cosmology with perturbations

GR, et, periodic

setup_flrw.f90

flrwpspec

FLRW universe using a CMB powerspectrum

GR, et, periodic

setup_flrwpspec.f90

galaxies

galaxy merger using data from Wurster & Thacker (2013a,b)

self-gravity

setup_galaxies.f90

galcen

galactic centre

setup_galcen_stars.f90

galdisc

galactic disc simulations

setup_galdisc.f90

galdiscmhd

galactic disc simulations with magnetic fields

MHD, isothermal

setup_galdisc.f90

gr_testparticles

test particles in GR

GR, kerr

setup_testparticles.f90

grbondi

Bondi accretion flow in GR

GR, schwarzschild

setup_bondi.f90

grbondi-inject

Bondi accretion flow in GR with particle injection

GR, schwarzschild

setup_bondiinject.F90

grdisc

accretion disc around a Kerr black hole

GR, kerr

setup_grdisc.f90

growingdisc

locally isothermal dusty discs with growth and fragmentation

dust, disc viscosity, isothermal

setup_disc.f90

growthtomulti

transform dustgrowth dump into multi large grains dump

dust, disc viscosity, isothermal

setup_unifdis.f90

grstar

star in GR using Minkowski metric

GR, minkowski, self-gravity

setup_star.f90

grtde

tidal disruption event in general relativity

GR, kerr, self-gravity

setup_grtde.f90

gwdisc

disc around inspiralling binary with gravitational wave decay

disc viscosity, isothermal

setup_gwdisc.f90

hierarchical

hierarchical system setup

setup_hierarchical.f90

ismwind

wind setup with dust nucleation and ISM cooling

setup_wind.f90

isosgdisc

isothermal self-gravitating disc

self-gravity, disc viscosity, isothermal

setup_disc.f90

isowind

isothermal spherical wind

isothermal

setup_wind.f90

jadvect

MHD current loop advection problem

MHD, periodic

setup_jadvect.f90

jet

Jet simulation from Price, Tricco & Bate (2012)

MHD, self-gravity, isothermal, periodic

setup_sphereinbox.f90

jetdusty

dust in star formation

no, dust, self-gravity, isothermal, periodic

setup_sphereinbox.f90

jetnimhd

Simulation from Wurster, Price & Bate (2016,2017) et seq

MHD, non-ideal, self-gravity, isothermal, periodic

setup_sphereinbox.f90

kh

Kelvin-Helmholtz problem

periodic

setup_kh.f90

lightcurvedisc

adiabatic disc with lightcurve

disc viscosity

setup_disc.f90

mhdblast

MHD blast wave test

MHD, periodic

setup_mhdblast.f90

mhdrotor

MHD rotor problem

MHD, periodic

setup_mhdrotor.f90

mhdshock

Ryu & Brio-Wu shock tube tests

MHD, periodic

setup_shock.F90

mhdsine

MHD sine wave

MHD, periodic

setup_mhdsine.f90

mhdvortex

Balsara (2004) MHD vortex

MHD, periodic

setup_mhdvortex.f90

mhdwave

propagating isolated MHD wave

MHD, periodic

setup_mhdwave.f90

neutronstar

isolated neutron star

isothermal

setup_star.f90

nimhdshock

non-ideal mhd standing and C shock tests

MHD, non-ideal, isothermal, periodic

setup_shock.F90

nshwdisc

disc around a neutron star

disc viscosity, isothermal

setup_nsdisc.f90

nsmerger

Model a neutron star merger; use option 6

self-gravity, isothermal

setup_star.f90

orstang

Orszag-Tang vortex

MHD, periodic

setup_orstang.f90

planetatm

disc interaction with fixed planet orbit + atmosphere

isothermal

setup_disc.f90

planetdisc

planet disc interaction with fixed planet orbit

isothermal

setup_planetdisc.f90

polytrope

single or binary polytrope test

self-gravity, isothermal

setup_star.f90

prtest

simple test of Poynting-Robertson drag

isothermal

setup_prtest.f90

quebec

Terry Tricco

self-gravity

setup_quebec.f90

raddisc

adiabatic disc with radiation

radiation, disc viscosity

setup_disc.f90

radiativebox

test of radiation coupling terms

radiation, periodic

setup_radiativebox.f90

radiotde

radio tidal disruption event in general relativity

GR, minkowski, no

setup_unifdis.f90

radshock

shock tube in radiation hydrodynamics

radiation, periodic

setup_shock.F90

radstar

setup a star as in the star setup but with radiation

self-gravity, radiation

setup_star.f90

radwind

wind setup with dust nucleation

setup_wind.f90

sedov

Sedov blast wave test

periodic

setup_sedov.f90

sgdisc

self-gravitating disc

self-gravity

setup_disc.f90

shock

shock tube tests

periodic

setup_shock.F90

solarsystem

orbits of minor planets

dust, isothermal

setup_solarsystem.f90

sphereinbox

sphere-in-box setup

periodic

setup_sphereinbox.f90

srblast

special relativistic blast wave test (spherical)

GR, minkowski, periodic

setup_srblast.f90

srpolytrope

polytrope in special relativity

GR, minkowski, self-gravity

setup_srpolytrope.f90

srshock

special relativistic sod shock tube test

GR, minkowski, periodic

setup_shock.F90

star

import stellar model from 1D stellar evolution code

self-gravity

setup_star.f90

taylorgreen

Taylor-Green vortex problem

isothermal

setup_taylorgreen.f90

tde

tidal disruption simulations

self-gravity, isothermal

setup_star.f90

test

default setup for tests

MHD, dust, radiation, periodic

setup_unifdis.f90

test2

default setup for tests

disc viscosity

setup_unifdis.f90

testcyl

default setup for tests

disc viscosity

setup_unifdis.f90

testdust

dust unit tests

dust, periodic

setup_unifdis.f90

testgr

unit tests of general relativistic code

GR, kerr

setup_grdisc.f90

testgrav

self-gravity unit tests

self-gravity

setup_unifdis.f90

testgrowth

dust growth unit tests

dust, periodic

setup_unifdis.f90

testkd

default setup for tests

MHD, radiation, periodic

setup_unifdis.f90

testlum

Lense-Thirring setup

setup_unifdis.f90

testnimhd

non-ideal MHD (+boundary parts+super-timesteps) unit tests

MHD, non-ideal, isothermal, periodic

setup_unifdis.f90

testparticles

test particles

setup_testparticles.F90

tokamak

tokamak torus setup

isothermal

setup_tokamak.f90

torus

MRI torus

setup_torus.f90

turb

driven supersonic turbulence (hydro, mhd, dusty)

isothermal

setup_turb.f90

turbdrive

driven turbulence

isothermal

setup_unifdis.f90

wave

linear wave

periodic

setup_wave.f90

wavedamp

Wave damping test as per Choi et al (2009)

MHD, non-ideal, isothermal, periodic

setup_wavedamp.f90

wd

white dwarf from stellar model

self-gravity

setup_star.f90

wddisc

disc around a white dwarf

dust, isothermal

setup_wddisc.f90

wind

wind setup with dust nucleation

setup_wind.f90

windtunnel

Wind tunnel setup

self-gravity

setup_windtunnel.f90

More information

For a fuller explanation of compile-time configuration options in Phantom, see Compile-time configuration.