27 int ghosts = solver->
ghosts;
28 int ndims = solver->
ndims;
30 double *u = solver->
u;
36 double rho, vx, vy, vz, e, P, c, dxinv, dyinv, dzinv, local_cfl[3];
39 c = sqrt(param->
gamma*P/rho);
47 if (local_cfl[
_XDIR_] > max_cfl) max_cfl = local_cfl[
_XDIR_];
48 if (local_cfl[
_YDIR_] > max_cfl) max_cfl = local_cfl[
_YDIR_];
49 if (local_cfl[
_ZDIR_] > max_cfl) max_cfl = local_cfl[
_ZDIR_];
Contains function definitions for common mathematical functions.
Structure containing variables and parameters specific to the 3D Navier Stokes equations. This structure contains the physical parameters, variables, and function pointers specific to the 3D Navier-Stokes equations.
Some basic definitions and macros.
3D Navier Stokes equations (compressible flows)
Structure containing all solver-specific variables and functions.
Contains structure definition for hypar.
#define _ArrayIndex1D_(N, imax, i, ghost, index)
static const int _NavierStokes3D_stride_
#define _ArraySetValue_(x, size, value)
double NavierStokes3DComputeCFL(void *s, void *m, double dt, double t)
#define _ArrayIncrementIndex_(N, imax, i, done)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
Contains macros and function definitions for common array operations.
#define _NavierStokes3DGetFlowVar_(u, stride, rho, vx, vy, vz, e, P, gamma)