PLUTO
|
MHD Rotor test problem. More...
#include "pluto.h"
Go to the source code of this file.
Functions | |
void | Init (double *v, double x1, double x2, double x3) |
void | Analysis (const Data *d, Grid *grid) |
void | BackgroundField (double x1, double x2, double x3, double *B0) |
void | UserDefBoundary (const Data *d, RBox *box, int side, Grid *grid) |
MHD Rotor test problem.
The rotor problem consists of a rapidly spinning cylinder embedded in a static background medium with uniform density and pressure and a constant magnetic field along the x direction . The cylinder rotates uniformly with constant angular velocity
and has larger density:
Here and
is a taper function. The ideal equation of state with
is used. As the disk rotates, strong torsional Alfven waves form and propagate outward carrying angular momentum from the disk to the ambient.
A list of tested configurations is given in the following table:
Conf. | GEOMETRY | divB | BCK_FIELD | AMR |
---|---|---|---|---|
#01 | CARTESIAN | CT | NO | NO |
#02 | POLAR | CT | NO | NO |
#03 | POLAR | 8W | NO | NO |
#04 | POLAR | CT | YES | NO |
#05 | POLAR | GLM | NO | NO |
#06 | CARTESIAN | GLM | NO | NO |
#07 | CARTESIAN | GLM | NO | YES |
#08 | CARTESIAN | 8W | NO | YES |
#09 | POLAR | CT | YES | NO |
#10 | POLAR | CT | YES | NO |
#11 | POLAR | GLM | YES | YES |
A snapshot of the solution using static and AMR grid is given below.
Reference:
Definition in file init.c.
void BackgroundField | ( | double | x1, |
double | x2, | ||
double | x3, | ||
double * | B0 | ||
) |
void Init | ( | double * | v, |
double | x1, | ||
double | x2, | ||
double | x3 | ||
) |
The Init() function can be used to assign initial conditions as as a function of spatial position.
[out] | v | a pointer to a vector of primitive variables |
[in] | x1 | coordinate point in the 1st dimension |
[in] | x2 | coordinate point in the 2nd dimension |
[in] | x3 | coordinate point in the 3rdt dimension |
The meaning of x1, x2 and x3 depends on the geometry:
Variable names are accessed by means of an index v[nv], where nv = RHO is density, nv = PRS is pressure, nv = (VX1, VX2, VX3) are the three components of velocity, and so forth.
Definition at line 63 of file init.c.
Provide inner radial boundary condition in polar geometry. Zero gradient is prescribed on density, pressure and magnetic field. For the velocity, zero gradient is imposed on v/r (v = vr, vphi).
Definition at line 164 of file init.c.