PLUTO
4.4-patch2
|
FARGO-MHD module header file. More...
Go to the source code of this file.
Macros | |
#define | FARGO_ORDER 3 |
#define | FARGO_NSTEP_AVERAGE -1 /* Never average with ShearinBox model */ |
#define | FARGO_OUTPUT_VTOT NO |
Functions | |
void | FARGO_AverageVelocity (const Data *, Grid *) |
void | FARGO_ComputeResidualVelocity (const Data *, double ***, Grid *) |
void | FARGO_ComputeTotalVelocity (const Data *, double ***, Grid *) |
void | FARGO_Initialize (void) |
void | FARGO_Restart (const Data *, char *, int, int, Grid *) |
void | FARGO_ShiftSolution (Data_Arr, Data_Arr, Grid *) |
void | FARGO_Source (Data_Arr, Data_Arr, double, Grid *) |
double ** | FARGO_Velocity (void) |
Contains contains basic definitions and declarations used by the FARGO-MHD module.
#define FARGO_NSTEP_AVERAGE -1 /* Never average with ShearinBox model */ |
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. Default is 3.
#define FARGO_OUTPUT_VTOT NO |
Used to write total/residual velocity
Compute the background orbital velocity as a 2D array by averaging the total azimuthal velocity along the orbital coordinate y/phi/phi. Update the residual velocity as well.
Add the mean background contribution to the residual velocity in order to obtain the total velocity.
[in] | d | pointer to PLUTO Data structure. It is assumed that d->Vc[VX2] contains the total vel. |
[out] | vres | array where the residual velocity is stored. (can be also d->Vc[VX2]) |
[in] | grid | pointer to array of Grid structures |
Add the mean background contribution to the residual velocity in order to obtain the total velocity.
[in] | d | pointer to PLUTO Data structure. It is assumed that d->Vc[VX2] contains the residual. |
[out] | vtot | array where the total velocity is stored. (can be also d->Vc[VX2]) |
[in] | grid | pointer to array of Grid structures |
void FARGO_Initialize | ( | void | ) |
Initialize FARGO module.
Read average orbital speed from .dbl file and store it in 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; |
void FARGO_Source | ( | Data_Arr | UU, |
Data_Arr | Vs, | ||
double | dt, | ||
Grid * | grid | ||
) |
[in,out] | UU | array of conserved variables |
[in] | Vs | array of staggered magnetic fields |
[in] | dt | the current time increment |
[in] | grid | pointer to an array of Grid structures |
double** FARGO_Velocity | ( | void | ) |
Return a pointer to the background orbital velocity wA.