Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
reichardt_kernel.h File Reference
#include <cfloat>
#include <cmath>
Include dependency graph for reichardt_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 reichardt_up (const T yp, const T kappa, const T C, const T B1, const T B2)
template<typename T>
__device__ T reichardt_dup (const T yp, const T kappa, const T C, const T B1, const T B2)
template<typename T>
__device__ T reichardt_solve (const T u, const T y, const T guess, const T nu, const T kappa, const T C, const T B1, const T B2, const T tol)
template<typename T>
__global__ void reichardt_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 C, const T B1, const T B2, const int tstep)

Function Documentation

◆ reichardt_compute()

template<typename T>
__global__ void reichardt_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 C,
const T B1,
const T B2,
const int tstep )

CUDA kernel for Reichardt's wall model.

Parameters
u_dThe sampled x-velocity.
v_dThe sampled y-velocity.
w_dThe sampled z-velocity.
n_x_dThe x-component of the wall normals.
n_y_dThe y-component of the wall normals.
n_z_dThe z-component of the wall normals.
nu_dThe kinematic viscosity at wall points.
rho_w_dThe density at wall points.
h_dThe wall-model sampling distances.
tau_x_dThe x-component of the wall shear stress.
tau_y_dThe y-component of the wall shear stress.
tau_z_dThe z-component of the wall shear stress.
n_nodesThe number of wall points.
kappaThe von Karman coefficient.
CThe amplitude of the exponential correction.
B1The damping length scale, in wall units.
B2The decay length scale of the second exponential term.
tstepThe current time-step.

Definition at line 139 of file reichardt_kernel.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reichardt_dup()

template<typename T>
__device__ T reichardt_dup ( const T yp,
const T kappa,
const T C,
const T B1,
const T B2 )

Derivative du+/dy+ of Reichardt's law of the wall.

Parameters
ypThe wall-normal distance in wall units.
kappaThe von Karman coefficient.
CThe amplitude of the exponential correction.
B1The damping length scale, in wall units.
B2The decay length scale of the second exponential term.

Definition at line 67 of file reichardt_kernel.h.

Here is the caller graph for this function:

◆ reichardt_solve()

template<typename T>
__device__ T reichardt_solve ( const T u,
const T y,
const T guess,
const T nu,
const T kappa,
const T C,
const T B1,
const T B2,
const T tol )

Newton solver for f(utau) = utau * u+(y utau / nu) - u = 0.

Parameters
uThe tangential velocity magnitude.
yThe wall-normal distance.
guessInitial guess.
nuThe kinematic viscosity.
kappaThe von Karman coefficient.
CThe amplitude of the exponential correction.
B1The damping length scale, in wall units.
B2The decay length scale of the second exponential term.
tolThe relative convergence tolerance.

Definition at line 88 of file reichardt_kernel.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reichardt_up()

template<typename T>
__device__ T reichardt_up ( const T yp,
const T kappa,
const T C,
const T B1,
const T B2 )

Reichardt's law of the wall, u+ as a function of y+.

Parameters
ypThe wall-normal distance in wall units.
kappaThe von Karman coefficient.
CThe amplitude of the exponential correction.
B1The damping length scale, in wall units.
B2The decay length scale of the second exponential term.

Definition at line 50 of file reichardt_kernel.h.

Here is the caller graph for this function: