35 if (param->
grav == 0.0)
return(0);
37 int v, done, p, p1, p2;
38 double *SourceI = solver->
fluxI;
39 double *SourceC = solver->
fluxC;
40 double *SourceL = solver->
fL;
41 double *SourceR = solver->
fR;
43 int ndims = solver->
ndims;
44 int ghosts = solver->
ghosts;
46 double *x = solver->
x;
47 double *dxinv = solver->
dxinv;
48 int index[ndims],index1[ndims],index2[ndims],dim_interface[ndims];
71 source[_MODEL_NVARS_*p+v] += ( (term[v]*(1.0/param->
grav_field[p]))
72 * (SourceI[_MODEL_NVARS_*p2+v]-SourceI[_MODEL_NVARS_*p1+v])*dx_inverse );
101 int ghosts = solver->
ghosts;
103 int ndims = solver->
ndims;
104 int index[ndims], bounds[ndims], offset[ndims];
108 int i;
for (i=0; i<ndims; i++) bounds[i] += 2*ghosts;
#define _ArraySetValue_(x, size, value)
#define _Euler1DGetFlowVar_(u, rho, v, e, P, p)
#define _ArrayIncrementIndex_(N, imax, i, done)
MPI related function definitions.
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
static int Euler1DSourceFunction(double *, double *, double *, void *, void *, double)
#define _ArrayIndex1DWO_(N, imax, i, offset, ghost, index)
#define _ArrayCopy1D_(x, y, size)
int(* InterpolateInterfacesHyp)(double *, double *, double *, double *, int, int, void *, void *, int)
Contains structure definition for hypar.
int Euler1DSource(double *, double *, void *, void *, double)
Some basic definitions and macros.
Contains macros and function definitions for common array operations.
1D Euler Equations (inviscid, compressible flows)
Structure of MPI-related variables.
int(* SourceUpwind)(double *, double *, double *, double *, int, void *, double)
Structure containing all solver-specific variables and functions.
Structure containing variables and parameters specific to the 1D Euler equations. This structure cont...