Functions

prob/jeans.c File Reference

Problem generator for simple self-gravity test. More...

Go to the source code of this file.

Functions

void problem (DomainS *pDomain)
 Problem initial conditions, edited for each problem.
void problem_write_restart (MeshS *pM, FILE *fp)
 Problem specific subroutine for use with writing restart files, Edited for each problem.
void problem_read_restart (MeshS *pM, FILE *fp)
 Problem specific subroutine for use with reading restart files, Edited for each problem.
static Real color (const GridS *pG, const int i, const int j, const int k)
 returns first passively advected scalar s[0]
ConsFun_t get_usr_expr (const char *expr)
 Sets pointer to expression for special output data.
VOutFun_t get_usr_out_fun (const char *name)
 Returns a user defined output function pointer.
void Userwork_in_loop (MeshS *pM)
 Problem work executed during each step in the main Athena loop, see main.c.
void Userwork_after_loop (MeshS *pM)
 Problem work executed after the main Athena loop, see main.c Edited for each problem.

Detailed Description

Problem generator for simple self-gravity test.

PURPOSE: Problem generator for simple self-gravity test.

SELF_GRAVITY must be defined; use --with-gravity=fft and for fft method, --enable-fft

B-field (when present) lies along direction perpendicular to wavevector. Wavevector is along chosen direction (1, 2, or 3).

Definition in file jeans.c.


Function Documentation

static Real color ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

returns first passively advected scalar s[0]

Definition at line 208 of file jeans.c.

References ConsS::d, ConsS::s, and GridS::U.

ConsFun_t get_usr_expr ( const char *  expr  ) 

Sets pointer to expression for special output data.

Definition at line 214 of file jeans.c.

VOutFun_t get_usr_out_fun ( const char *  name  ) 

Returns a user defined output function pointer.

Definition at line 223 of file jeans.c.

void problem ( DomainS pDomain  ) 
void problem_read_restart ( MeshS pM,
FILE *  fp 
)

Problem specific subroutine for use with reading restart files, Edited for each problem.

Definition at line 200 of file jeans.c.

void problem_write_restart ( MeshS pM,
FILE *  fp 
)

Problem specific subroutine for use with writing restart files, Edited for each problem.

Definition at line 195 of file jeans.c.

void Userwork_after_loop ( MeshS pM  ) 

Problem work executed after the main Athena loop, see main.c Edited for each problem.

Definition at line 233 of file jeans.c.

void Userwork_in_loop ( MeshS pM  ) 

Problem work executed during each step in the main Athena loop, see main.c.

Edited for each problem.

Definition at line 228 of file jeans.c.