PLUTO Test Problems
4.4-patch2
|
Circularly polarized Alfven waves for RMHD. More...
Functions | |
void | InitDomain (Data *d, Grid *grid) |
void | UserDefBoundary (const Data *d, RBox *box, int side, Grid *grid) |
Setup the initial conditions for the large-amplitude circularly polarized Alfven wave test, as in section 4.1 of Del Zanna (2007).
Note: in 2D the solution is rotated around the $z$-axis by assuming one wavelength in both directions. This implies that and
. The transformation from the 1D (unrotated) system with primed coordinates to the actual computational system is given by
while the invers transormation is
Note that the wave phase
is invariant under rotations.
References:
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 on which side boundary conditions need to be assigned. side 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. |