Functions

prob/firehose.c File Reference

Problem generator for firehose test of Braginskii viscosity. More...

Go to the source code of this file.

Functions

static double ran2 (long int *idum)
 Extracted from the Numerical Recipes in C (version 2) code.
static void pbc_ix1 (Grid *pGrid)
 Special PERIODIC boundary conditions, Inner x1 boundary.
static void pbc_ox1 (Grid *pGrid)
 Special PERIODIC boundary conditions, Outer x1 boundary.
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)
Gasfun_t get_usr_expr (const char *expr)
 Sets pointer to expression for special output data.
VGFunout_t get_usr_out_fun (const char *name)
 Returns a user defined output function pointer.
PropFun_t get_usr_par_prop (const char *name)
 Returns a user defined particle selection function.
void gasvshift (const Real x1, const Real x2, const Real x3, Real *u1, Real *u2, Real *u3)
 Gas velocity shift.
void Userforce_particle (Vector *ft, const Real x1, const Real x2, const Real x3, Real *w1, Real *w2, Real *w3)
void Userwork_in_loop (Grid *pGrid, Domain *pDomain)
void Userwork_after_loop (Grid *pGrid, Domain *pDomain)

Detailed Description

Problem generator for firehose test of Braginskii viscosity.

PURPOSE: Problem generator for firehose test of Braginskii viscosity.

PRIVATE FUNCTION PROTOTYPES:

Definition in file firehose.c.


Function Documentation

void gasvshift ( const Real  x1,
const Real  x2,
const Real  x3,
Real u1,
Real u2,
Real u3 
)

Gas velocity shift.

Definition at line 195 of file firehose.c.

Referenced by feedback_predictor(), Get_Drag(), and Get_Term().

Here is the caller graph for this function:

Gasfun_t get_usr_expr ( const char *  expr  ) 

Sets pointer to expression for special output data.

Definition at line 180 of file firehose.c.

VGFunout_t get_usr_out_fun ( const char *  name  ) 

Returns a user defined output function pointer.

Definition at line 185 of file firehose.c.

PropFun_t get_usr_par_prop ( const char *  name  ) 

Returns a user defined particle selection function.

Definition at line 190 of file firehose.c.

Referenced by init_output().

Here is the caller graph for this function:

static void pbc_ix1 ( Grid *  pGrid  )  [static]

Special PERIODIC boundary conditions, Inner x1 boundary.

Definition at line 299 of file firehose.c.

References ju, ku, Lx, par_getd(), xmax, and xmin.

Referenced by problem().

Here is the call graph for this function:

Here is the caller graph for this function:

static void pbc_ox1 ( Grid *  pGrid  )  [static]

Special PERIODIC boundary conditions, Outer x1 boundary.

Definition at line 362 of file firehose.c.

References ju, ku, Lx, par_getd(), xmax, and xmin.

Referenced by problem().

Here is the call graph for this function:

Here is the caller graph for this function:

void problem ( Grid *  pGrid,
Domain *  pDomain 
)

Definition at line 39 of file firehose.c.

References amp, ath_error(), B0, cc_pos(), d0, Gamma_1, iprob, left_x1, Lx, nx1, nx2, p0, par_getd(), pbc_ix1(), pbc_ox1(), ran2(), right_x1, x1max, and x1min.

Here is the call graph for this function:

void problem_read_restart ( Grid *  pG,
Domain *  pD,
FILE *  fp 
)

Definition at line 175 of file firehose.c.

void problem_write_restart ( Grid *  pG,
Domain *  pD,
FILE *  fp 
)

Definition at line 170 of file firehose.c.

double ran2 ( long int *  idum  )  [static]

Extracted from the Numerical Recipes in C (version 2) code.

Modified to use doubles instead of floats. -- T. A. Gardiner -- Aug. 12, 2003

Long period (> 2 x 10^{18}) random number generator of L'Ecuyer with Bays-Durham shuffle and added safeguards. Returns a uniform random deviate between 0.0 and 1.0 (exclusive of the endpoint values). Call with idum = a negative integer to initialize; thereafter, do not alter idum between successive deviates in a sequence. RNMX should appriximate the largest floating point value that is less than 1.

Definition at line 245 of file firehose.c.

Referenced by Normal(), problem(), and pspect().

Here is the caller graph for this function:

void Userforce_particle ( Vector *  ft,
const Real  x1,
const Real  x2,
const Real  x3,
Real w1,
Real w2,
Real w3 
)

Definition at line 201 of file firehose.c.

Referenced by Get_Force(), and Get_ForceDiff().

Here is the caller graph for this function:

void Userwork_after_loop ( Grid *  pGrid,
Domain *  pDomain 
)

Definition at line 212 of file firehose.c.

void Userwork_in_loop ( Grid *  pGrid,
Domain *  pDomain 
)

Definition at line 208 of file firehose.c.