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]) ) );
#define _NavierStokes2DEigenvalues_(u, D, gamma, dir)
int NavierStokes2DStiffJacobian(double *, double *, void *, int, int, int)
#define MatMult4(N, A, X, Y)
#define _NavierStokes2DRightEigenvectors_(u, R, ga, dir)
2D Navier Stokes equations (compressible flows)
Contains function definitions for common mathematical functions.
#define _NavierStokes2DLeftEigenvectors_(u, L, ga, dir)
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.
int NavierStokes2DJacobian(double *, double *, void *, int, int, int)
Contains macros and function definitions for common matrix multiplication.