Numerical benchmarks for Guiding Center method (fluid background).
More...
Set plasma (background) initial conditions for standard reference tests for the guiding center approximation (GCA).
The macro SETUP
(set in definitions.h
) is used to select the configuration:
SETUP
= 1: simple gyration setup
SETUP
= 2: ExB drift
SETUP
= 3: Gradient drift
SETUP
= 4: Curvature drift
SETUP
= 5: E // B test
- Author
- A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it) H. Haudemand
- Date
- March 4, 2021
◆ Analysis()
void Analysis |
( |
const Data * |
d, |
|
|
Grid * |
grid |
|
) |
| |
Perform runtime data analysis.
- Parameters
-
[in] | d | the PLUTO Data structure |
[in] | grid | pointer to array of Grid structures |
◆ BackgroundField()
void BackgroundField |
( |
double |
x1, |
|
|
double |
x2, |
|
|
double |
x3, |
|
|
double * |
B0 |
|
) |
| |
◆ 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().
◆ UserDefBoundary()
void UserDefBoundary |
( |
const Data * |
d, |
|
|
RBox * |
box, |
|
|
int |
side, |
|
|
Grid * |
grid |
|
) |
| |
Assign user-defined boundary conditions.
- Parameters
-
[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. |