9 int Numa3DRusanovFlux(
double *fI,
double *fL,
double *fR,
double *uL,
double *uR,
double *u,
int dir,
void *s,
double t)
16 int ghosts = solver->
ghosts;
19 _ArrayCopy1D3_(dim,bounds_outer,_MODEL_NDIMS_); bounds_outer[dir] = 1;
20 _ArrayCopy1D3_(dim,bounds_inter,_MODEL_NDIMS_); bounds_inter[dir] += 1;
22 done = 0;
int index_outer[3] = {0,0,0}, index_inter[3];
25 for (index_inter[dir] = 0; index_inter[dir] < bounds_inter[dir]; index_inter[dir]++) {
28 double zcoordL, zcoordR;
50 double alphaL = c +
absolute(vel[dir]);
56 double alphaR = c +
absolute(vel[dir]);
58 double alpha =
max(alphaL,alphaR);
78 int ghosts = solver->
ghosts;
81 _ArrayCopy1D3_(dim,bounds_outer,_MODEL_NDIMS_); bounds_outer[dir] = 1;
82 _ArrayCopy1D3_(dim,bounds_inter,_MODEL_NDIMS_); bounds_inter[dir] += 1;
84 done = 0;
int index_outer[3] = {0,0,0}, index_inter[3];
87 for (index_inter[dir] = 0; index_inter[dir] < bounds_inter[dir]; index_inter[dir]++) {
90 double zcoordL, zcoordR;
112 double alphaL = c +
absolute(vel[dir]);
118 double alphaR = c +
absolute(vel[dir]);
120 double alpha =
max(alphaL,alphaR);
#define _ArrayIndex1D3_(N, imax, i, ghost, index)
#define _ArrayIncrementIndex_(N, imax, i, done)
int Numa3DRusanovLinearFlux(double *, double *, double *, double *, double *, double *, int, void *, double)
#define _ArrayCopy1D3_(x, y, size)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
int Numa3DRusanovFlux(double *, double *, double *, double *, double *, double *, int, void *, double)
Contains function definitions for common mathematical functions.
#define _Numa3DComputeSpeedofSound_(gamma, R, T0, dT, rho0, drho, EP, c)
void(* StandardAtmosphere)(void *, double, double *, double *, double *, double *)
Contains structure definition for hypar.
Some basic definitions and macros.
Contains macros and function definitions for common array operations.
#define _Numa3DComputeLinearizedSpeedofSound_(gamma, R, T0, rho0, EP, c)
#define _Numa3DGetFlowVars_(u, drho, uvel, vvel, wvel, dT, rho0)
Structure containing all solver-specific variables and functions.