35 k = 0; D[k] =
absolute( (1-aupw)*D[k] + 0.5*aupw*(1+upw)*
max(0,D[k]) + 0.5*aupw*(1-upw)*
min(0,D[k]) );
36 k = 5; D[k] =
absolute( (1-aupw)*D[k] + 0.5*aupw*(1+upw)*
max(0,D[k]) + 0.5*aupw*(1-upw)*
min(0,D[k]) );
37 k = 10; D[k] =
absolute( (1-aupw)*D[k] + 0.5*aupw*(1+upw)*
max(0,D[k]) + 0.5*aupw*(1-upw)*
min(0,D[k]) );
38 k = 15; D[k] =
absolute( (1-aupw)*D[k] + 0.5*aupw*(1+upw)*
max(0,D[k]) + 0.5*aupw*(1-upw)*
min(0,D[k]) );
72 k = 0; D[k] =
absolute( (1-aupw)*D[k] + 0.5*aupw*(1+upw)*
max(0,D[k]) + 0.5*aupw*(1-upw)*
min(0,D[k]) );
73 k = 5; D[k] = ( dir ==
_YDIR_ ? 0.0 :
absolute( (1-aupw)*D[k] + 0.5*aupw*(1+upw)*
max(0,D[k]) + 0.5*aupw*(1-upw)*
min(0,D[k]) ) );
74 k = 10; D[k] = ( dir ==
_XDIR_ ? 0.0 :
absolute( (1-aupw)*D[k] + 0.5*aupw*(1+upw)*
max(0,D[k]) + 0.5*aupw*(1-upw)*
min(0,D[k]) ) );
Contains function definitions for common mathematical functions.
#define _NavierStokes2DLeftEigenvectors_(u, L, ga, dir)
#define _NavierStokes2DEigenvalues_(u, D, gamma, dir)
int NavierStokes2DStiffJacobian(double *Jac, double *u, void *p, int dir, int nvars, int upw)
#define _NavierStokes2DRightEigenvectors_(u, R, ga, dir)
2D Navier Stokes equations (compressible flows)
Structure containing variables and parameters specific to the 2D Navier Stokes equations. This structure contains the physical parameters, variables, and function pointers specific to the 2D Navier-Stokes equations.
#define MatMult4(N, A, X, Y)
Contains macros and function definitions for common matrix multiplication.
int NavierStokes2DJacobian(double *Jac, double *u, void *p, int dir, int nvars, int upw)