Functions

prob/shu-osher.c File Reference

Problem generator for Shu-Osher shocktube test, involving interaction of a Mach 3 shock with a sine wave density distribution. 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.

Detailed Description

Problem generator for Shu-Osher shocktube test, involving interaction of a Mach 3 shock with a sine wave density distribution.

PURPOSE: Problem generator for Shu-Osher shocktube test, involving interaction of a Mach 3 shock with a sine wave density distribution.

REFERENCE: C.W. Shu & S. Osher, "Efficient implementation of essentially non-oscillatory shock-capturing schemes, II", JCP, 83, 32 (1998)

Definition in file shu-osher.c.


Function Documentation

ConsFun_t get_usr_expr ( const char *  expr  ) 

Sets pointer to expression for special output data.

Definition at line 99 of file shu-osher.c.

VOutFun_t get_usr_out_fun ( const char *  name  ) 

Returns a user defined output function pointer.

Definition at line 104 of file shu-osher.c.

void problem ( DomainS pDomain  ) 

Problem initial conditions, edited for each problem.

Definition at line 32 of file shu-osher.c.

References ath_error(), cc_pos(), ConsS::d, dl, ConsS::E, Gamma_1, DomainS::Grid, GridS::ie, il, GridS::is, iu, GridS::js, GridS::ks, ConsS::M1, ConsS::M2, ConsS::M3, GridS::Nx, pl, GridS::U, and ul.

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 94 of file shu-osher.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 89 of file shu-osher.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 112 of file shu-osher.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 108 of file shu-osher.c.