Functions | Variables

prob/par_shwave2d.c File Reference

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

Detailed Description

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.


Function Documentation

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.

Here is the call graph for this function:

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  ) 

get particle status (grid/crossing)

Get particle status (grid/crossing).

Definition at line 417 of file par_linearwave1d.c.

References x1lpar, x1upar, x2lpar, x2upar, x3lpar, and x3upar.

Referenced by problem().

Here is the caller graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

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.

static Real ShearingBoxPot ( const Real  x1,
const Real  x2,
const Real  x3 
) [static]

Variable Documentation

int Nx12

Definition at line 26 of file par_shwave2d.c.

Referenced by problem().