42 void Init (
double *v,
double x1,
double x2,
double x3)
51 v[
RHO] = 1.0 + 0.05*sin(x2)*cos(x2);
55 v[
VX1] = U*(1.0 - 1.0/(x1*x1))*cos(x2);
56 v[
VX2] = -U*(1.0 + 1.0/(x1*x1))*sin(x2);
74 double x, y, r, rnd, Mach;
138 void BodyForceVector(
double *v,
double *g,
double x1,
double x2,
double x3)
#define X1_BEG
Boundary region at X1 beg.
void UserDefBoundary(const Data *d, RBox *box, int side, Grid *grid)
int vpos
Location of the variable inside the cell.
#define BOX_LOOP(B, k, j, i)
double **** Vc
The main four-index data array used for cell-centered primitive variables.
#define X1_END
Boundary region at X1 end.
#define TOT_LOOP(k, j, i)
double g_inputParam[32]
Array containing the user-defined parameters.
long int IEND
Upper grid index of the computational domain in the the X1 direction for the local processor...
double BodyForcePotential(double x, double y, double z)
long int IBEG
Lower grid index of the computational domain in the the X1 direction for the local processor...
void Analysis(const Data *d, Grid *grid)
void Init(double *v, double x1, double x2, double x3)
void BodyForceVector(double *v, double *g, double x, double y, double z)