PLUTO Test Problems  4.4-patch2
Functions
init.c File Reference

Epicycle test. More...

Functions

void InitDomain (Data *d, Grid *grid)
 
void Analysis (const Data *d, Grid *grid)
 
void BodyForceVector (double *v, double *g, double x, double y, double z)
 
double FARGO_SetVelocity (double x1, double x2)
 

Detailed Description

Provide initial conditions for the single-particle epicycle test given in sect. 4.1 of Bai & Stone (2010).

Configurations #01-#04 requires –with-sb while #02 and #04 can be run with –with-fargo

Author
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
Date
Aug 28, 2020

Function Documentation

◆ Analysis()

void Analysis ( const Data *  d,
Grid *  grid 
)

Compute volume-integrated magnetic pressure, Maxwell and Reynolds stresses. Save them to "averages.dat"

◆ BodyForceVector()

void BodyForceVector ( double *  v,
double *  g,
double  x,
double  y,
double  z 
)

Include gravitational force in the shearing box module. Coriolis terms are included elsewhere.

Note: with FARGO, gravity in the x-direction must not be included.

◆ FARGO_SetVelocity()

double FARGO_SetVelocity ( double  x1,
double  x2 
)

Compute the shear angular velocity to be subtracted from the HD or MHD equations.

◆ InitDomain()

void InitDomain ( Data *  d,
Grid *  grid 
)

Assign initial condition by looping over the computational domain. Called after the usual Init() function to assign initial conditions on primitive variables. Value assigned here will overwrite those prescribed during Init().