51 void Init (
double *us,
double x1,
double x2,
double x3)
63 #if GEOMETRY == CARTESIAN
67 #elif GEOMETRY == CYLINDRICAL
70 #elif GEOMETRY == SPHERICAL
75 R = sqrt(x1*x1 + x2*x2);
76 us[
TRC] = (R <= 1.0 ? 1.0:0.0);
100 double Vwind = 1.0, rho, vr;
110 #if GEOMETRY == CARTESIAN
111 r = sqrt(x1[i]*x1[i] + x2[j]*x2[j] + x3[k]*x3[k]);
113 vr = tanh(r/r0/0.1)*Vwind;
114 rho = Vwind*r0*r0/(vr*r*r);
122 #elif GEOMETRY == CYLINDRICAL
123 r = sqrt(x1[i]*x1[i] + x2[j]*x2[j]);
125 vr = tanh(r/r0/0.1)*Vwind;
126 rho = Vwind*r0*r0/(vr*r*r);
152 #if GEOMETRY == CYLINDRICAL
170 #if GEOMETRY == CARTESIAN
#define FLAG_INTERNAL_BOUNDARY
Zone belongs to an internal boundary region and should be excluded from being updated in time...
#define X3_BEG
Boundary region at X3 beg.
#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 X3_END_LOOP(k, j, i)
double g_smallPressure
Small value for pressure fix.
#define X1_END
Boundary region at X1 end.
#define X2_BEG_LOOP(k, j, i)
unsigned char *** flag
Pointer to a 3D array setting useful integration flags that are retrieved during integration.
#define X2_END_LOOP(k, j, i)
#define TOT_LOOP(k, j, i)
#define X2_END
Boundary region at X2 end.
double g_inputParam[32]
Array containing the user-defined parameters.
double * xgc
Cell volumetric centroid (!= x when geometry != CARTESIAN).
#define X3_END
Boundary region at X3 end.
#define X2_BEG
Boundary region at X2 beg.
#define X3_BEG_LOOP(k, j, i)
void Analysis(const Data *d, Grid *grid)
void Init(double *v, double x1, double x2, double x3)