|
Neko 1.99.11
A portable framework for high-order spectral element flow simulations
|
#include <cfloat>#include <cmath>

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) |
| __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.
| u_d | The sampled x-velocity. |
| v_d | The sampled y-velocity. |
| w_d | The sampled z-velocity. |
| n_x_d | The x-component of the wall normals. |
| n_y_d | The y-component of the wall normals. |
| n_z_d | The z-component of the wall normals. |
| nu_d | The kinematic viscosity at wall points. |
| rho_w_d | The density at wall points. |
| h_d | The wall-model sampling distances. |
| tau_x_d | The x-component of the wall shear stress. |
| tau_y_d | The y-component of the wall shear stress. |
| tau_z_d | The z-component of the wall shear stress. |
| n_nodes | The number of wall points. |
| kappa | The von Karman coefficient. |
| C | The amplitude of the exponential correction. |
| B1 | The damping length scale, in wall units. |
| B2 | The decay length scale of the second exponential term. |
| tstep | The current time-step. |
Definition at line 139 of file reichardt_kernel.h.


| __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.
| yp | The wall-normal distance in wall units. |
| kappa | The von Karman coefficient. |
| C | The amplitude of the exponential correction. |
| B1 | The damping length scale, in wall units. |
| B2 | The decay length scale of the second exponential term. |
Definition at line 67 of file reichardt_kernel.h.

| __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.
| u | The tangential velocity magnitude. |
| y | The wall-normal distance. |
| guess | Initial guess. |
| nu | The kinematic viscosity. |
| kappa | The von Karman coefficient. |
| C | The amplitude of the exponential correction. |
| B1 | The damping length scale, in wall units. |
| B2 | The decay length scale of the second exponential term. |
| tol | The relative convergence tolerance. |
Definition at line 88 of file reichardt_kernel.h.


| __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+.
| yp | The wall-normal distance in wall units. |
| kappa | The von Karman coefficient. |
| C | The amplitude of the exponential correction. |
| B1 | The damping length scale, in wall units. |
| B2 | The decay length scale of the second exponential term. |
Definition at line 50 of file reichardt_kernel.h.
