26 int ghosts = solver->
ghosts;
33 if (physics->
mu <= 0)
return(0);
36 double mu = physics->
mu;
39 double *Q, *QDeriv, *FViscous, *FDeriv;
40 Q = (
double*) calloc (size,
sizeof(
double));
41 QDeriv = (
double*) calloc (size,
sizeof(
double));
42 FViscous = (
double*) calloc (size,
sizeof(
double));
43 FDeriv = (
double*) calloc (size,
sizeof(
double));
54 double drho,uvel,vvel,dT,rho0,T0,P0,EP,ycoord;
77 double rho, ux, vx, tx;
96 for (v=0; v<
_MODEL_NVARS_; v++) (par+p)[v] += (dxinv * (FDeriv+p)[v] );
109 double rho, uy, vy, ty;
110 rho = Q [_MODEL_NVARS_*p+0];
111 uy = QDeriv[_MODEL_NVARS_*p+1] / dyinv;
112 vy = QDeriv[_MODEL_NVARS_*p+2] / dyinv;
113 ty = QDeriv[_MODEL_NVARS_*p+3] / dyinv;
115 FViscous[_MODEL_NVARS_*p+0] = 0.0;
116 FViscous[_MODEL_NVARS_*p+1] = mu * rho * uy;
117 FViscous[_MODEL_NVARS_*p+2] = mu * rho * vy;
118 FViscous[_MODEL_NVARS_*p+3] = mu * rho * ty;
128 for (v=0; v<
_MODEL_NVARS_; v++) (par+p)[v] += (dyinv * (FDeriv+p)[v] );
#define _ArraySetValue_(x, size, value)
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 _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ArrayIndex1DWO_(N, imax, i, offset, ghost, index)
int(* FirstDerivativePar)(double *, double *, int, int, void *, void *)
#define _ArrayCopy1D_(x, y, size)
int MPIExchangeBoundariesnD(int, int, int *, int, void *, double *)
Structure of MPI-related variables.
Structure containing all solver-specific variables and functions.