42 void Init (
double *us,
double x1,
double x2,
double x3)
48 static int first_call=1;
49 double r, r0, mu,
T, prs_ref, prof;
60 r = sqrt(EXPAND(x1*x1, + x2*x2, + x3*x3));
62 prof = 1.0/cosh(10.0*pow(r/r0,10));
76 us[
BX2] /= sqrt(prs_ref*4.0*CONST_PI);
77 us[
BX3] /= sqrt(prs_ref*4.0*CONST_PI);
102 static int first_call = 1;
104 static double vin[256];
108 Init(vin, 0.0, -10.0, 0.0);
113 d->
Vc[nv][
k][
j][
i] = vin[nv];
void UserDefBoundary(const Data *d, RBox *box, int side, Grid *grid)
#define UNIT_DENSITY
Unit density in gr/cm^3.
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 UNIT_VELOCITY
Unit velocity in cm/sec.
double g_inputParam[32]
Array containing the user-defined parameters.
#define X2_BEG
Boundary region at X2 beg.
void Analysis(const Data *d, Grid *grid)
void Init(double *v, double x1, double x2, double x3)