38 int dim = boundary->
dim;
39 int face = boundary->
face;
41 double *xmin = boundary->
xmin;
42 double *xmax = boundary->
xmax;
46 int bounds[ndims], indexb[ndims];
51 int i = indexb[dim] + boundary->
is[dim];
52 double x, xstart, xend;
58 if (face > 0) sigma = (x - xstart) / (xend - xstart);
59 else sigma = (x - xend ) / (xstart - xend);
62 for (v=0; v<nvars; v++) source[nvars*p+v] -= (sigma * (u[nvars*p+v]-uref[v]));
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
int BCSpongeSource(void *, int, int, int, int *, double *, double *, double *)
Containts the structures and definitions for boundary condition implementation.
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
#define _ArraySubtract1D_(x, a, b, size)
int BCSpongeUDummy(void *, void *, int, int, int *, int, double *, double)
Structure containing the variables and function pointers defining a boundary.
#define _ArrayIndex1DWO_(N, imax, i, offset, ghost, index)
Some basic definitions and macros.
Contains macros and function definitions for common array operations.