Functions | Variables

prob/collapse3d.c File Reference

Problem generator for spherical collapse. 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.
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.

Variables

static Real d0
static Real d1
static Real p0
static Real vx0
static Real vy0
static Real vz0
static Real bx0
static Real by0
static Real bz0
static Real radius

Detailed Description

Problem generator for spherical collapse.

Gravity test.

Definition in file collapse3d.c.


Function Documentation

ConsFun_t get_usr_expr ( const char *  expr  ) 

Sets pointer to expression for special output data.

Definition at line 241 of file collapse3d.c.

VOutFun_t get_usr_out_fun ( const char *  name  ) 

Returns a user defined output function pointer.

Definition at line 246 of file collapse3d.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 236 of file collapse3d.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 228 of file collapse3d.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 255 of file collapse3d.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 250 of file collapse3d.c.


Variable Documentation

Real bx0 [static]

Definition at line 19 of file collapse3d.c.

Referenced by problem().

Real by0 [static]

Definition at line 19 of file collapse3d.c.

Referenced by problem().

Real bz0 [static]

Definition at line 19 of file collapse3d.c.

Referenced by problem().

Real d0 [static]
Real d1 [static]
Real p0 [static]
Real radius [static]

Definition at line 19 of file collapse3d.c.

Referenced by problem().

Real vx0 [static]

Definition at line 19 of file collapse3d.c.

Referenced by problem().

Real vy0 [static]

Definition at line 19 of file collapse3d.c.

Referenced by problem().

Real vz0 [static]

Definition at line 19 of file collapse3d.c.

Referenced by problem().