9 int Numa2DRusanovFlux(
double *fI,
double *fL,
double *fR,
double *uL,
double *uR,
double *u,
int dir,
void *s,
double t)
16 int ghosts = solver->
ghosts;
19 _ArrayCopy1D2_(dim,bounds_outer,_MODEL_NDIMS_); bounds_outer[dir] = 1;
20 _ArrayCopy1D2_(dim,bounds_inter,_MODEL_NDIMS_); bounds_inter[dir] += 1;
22 done = 0;
int index_outer[2] = {0,0}, index_inter[2];
25 for (index_inter[dir] = 0; index_inter[dir] < bounds_inter[dir]; index_inter[dir]++) {
28 double ycoordL, ycoordR;
49 double alphaL = c +
absolute(vel[dir]);
55 double alphaR = c +
absolute(vel[dir]);
57 double alpha =
max(alphaL,alphaR);
76 int ghosts = solver->
ghosts;
79 _ArrayCopy1D2_(dim,bounds_outer,_MODEL_NDIMS_); bounds_outer[dir] = 1;
80 _ArrayCopy1D2_(dim,bounds_inter,_MODEL_NDIMS_); bounds_inter[dir] += 1;
82 done = 0;
int index_outer[2] = {0,0}, index_inter[2];
85 for (index_inter[dir] = 0; index_inter[dir] < bounds_inter[dir]; index_inter[dir]++) {
88 double ycoordL, ycoordR;
117 double alpha =
max(alphaL,alphaR);
void(* StandardAtmosphere)(void *, double, double *, double *, double *, double *)
#define _Numa2DGetFlowVars_(u, drho, uvel, vvel, dT, rho0)
#define _ArrayIncrementIndex_(N, imax, i, done)
#define _GetCoordinate_(dir, i, dim, ghosts, x, coord)
#define _ArrayIndex1D2_(N, imax, i, ghost, index)
#define _ArrayCopy1D2_(x, y, size)
Contains function definitions for common mathematical functions.
int Numa2DRusanovLinearFlux(double *, double *, double *, double *, double *, double *, int, void *, double)
int Numa2DRusanovFlux(double *, double *, double *, double *, double *, double *, int, void *, double)
Contains structure definition for hypar.
#define _Numa2DComputeLinearizedSpeedofSound_(gamma, R, T0, rho0, EP, c)
Some basic definitions and macros.
Contains macros and function definitions for common array operations.
#define _Numa2DComputeSpeedofSound_(gamma, R, T0, dT, rho0, drho, EP, c)
Structure containing all solver-specific variables and functions.