86 void Init (
double *v,
double x1,
double x2,
double x3)
91 double x=x1, y=x2, z=x3;
96 if (y < 0.0) v[
RHO] = 1.0;
106 #if USE_RANDOM_PERTURBATION == YES
108 v[
VX2] = 1.e-2*rnd*exp(-y*y*200.0);
111 v[
VX2] = -1.e-2*(1.0 + cos(2.0*
CONST_PI*x))*exp(-y*y*200.0);
112 #elif DIMENSIONS == 3
113 rnd = sqrt(x*x + z*z);
114 v[
VX2] = -1.e-2*exp(-rnd*rnd/(0.2*0.2))/cosh(y*y/(0.1*0.1));
151 #if (BODY_FORCE & VECTOR)
153 void BodyForceVector(
double *v,
double *g,
double x1,
double x2,
double x3)
169 #if (BODY_FORCE & POTENTIAL)
void UserDefBoundary(const Data *d, RBox *box, int side, Grid *grid)
double RandomNumber(double rmin, double rmax)
double g_inputParam[32]
Array containing the user-defined parameters.
double g_domBeg[3]
Lower limits of the computational domain.
double BodyForcePotential(double x, double y, double z)
double g_domEnd[3]
Upper limits of the computational domain.
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)