42 void Init (
double *v,
double x1,
double x2,
double x3)
49 double eta = rmin/rmax;
50 double lambda = (rmax-rmin);
53 double SPER = sin(2.*
CONST_PI*x2/lambda);
54 double CPER = cos(2.*
CONST_PI*x2/lambda);
57 v[PRS] = 10.+ 0.5*(A*A*x1*x1 +4.*A*B*log(x1) - B*B/x1/x1)
58 + 0.01*0.5*(A*A*x1*x1 +4.*A*B*log(x1) - B*B/x1/x1)*CPER;
59 v[
VX1] = 0.01*(A*x1 + B/x1)*CPER;
60 v[
VX2] = 0.01*(A*x1 + B/x1)*SPER;
61 v[
VX3] = A*x1 + B/x1 + 0.01*(A*x1 + B/x1)*CPER;
#define X1_BEG
Boundary region at X1 beg.
void UserDefBoundary(const Data *d, RBox *box, int side, Grid *grid)
double **** Vc
The main four-index data array used for cell-centered primitive variables.
#define X1_END
Boundary region at X1 end.
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 g_domBeg[3]
Lower limits of the computational domain.
#define X1_END_LOOP(k, j, i)
#define X1_BEG_LOOP(k, j, i)
double g_domEnd[3]
Upper limits of the computational domain.
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)