42 static double Profile(
double r,
int nv);
46 void Init (
double *v,
double x1,
double x2,
double x3)
84 #if GEOMETRY == SPHERICAL
93 d->
Vc[nv][
k][
j][
i] = vout[nv] + (vjet[nv] - vout[nv])*
Profile(r,nv);
98 #if GEOMETRY == CYLINDRICAL || GEOMETRY == CARTESIAN
106 for (nv = 0; nv <
NVAR; nv++)
107 d->
Vc[nv][k][j][i] = vout[nv] + (vjet[nv] - vout[nv])*
Profile(r,nv);
121 #if GEOMETRY == CYLINDRICAL || GEOMETRY == CARTESIAN
124 #elif GEOMETRY == SPHERICAL
141 if (nv ==
RHO) r0 = 1.1;
143 #if GEOMETRY == SPHERICAL
146 return 1.0/cosh(pow(r/r0,xn));
#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.
double g_smallPressure
Small value for pressure fix.
#define X2_BEG_LOOP(k, j, i)
double g_inputParam[32]
Array containing the user-defined parameters.
#define X1_BEG_LOOP(k, j, i)
void GetJetValues(double, double *)
#define X2_BEG
Boundary region at X2 beg.
long int JBEG
Lower grid index of the computational domain in the the X2 direction for the local processor...
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)
static double Profile(double r, int nv)