PLUTO
|
Functions for computing/retrieving the mean aziumthal velocity. More...
#include "pluto.h"
Go to the source code of this file.
Macros | |
#define | s k |
Functions | |
void | FARGO_ComputeVelocity (const Data *d, Grid *grid) |
void | FARGO_SubtractVelocity (const Data *d, Grid *grid) |
void | FARGO_AddVelocity (const Data *d, Grid *grid) |
int | FARGO_HasTotalVelocity () |
double ** | FARGO_GetVelocity (void) |
Variables | |
static double ** | wA |
static int | vphi_is_total_velocity = YES |
Functions for computing/retrieving the mean aziumthal velocity.
Collects various functions for computing, adding, subtracting and retrieving the azimuthally-averaged velocity. Depending on the macro FARGO_AVERAGE_VELOCITY (YES/NO) this is done either numerically or analytically.
Definition in file fargo_velocity.c.
#define s k |
Add the mean backgroun contribution to the residual velocity in order to obtain the total velocity.
[in,out] | d | pointer to PLUTO Data structure |
[in] | grid | pointer to array of Grid structures |
Definition at line 226 of file fargo_velocity.c.
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.
Definition at line 29 of file fargo_velocity.c.
double** FARGO_GetVelocity | ( | void | ) |
Return a pointer to the background orbital velocity wA.
Definition at line 270 of file fargo_velocity.c.
int FARGO_HasTotalVelocity | ( | ) |
Return 1 if the velocity array contains the total velocity. Return 0 otherwise.
Definition at line 261 of file fargo_velocity.c.
Subtract the mean background contribution from the total velocity. In other words, compute the residual velocity.
[in,out] | d | pointer to PLUTO Data structure |
[in] | grid | pointer to array of Grid structures |
Definition at line 188 of file fargo_velocity.c.
|
static |
Definition at line 185 of file fargo_velocity.c.
|
static |
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)
Definition at line 24 of file fargo_velocity.c.