Functions

prob/lw_implode.c File Reference

Problem generator for square implosion problem. More...

Go to the source code of this file.

Functions

static Real expr_diff_d (const GridS *pG, const int i, const int j, const int k)
 computes difference d{i,j}-d{j,i} to test if solution is symmetric
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.

Detailed Description

Problem generator for square implosion problem.

PURPOSE: Problem generator for square implosion problem.

REFERENCE: R. Liska & B. Wendroff, SIAM J. Sci. Comput., 25, 995 (2003)

Definition in file lw_implode.c.


Function Documentation

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

computes difference d{i,j}-d{j,i} to test if solution is symmetric

Definition at line 127 of file lw_implode.c.

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

ConsFun_t get_usr_expr ( const char *  expr  ) 

Sets pointer to expression for special output data.

Definition at line 107 of file lw_implode.c.

VOutFun_t get_usr_out_fun ( const char *  name  ) 

Returns a user defined output function pointer.

Definition at line 113 of file lw_implode.c.

void problem ( DomainS pDomain  ) 

Problem initial conditions, edited for each problem.

Definition at line 30 of file lw_implode.c.

References ath_error(), ConsS::d, DomainS::Disp, GridS::dx2, ConsS::E, Gamma_1, DomainS::Grid, GridS::ie, GridS::is, GridS::je, GridS::js, GridS::ke, GridS::ks, DomainS::Level, Ly, ConsS::M1, ConsS::M2, ConsS::M3, GridS::Nx, nx2, par_getd(), DomainS::RootMaxX, DomainS::RootMinX, and GridS::U.

Here is the call graph for this function:

void problem_read_restart ( MeshS pM,
FILE *  fp 
)

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

Definition at line 102 of file lw_implode.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 97 of file lw_implode.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 121 of file lw_implode.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 117 of file lw_implode.c.