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;
int * UnsteadyTemperatureSize
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.
3D Navier Stokes equations (compressible flows)
#define _ArraySubtract1D_(x, a, b, size)
#define _ArrayAdd1D_(x, a, b, size)
double * UnsteadyTimeLevels
#define _ArrayIndex1D_(N, imax, i, ghost, index)
#define _ArrayIndex1DWO_(N, imax, i, offset, ghost, index)
static const int _NavierStokes3D_stride_
#define _ArraySetValue_(x, size, value)
#define _ArrayIncrementIndex_(N, imax, i, done)
int BCThermalNoslipWallU(void *b, void *m, int ndims, int nvars, int *size, int ghosts, double *phi, double waqt)
1D Euler Equations (inviscid, compressible flows)
double * UnsteadyTemperatureData
#define _ArrayCopy1D_(x, y, size)
Contains macros and function definitions for common array operations.
#define _NavierStokes3DGetFlowVar_(u, stride, rho, vx, vy, vz, e, P, gamma)