40 int dim = boundary->
dim;
41 int face = boundary->
face;
47 gamma = boundary->
gamma;
48 double inv_gamma_m1 = 1.0/(gamma-1.0);
53 int n_time_levels = temperature_field_size[dim];
57 int it = n_time_levels - 1;
58 while ((time_levels[it] > waqt) && (it > 0)) it--;
60 int bounds[ndims], indexb[ndims], indexi[ndims];
70 if (face == 1) indexi[dim] = ghosts-1-indexb[dim];
71 else if (face == -1) indexi[dim] = size[dim]-indexb[dim]-1;
80 double temperature_b = temperature_data[q];
83 double rho, uvel, vvel, wvel, energy, pressure;
86 double rho_gpt, uvel_gpt, vvel_gpt, wvel_gpt, energy_gpt, pressure_gpt;
91 pressure_gpt = rho_gpt * temperature_b;
92 energy_gpt = inv_gamma_m1*pressure_gpt
94 * (uvel_gpt*uvel_gpt + vvel_gpt*vvel_gpt + wvel_gpt*wvel_gpt);
96 phi[nvars*p1+0] = rho_gpt;
97 phi[nvars*p1+1] = rho_gpt * uvel_gpt;
98 phi[nvars*p1+2] = rho_gpt * vvel_gpt;
99 phi[nvars*p1+3] = rho_gpt * wvel_gpt;
100 phi[nvars*p1+4] = energy_gpt;
#define _NavierStokes3DGetFlowVar_(u, stride, rho, vx, vy, vz, e, P, gamma)
#define _ArraySetValue_(x, size, value)
double * UnsteadyTemperatureData
3D Navier Stokes equations (compressible flows)
int BCThermalNoslipWallU(void *, void *, int, int, int *, int, double *, double)
#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)
int * UnsteadyTemperatureSize
Structure containing the variables and function pointers defining a boundary.
double * UnsteadyTimeLevels
#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.
1D Euler Equations (inviscid, compressible flows)
#define _ArrayAdd1D_(x, a, b, size)
static const int _NavierStokes3D_stride_