28 int ghosts = solver->
ghosts;
29 int ndims = solver->
ndims;
31 double *u = solver->
u;
37 double rho,vx,vy,e,P,c,dxinv,dyinv,local_cfl[2];
40 c = sqrt(param->
gamma*P/rho);
46 if (local_cfl[
_XDIR_] > max_cfl) max_cfl = local_cfl[
_XDIR_];
47 if (local_cfl[
_YDIR_] > max_cfl) max_cfl = local_cfl[
_YDIR_];
double NavierStokes2DComputeCFL(void *s, void *m, double dt, double t)
Contains function definitions for common mathematical functions.
#define _NavierStokes2DGetFlowVar_(u, rho, vx, vy, e, P, gamma)
Some basic definitions and macros.
Structure containing all solver-specific variables and functions.
Contains structure definition for hypar.
2D Navier Stokes equations (compressible flows)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
Structure containing variables and parameters specific to the 2D Navier Stokes equations. This structure contains the physical parameters, variables, and function pointers specific to the 2D Navier-Stokes equations.
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
Contains macros and function definitions for common array operations.