Functions for computing/retrieving the mean aziumthal velocity.
More...
◆ FARGO_AverageVelocity()
void FARGO_AverageVelocity |
( |
const Data * |
d, |
|
|
Grid * |
grid |
|
) |
| |
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.
◆ FARGO_ComputeResidualVelocity()
void FARGO_ComputeResidualVelocity |
( |
const Data * |
d, |
|
|
double *** |
vres, |
|
|
Grid * |
grid |
|
) |
| |
Add the mean background contribution to the residual velocity in order to obtain the total velocity.
- Parameters
-
[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 |
- Returns
- This function has no return value.
◆ FARGO_ComputeTotalVelocity()
void FARGO_ComputeTotalVelocity |
( |
const Data * |
d, |
|
|
double *** |
vtot, |
|
|
Grid * |
grid |
|
) |
| |
Add the mean background contribution to the residual velocity in order to obtain the total velocity.
- Parameters
-
[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 |
- Returns
- This function has no return value.
◆ FARGO_Initialize()
void FARGO_Initialize |
( |
void |
| ) |
|
◆ FARGO_Velocity()
double** FARGO_Velocity |
( |
void |
| ) |
|
Return a pointer to the background orbital velocity wA.
◆ wA
Defines a 2D array containing the azimuthally-averaged velocity. When the average is done along the X2 direction (Cartesian and polar geometries) the array should have size (NX3_TOT, NX1_TOT). When the average is performed along the X3 direction (spherical geometry) the array has dimensions (NX2_TOT, NX1_TOT)