FARGO-MHD module header file. More...
Go to the source code of this file.
Macros | |
#define | FARGO_ORDER 3 |
#define | FARGO_NSTEP_AVERAGE 10 |
#define | FARGO_AVERAGE_VELOCITY YES |
Functions | |
void | FARGO_AddVelocity (const Data *, Grid *) |
void | FARGO_ComputeVelocity (const Data *, Grid *) |
double ** | FARGO_GetVelocity (void) |
void | FARGO_SubtractVelocity (const Data *, Grid *) |
void | FARGO_ShiftSolution (Data_Arr, Data_Arr, Grid *) |
Contains contains basic definitions and declarations used by the FARGO-MHD module.
#define FARGO_AVERAGE_VELOCITY YES |
Average background velocity is computed by averaging the orbital velocity (YES) or by prescribing the velocity analytically exactly in the user-supplied function FARGO_SetVelocity
#define FARGO_NSTEP_AVERAGE 10 |
Set how often (in number of steps) the total azimuthal velocity should be averaged.
#define FARGO_ORDER 3 |
Set the order of interpolation during the linear transport step. Either 2 or 3.
Compute the mean orbital velocity as a 2D array by averaging for each pair (x,z)/(r,z)/(r,theta) (in Cartesian/polar/spherical) along the orbital coordinate y/phi/phi.
double** FARGO_GetVelocity | ( | void | ) |
Return a pointer to the background orbital velocity wA.
void FARGO_ShiftSolution | ( | Data_Arr | U, |
Data_Arr | Us, | ||
Grid * | grid | ||
) |
Shifts conserved variables in the orbital direction.
[in,out] | U | a 3D array of conserved, zone-centered values |
[in,out] | Us | a 3D array of staggered magnetic fields |
[in] | grid | pointer to Grid structure; |