53 int v, done, p, p1, p2, dir;
54 double *SourceI = solver->
fluxI;
55 double *SourceC = solver->
fluxC;
56 double *SourceL = solver->
fL;
57 double *SourceR = solver->
fR;
59 int ghosts = solver->
ghosts;
61 double *x = solver->
x;
62 double *dxinv = solver->
dxinv;
63 double RT = param->
p0 / param->
rho0;
71 if (grav[dir] != 0.0) {
90 double dx_inverse;
_GetCoordinate_(dir,index[dir],dim,ghosts,dxinv,dx_inverse);
137 int ghosts = solver->
ghosts;
143 int i;
for (i=0; i<
_MODEL_NDIMS_; i++) bounds[i] += 2*ghosts;
197 for (index_inter[dir] = 0; index_inter[dir] < bounds_inter[dir]; index_inter[dir]++) {
MPI related function definitions.
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.
int NavierStokes3DSourceUpwind(double *, double *, double *, double *, int, void *, double)
Contains structure definition for hypar.
int(* InterpolateInterfacesHyp)(double *, double *, double *, double *, int, int, void *, void *, int)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ArrayIndex1DWO_(N, imax, i, offset, ghost, index)
static const int _NavierStokes3D_stride_
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
int NavierStokes3DSourceFunction(double *, double *, double *, void *, void *, double, int)
Structure of MPI-related variables.
#define _ArrayCopy1D_(x, y, size)
Contains macros and function definitions for common array operations.
int NavierStokes3DSource(double *source, double *u, void *s, void *m, double t)
#define _NavierStokes3DGetFlowVar_(u, stride, rho, vx, vy, vz, e, P, gamma)