34 int dim = boundary->
dim;
43 gamma = boundary->
gamma;
44 double inv_gamma_m1 = 1.0/(gamma-1.0);
50 int N = inflow_size[dim];
51 double L = 2.0 * (4.0*atan(1.0));
52 int it = ((int) ((xt/L) * ((double)N))) % N;
54 int bounds[ndims], indexb[ndims];
62 double rho_gpt, uvel_gpt, vvel_gpt, wvel_gpt, energy_gpt, pressure_gpt;
70 double duvel , dvvel , dwvel ;
74 duvel = inflow_data[q*nvars+1];
75 dvvel = inflow_data[q*nvars+2];
76 dwvel = inflow_data[q*nvars+3];
84 energy_gpt = inv_gamma_m1*pressure_gpt
86 * (uvel_gpt*uvel_gpt + vvel_gpt*vvel_gpt + wvel_gpt*wvel_gpt);
87 phi[nvars*p1+0] = rho_gpt;
88 phi[nvars*p1+1] = rho_gpt * uvel_gpt;
89 phi[nvars*p1+2] = rho_gpt * vvel_gpt;
90 phi[nvars*p1+3] = rho_gpt * wvel_gpt;
91 phi[nvars*p1+4] = energy_gpt;
int * UnsteadyDirichletSize
Containts the structures and definitions for boundary condition implementation.
MPI related function definitions.
Some basic definitions and macros.
Structure containing the variables and function pointers defining a boundary.
int BCTurbulentSupersonicInflowU(void *b, void *m, int ndims, int nvars, int *size, int ghosts, double *phi, double waqt)
#define _ArraySubtract1D_(x, a, b, size)
double * UnsteadyDirichletData
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ArrayIndex1DWO_(N, imax, i, offset, ghost, index)
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
#define _ArrayCopy1D_(x, y, size)
Contains macros and function definitions for common array operations.