38#include <cuda_runtime.h>
47 void *m_x,
void *m_y,
void *m_z,
50 const dim3 nthrds(1024, 1, 1);
51 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
65 void *
u,
void *
v,
void *
w,
void *E,
66 void *rho,
real *gamma,
int *n) {
68 const dim3 nthrds(1024, 1, 1);
69 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
73 <<<nblcks, nthrds, 0, stream>>>((
real *) m_x, (
real *) m_y, (
real *) m_z,
76 (
real *) E, (
real *) rho, *gamma, *n);
83 real *gamma,
int *n) {
85 const dim3 nthrds(1024, 1, 1);
86 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
90 <<<nblcks, nthrds, 0, stream>>>((
real *) E, (
real *) p, (
real *) ruvw,
98 real *gamma,
int *n) {
100 const dim3 nthrds(1024, 1, 1);
101 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
105 <<<nblcks, nthrds, 0, stream>>>((
real *) T, (
real *) p, (
real *) rho,
113 void *dudx,
void *dudy,
void *dudz,
114 void *dvdx,
void *dvdy,
void *dvdz,
115 void *dwdx,
void *dwdy,
void *dwdz,
118 const dim3 nthrds(1024, 1, 1);
119 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
123 <<<nblcks, nthrds, 0, stream>>>((
real *) div_flux,
136 void *visc_E,
void *f_x,
void *f_y,
void *f_z,
137 void *opgrad_x,
void *opgrad_y,
void *opgrad_z,
138 void *
u,
void *
v,
void *
w,
void *B,
139 void *dissipation,
int *n) {
141 const dim3 nthrds(1024, 1, 1);
142 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
146 <<<nblcks, nthrds, 0, stream>>>((
real *) visc_m_x,
151 (
real *) opgrad_y, (
real *) opgrad_z,
153 (
real *) B, (
real *) dissipation, *n);
160 void *kappa,
real *gamma,
int *n) {
162 const dim3 nthrds(1024, 1, 1);
163 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
167 <<<nblcks, nthrds, 0, stream>>>((
real *) div_flux, (
real *)
h1,
169 (
real *) kappa, *gamma, *n);
void cuda_ns_flux_prepare(void *div_flux, void *dissipation, void *h1, void *dudx, void *dudy, void *dudz, void *dvdx, void *dvdy, void *dvdz, void *dwdx, void *dwdy, void *dwdz, void *mu, int *n)
void cuda_ns_flux_finalize(void *visc_m_x, void *visc_m_y, void *visc_m_z, void *visc_E, void *f_x, void *f_y, void *f_z, void *opgrad_x, void *opgrad_y, void *opgrad_z, void *u, void *v, void *w, void *B, void *dissipation, int *n)
void cuda_update_uvw(void *u, void *v, void *w, void *m_x, void *m_y, void *m_z, void *rho, int *n)
void cuda_update_temperature(void *T, void *p, void *rho, real *gamma, int *n)
void cuda_ns_flux_temperature(void *div_flux, void *h1, void *p, void *rho, void *kappa, real *gamma, int *n)
void cuda_update_mxyz_p_ruvw(void *m_x, void *m_y, void *m_z, void *p, void *ruvw, void *u, void *v, void *w, void *E, void *rho, real *gamma, int *n)
void cuda_update_e(void *E, void *p, void *ruvw, real *gamma, int *n)
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ w
__global__ void const T *__restrict__ u
__global__ void T *__restrict__ T *__restrict__ const T *__restrict__ const T *__restrict__ v
__global__ void const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ const T *__restrict__ h1
__global__ void ns_flux_temperature_kernel(T *__restrict__ div_flux, T *__restrict__ h1, const T *__restrict__ p, const T *__restrict__ rho, const T *__restrict__ kappa, const T gamma, const int n)
__global__ void update_mxyz_p_ruvw_kernel(T *__restrict__ m_x, T *__restrict__ m_y, T *__restrict__ m_z, T *__restrict__ p, T *__restrict__ ruvw, const T *__restrict__ u, const T *__restrict__ v, const T *__restrict__ w, const T *__restrict__ E, const T *__restrict__ rho, const T gamma, const int n)
__global__ void update_temperature_kernel(T *__restrict__ T_field, const T *__restrict__ p, const T *__restrict__ rho, const T gamma, const int n)
__global__ void update_e_kernel(T *__restrict__ E, T *__restrict__ p, const T *__restrict__ ruvw, const T gamma, const int n)
__global__ void update_uvw_kernel(T *__restrict__ u, T *__restrict__ v, T *__restrict__ w, const T *__restrict__ m_x, const T *__restrict__ m_y, const T *__restrict__ m_z, const T *__restrict__ rho, const int n)
__global__ void ns_flux_prepare_kernel(T *__restrict__ div_flux, T *__restrict__ dissipation, T *__restrict__ h1, const T *__restrict__ dudx, const T *__restrict__ dudy, const T *__restrict__ dudz, const T *__restrict__ dvdx, const T *__restrict__ dvdy, const T *__restrict__ dvdz, const T *__restrict__ dwdx, const T *__restrict__ dwdy, const T *__restrict__ dwdz, const T *__restrict__ mu, const int n)
__global__ void ns_flux_finalize_kernel(T *__restrict__ visc_m_x, T *__restrict__ visc_m_y, T *__restrict__ visc_m_z, T *__restrict__ visc_E, T *__restrict__ f_x, T *__restrict__ f_y, T *__restrict__ f_z, const T *__restrict__ opgrad_x, const T *__restrict__ opgrad_y, const T *__restrict__ opgrad_z, const T *__restrict__ u, const T *__restrict__ v, const T *__restrict__ w, const T *__restrict__ B, const T *__restrict__ dissipation, const int n)