58 void Init (
double *us,
double x1,
double x2,
double x3)
63 double r, rc, theta, phi;
64 double dc, pc, de,
pe;
69 r = sqrt(x1*x1 + x2*x2);
71 r = sqrt(x1*x1 + x2*x2 + x3*x3);
84 }
else if (r > rc && r < 1.0){
85 us[
RHO] = de*(r - rc)/(1.0 - rc) + dc*(r - 1.0)/(rc - 1.0);
86 us[PRS] = pe*(r - rc)/(1.0 - rc) + pc*(r - 1.0)/(rc - 1.0);
99 #if GEOMETRY == CARTESIAN
107 #elif GEOMETRY == CYLINDRICAL
void UserDefBoundary(const Data *d, RBox *box, int side, Grid *grid)
double g_smallPressure
Small value for pressure fix.
double g_inputParam[32]
Array containing the user-defined parameters.
void Analysis(const Data *d, Grid *grid)
void Init(double *v, double x1, double x2, double x3)