Problem generator shear wave test with Lagrangian particles. More...
Go to the source code of this file.
Functions | |
static Real | ShearingBoxPot (const Real x1, const Real x2, const Real x3) |
int | GetPosition (Grain *gr) |
get particle status (grid/crossing) | |
static int | property_mybin (const Grain *gr, const GrainAux *grsub) |
Real | expr_V2par (const Grid *pG, const int i, const int j, const int k) |
Wrapper for particle 2-velocity. | |
void | problem (Grid *pGrid, Domain *pDomain) |
void | problem_write_restart (Grid *pG, Domain *pD, FILE *fp) |
void | problem_read_restart (Grid *pG, Domain *pD, FILE *fp) |
static Real | ScalarDen (const Grid *pG, const int i, const int j, const int k) |
Scalar density. | |
static Real | diffd (const Grid *pG, const int i, const int j, const int k) |
Density - 1. | |
static Real | expr_dV2 (const Grid *pG, const int i, const int j, const int k) |
2-component velocity difference | |
Variables | |
int | Nx12 |
Problem generator shear wave test with Lagrangian particles.
PURPOSE: Problem generator shear wave test with Lagrangian particles. Must work in 3D, and the wavevector is in x2 direction. Particles can be initialized either with uniform density or with density profile same as the gas. SHEARING_BOX must be turned on, FARGO is optional.
Definition in file par_shwave2d.c.
static Real diffd | ( | const Grid * | pG, | |
const int | i, | |||
const int | j, | |||
const int | k | |||
) | [static] |
Density - 1.
Definition at line 236 of file par_shwave2d.c.
static Real expr_dV2 | ( | const Grid * | pG, | |
const int | i, | |||
const int | j, | |||
const int | k | |||
) | [static] |
2-component velocity difference
Definition at line 244 of file par_shwave2d.c.
References cc_pos(), Omega_0, and qshear.
Real expr_V2par | ( | const Grid * | pG, | |
const int | i, | |||
const int | j, | |||
const int | k | |||
) |
Wrapper for particle 2-velocity.
Definition at line 319 of file output_particle.c.
int GetPosition | ( | Grain * | gr | ) |
void problem | ( | Grid * | pGrid, | |
Domain * | pDomain | |||
) |
Definition at line 46 of file par_shwave2d.c.
References amp, ath_error(), cc_pos(), GetPosition(), Iso_csound, n, Npar, nwave, Nx12, Omega_0, omg, par_getd(), par_getd_def(), par_geti(), particle_realloc(), qshear, ShearingBoxPot, StaticGravPot, tstop0, x1max, x1min, x2max, and x2min.
void problem_read_restart | ( | Grid * | pG, | |
Domain * | pD, | |||
FILE * | fp | |||
) |
Definition at line 215 of file par_shwave2d.c.
References Omega_0, par_getd_def(), qshear, ShearingBoxPot, and StaticGravPot.
void problem_write_restart | ( | Grid * | pG, | |
Domain * | pD, | |||
FILE * | fp | |||
) |
Definition at line 210 of file par_shwave2d.c.
static int property_mybin | ( | const Grain * | gr, | |
const GrainAux * | grsub | |||
) | [static] |
static Real ScalarDen | ( | const Grid * | pG, | |
const int | i, | |||
const int | j, | |||
const int | k | |||
) | [static] |
Scalar density.
Definition at line 228 of file par_shwave2d.c.
int Nx12 |
Definition at line 26 of file par_shwave2d.c.
Referenced by problem().