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;
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;
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);
Contains function definitions for common mathematical functions.
#define _Numa3DComputeLinearizedSpeedofSound_(gamma, R, T0, rho0, EP, c)
#define _Numa3DGetFlowVars_(u, drho, uvel, vvel, wvel, dT, rho0)
Some basic definitions and macros.
int Numa3DRusanovLinearFlux(double *fI, double *fL, double *fR, double *uL, double *uR, double *u, int dir, void *s, double t)
#define _ArrayIndex1D3_(N, imax, i, ghost, index)
Structure containing all solver-specific variables and functions.
int Numa3DRusanovFlux(double *fI, double *fL, double *fR, double *uL, double *uR, double *u, int dir, void *s, double t)
Contains structure definition for hypar.
#define _ArrayCopy1D3_(x, y, size)
#define _Numa3DComputeSpeedofSound_(gamma, R, T0, dT, rho0, drho, EP, c)
void(* StandardAtmosphere)(void *, double, double *, double *, double *, double *)
#define _ArrayIncrementIndex_(N, imax, i, done)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
Contains macros and function definitions for common array operations.