Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
spalding_kernel.h File Reference
#include <cmath>
#include <algorithm>
Include dependency graph for spalding_kernel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T>
__device__ T solve (const T u, const T y, const T guess, const T nu, const T kappa, const T B)
template<typename T>
__global__ void spalding_compute (const T *__restrict__ u_d, const T *__restrict__ v_d, const T *__restrict__ w_d, const T *__restrict__ n_x_d, const T *__restrict__ n_y_d, const T *__restrict__ n_z_d, const T *__restrict__ nu_d, const T *__restrict__ rho_w_d, const T *__restrict__ h_d, T *__restrict__ tau_x_d, T *__restrict__ tau_y_d, T *__restrict__ tau_z_d, const int n_nodes, const T kappa, const T B, const int tstep)

Function Documentation

◆ solve()

template<typename T>
__device__ T solve ( const T u,
const T y,
const T guess,
const T nu,
const T kappa,
const T B )

Device kernel for spalding_compute

Newton solver for the algebraic equation defined by the law on GPU.

Definition at line 115 of file spalding_kernel.h.

◆ spalding_compute()

template<typename T>
__global__ void spalding_compute ( const T *__restrict__ u_d,
const T *__restrict__ v_d,
const T *__restrict__ w_d,
const T *__restrict__ n_x_d,
const T *__restrict__ n_y_d,
const T *__restrict__ n_z_d,
const T *__restrict__ nu_d,
const T *__restrict__ rho_w_d,
const T *__restrict__ h_d,
T *__restrict__ tau_x_d,
T *__restrict__ tau_y_d,
T *__restrict__ tau_z_d,
const int n_nodes,
const T kappa,
const T B,
const int tstep )

CUDA kernel for Spalding's wall model.

Definition at line 50 of file spalding_kernel.h.

Here is the call graph for this function: