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;
#define _ArraySetValue_(x, size, value)
int BCTurbulentSupersonicInflowU(void *, void *, int, int, int *, int, double *, double)
double * UnsteadyDirichletData
#define _ArrayIncrementIndex_(N, imax, i, done)
Containts the structures and definitions for boundary condition implementation.
MPI related function definitions.
#define _ArraySubtract1D_(x, a, b, size)
#define _ArrayIndex1D_(N, imax, i, ghost, index)
Structure containing the variables and function pointers defining a boundary.
int * UnsteadyDirichletSize
#define _ArrayIndex1DWO_(N, imax, i, offset, ghost, index)
#define _ArrayCopy1D_(x, y, size)
Some basic definitions and macros.
Contains macros and function definitions for common array operations.