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 = 3; 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]) );
Structure containing variables and parameters specific to the 1D Shallow Water equations. This structure contains the physical parameters, variables, and function pointers specific to the 1D ShallowWater equations.
1D Shallow Water Equations
Contains function definitions for common mathematical functions.
#define _ShallowWater1DRightEigenvectors_(u, R, p, dir)
int ShallowWater1DJacobian(double *Jac, double *u, void *p, int dir, int nvars, int upw)
#define _ShallowWater1DEigenvalues_(u, D, p, dir)
#define MatMult2(N, A, X, Y)
Contains macros and function definitions for common matrix multiplication.
#define _ShallowWater1DLeftEigenvectors_(u, L, p, dir)