PLUTO
|
Taylor-Couette Flow in 2D cylindrical coordinates. More...
#include "pluto.h"
Go to the source code of this file.
Functions | |
void | Init (double *v, double x1, double x2, double x3) |
void | Analysis (const Data *d, Grid *grid) |
void | UserDefBoundary (const Data *d, RBox *box, int side, Grid *grid) |
Taylor-Couette Flow in 2D cylindrical coordinates.
This problem considers a fluid rotating between two concentric cylinders situated at and
(fixed by the computational domain in
pluto.ini
). The outer cylinder is not rotating while the inner one rotates with anular velocity . Viscous effects are controlled by the Reynolds number defined in
visc_nu.c
as
For Reynolds numbers vortices are formed, the axial distribution of which is controlled by the wave-number of the initial perturbation
. For small Reynolds numbers, viscosity suppresses the vortex formation.
The input parameters for this problem are:
g_inputParam[OMEGA]
: the angular velocity of the inner cylinder.g_inputParam[REYN]
: the Reynolds number.References
Definition in file init.c.
void Init | ( | double * | v, |
double | x1, | ||
double | x2, | ||
double | x3 | ||
) |
The Init() function can be used to assign initial conditions as as a function of spatial position.
[out] | v | a pointer to a vector of primitive variables |
[in] | x1 | coordinate point in the 1st dimension |
[in] | x2 | coordinate point in the 2nd dimension |
[in] | x3 | coordinate point in the 3rdt dimension |
The meaning of x1, x2 and x3 depends on the geometry:
Variable names are accessed by means of an index v[nv], where nv = RHO is density, nv = PRS is pressure, nv = (VX1, VX2, VX3) are the three components of velocity, and so forth.
Definition at line 42 of file init.c.
Assign user-defined boundary conditions at inner and outer radial boundaries. Reflective conditions are applied except for the azimuthal velocity which is fixed.
Definition at line 74 of file init.c.