28 int ghosts = solver->
ghosts;
29 int ndims = solver->
ndims;
31 double *u = solver->
u;
37 double rho, v, e, P, c, dxinv, local_cfl;
40 c = sqrt(param->
gamma*P/rho);
41 local_cfl = (
absolute(v)+c)*dt*dxinv;
42 if (local_cfl > max_cfl) max_cfl = local_cfl;
double Euler1DComputeCFL(void *s, void *m, double dt, double t)
Contains function definitions for common mathematical functions.
Structure containing variables and parameters specific to the 1D Euler equations. This structure cont...
Some basic definitions and macros.
Structure containing all solver-specific variables and functions.
Contains structure definition for hypar.
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
1D Euler Equations (inviscid, compressible flows)
#define _Euler1DGetFlowVar_(u, rho, v, e, P, p)
Contains macros and function definitions for common array operations.