PLUTO Test Problems
4.4-patch2
|
Fluid-CR relative drift test. More...
Functions | |
void | InitDomain (Data *d, Grid *grid) |
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) |
Set the fluid configuration for the Fluid-particles relative drift test, as described in section 4.3 of [MVBM18].
The six configuration corresponds to the five cases plotted in Fig4 using a MUSCL-Hancock scheme plus one case with RK2:
void Analysis | ( | const Data * | d, |
Grid * | grid | ||
) |
Perform runtime data analysis.
[in] | d | the PLUTO Data structure |
[in] | grid | pointer to array of Grid structures |
void BackgroundField | ( | double | x1, |
double | x2, | ||
double | x3, | ||
double * | B0 | ||
) |
Define the component of a static, curl-free background magnetic field.
[in] | x1 | position in the 1st coordinate direction ![]() |
[in] | x2 | position in the 2nd coordinate direction ![]() |
[in] | x3 | position in the 3rd coordinate direction ![]() |
[out] | B0 | array containing the vector componens of the background magnetic field |
void InitDomain | ( | Data * | d, |
Grid * | grid | ||
) |
void UserDefBoundary | ( | const Data * | d, |
RBox * | box, | ||
int | side, | ||
Grid * | grid | ||
) |
Assign user-defined boundary conditions.
[in,out] | d | pointer to the PLUTO data structure containing cell-centered primitive quantities (d->Vc) and staggered magnetic fields (d->Vs, when used) to be filled. |
[in] | box | pointer to a RBox structure containing the lower and upper indices of the ghost zone-centers/nodes or edges at which data values should be assigned. |
[in] | side | specifies the boundary side where ghost zones need to be filled. It can assume the following pre-definite values: X1_BEG, X1_END, X2_BEG, X2_END, X3_BEG, X3_END. The special value side == 0 is used to control a region inside the computational domain. |
[in] | grid | pointer to an array of Grid structures. |