Neko 1.99.10
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
compressible_ops_kernel.h File Reference
Include dependency graph for compressible_ops_kernel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX(a, b)

Functions

template<typename T>
__global__ void compute_max_wave_speed_kernel (T *__restrict__ max_wave_speed, const T *__restrict__ u, const T *__restrict__ v, const T *__restrict__ w, const T gamma, const T *__restrict__ p, const T *__restrict__ rho, const int n)
template<typename T>
__global__ void compute_entropy_kernel (T *__restrict__ S, const T *__restrict__ p, const T *__restrict__ rho, const T gamma, const int n)
template<typename T>
__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)
template<typename T>
__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)
template<typename T>
__global__ void update_e_kernel (T *__restrict__ E, T *__restrict__ p, const T *__restrict__ ruvw, const T gamma, const int n)
template<typename T>
__global__ void update_temperature_kernel (T *__restrict__ T_field, const T *__restrict__ p, const T *__restrict__ rho, const T gamma, const int n)
template<typename T>
__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)
template<typename T>
__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)
template<typename T>
__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)

Macro Definition Documentation

◆ MAX

#define MAX ( a,
b )
Value:
(((a)>(b))?(a):(b))

Definition at line 144 of file compressible_ops_kernel.h.

Function Documentation

◆ compute_entropy_kernel()

template<typename T>
__global__ void compute_entropy_kernel ( T *__restrict__ S,
const T *__restrict__ p,
const T *__restrict__ rho,
const T gamma,
const int n )

Device kernel for compute_entropy

Definition at line 68 of file compressible_ops_kernel.h.

◆ compute_max_wave_speed_kernel()

template<typename T>
__global__ void compute_max_wave_speed_kernel ( T *__restrict__ max_wave_speed,
const T *__restrict__ u,
const T *__restrict__ v,
const T *__restrict__ w,
const T gamma,
const T *__restrict__ p,
const T *__restrict__ rho,
const int n )

Device kernel for compute_max_wave_speed

Definition at line 44 of file compressible_ops_kernel.h.

◆ ns_flux_finalize_kernel()

template<typename T>
__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 )

Device kernel for finalizing physical Navier-Stokes flux terms.

Definition at line 232 of file compressible_ops_kernel.h.

◆ ns_flux_prepare_kernel()

template<typename T>
__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 )

Device kernel for preparing physical Navier-Stokes flux terms.

Definition at line 189 of file compressible_ops_kernel.h.

◆ ns_flux_temperature_kernel()

template<typename T>
__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 )

Device kernel for preparing conductive energy flux terms.

Definition at line 268 of file compressible_ops_kernel.h.

◆ update_e_kernel()

template<typename T>
__global__ void update_e_kernel ( T *__restrict__ E,
T *__restrict__ p,
const T *__restrict__ ruvw,
const T gamma,
const int n )

Device kernel for update E

Definition at line 150 of file compressible_ops_kernel.h.

◆ update_mxyz_p_ruvw_kernel()

template<typename T>
__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 )

Device kernel for update m_x, m_y, m_z, ruvw

Definition at line 116 of file compressible_ops_kernel.h.

◆ update_temperature_kernel()

template<typename T>
__global__ void update_temperature_kernel ( T *__restrict__ T_field,
const T *__restrict__ p,
const T *__restrict__ rho,
const T gamma,
const int n )

Device kernel for update T = p / (rho * (gamma - 1))

Definition at line 171 of file compressible_ops_kernel.h.

◆ update_uvw_kernel()

template<typename T>
__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 )

Device kernel for update u,v,w

Definition at line 90 of file compressible_ops_kernel.h.