Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
reichardt_cpu Module Reference

Implements the CPU kernel for the reichardt_t type.

Functions/Subroutines

subroutine, public reichardt_compute_cpu (u, v, w, n_x, n_y, n_z, nu, rho_w, h, tau_x, tau_y, tau_z, n_nodes, kappa, c, b1, b2, tstep)
 Compute the wall shear stress on cpu using Reichardt's law.
pure real(kind=rp) function reichardt_up (yp, kappa, c, b1, b2)
 Evaluate Reichardt's law of the wall, u+ as a function of y+.
pure real(kind=rp) function reichardt_dup (yp, kappa, c, b1, b2)
 Evaluate the derivative du+/dy+ of Reichardt's law of the wall.
real(kind=rp) function solve_cpu (u, y, guess, nu, kappa, c, b1, b2)
 Newton solver for the algebraic equation defined by the law on cpu. Solves f(utau) = utau * u+(y utau / nu) - u = 0.

Function/Subroutine Documentation

◆ reichardt_compute_cpu()

subroutine, public reichardt_cpu::reichardt_compute_cpu ( real(kind=rp), dimension(n_nodes), intent(in) u,
real(kind=rp), dimension(n_nodes), intent(in) v,
real(kind=rp), dimension(n_nodes), intent(in) w,
real(kind=rp), dimension(n_nodes), intent(in) n_x,
real(kind=rp), dimension(n_nodes), intent(in) n_y,
real(kind=rp), dimension(n_nodes), intent(in) n_z,
real(kind=rp), dimension(n_nodes), intent(in) nu,
real(kind=rp), dimension(n_nodes), intent(in) rho_w,
real(kind=rp), dimension(n_nodes), intent(in) h,
real(kind=rp), dimension(n_nodes), intent(inout) tau_x,
real(kind=rp), dimension(n_nodes), intent(inout) tau_y,
real(kind=rp), dimension(n_nodes), intent(inout) tau_z,
integer, intent(in) n_nodes,
real(kind=rp), intent(in) kappa,
real(kind=rp), intent(in) c,
real(kind=rp), intent(in) b1,
real(kind=rp), intent(in) b2,
integer, intent(in) tstep )
Parameters
uThe x component of the sampled velocity.
vThe y component of the sampled velocity.
wThe z component of the sampled velocity.
n_xThe x component of the wall normal.
n_yThe y component of the wall normal.
n_zThe z component of the wall normal.
nuThe kinematic viscosity at the wall.
rho_wThe density at the wall.
hThe wall-normal distance of the sampling point.
tau_xThe x component of the wall shear stress.
tau_yThe y component of the wall shear stress.
tau_zThe z component of the wall shear stress.
n_nodesThe number of wall nodes.
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, in wall units.
tstepThe current time-step.

Definition at line 64 of file reichardt_cpu.f90.

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

◆ reichardt_dup()

pure real(kind=rp) function reichardt_cpu::reichardt_dup ( real(kind=rp), intent(in) yp,
real(kind=rp), intent(in) kappa,
real(kind=rp), intent(in) c,
real(kind=rp), intent(in) b1,
real(kind=rp), intent(in) b2 )
private
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 140 of file reichardt_cpu.f90.

Here is the caller graph for this function:

◆ reichardt_up()

pure real(kind=rp) function reichardt_cpu::reichardt_up ( real(kind=rp), intent(in) yp,
real(kind=rp), intent(in) kappa,
real(kind=rp), intent(in) c,
real(kind=rp), intent(in) b1,
real(kind=rp), intent(in) b2 )
private
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 126 of file reichardt_cpu.f90.

Here is the caller graph for this function:

◆ solve_cpu()

real(kind=rp) function reichardt_cpu::solve_cpu ( real(kind=rp), intent(in) u,
real(kind=rp), intent(in) y,
real(kind=rp), intent(in) guess,
real(kind=rp), intent(in) nu,
real(kind=rp), intent(in) kappa,
real(kind=rp), intent(in) c,
real(kind=rp), intent(in) b1,
real(kind=rp), intent(in) b2 )
private
Parameters
uThe velocity value.
yThe wall-normal distance.
guessInitial guess.
nuThe molecular kinematic viscosity.
kappaThe von Karman constant.
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 158 of file reichardt_cpu.f90.

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