Neko  0.8.99
A portable framework for high-order spectral element flow simulations
spalding Module Reference

Implements spalding_t.

Data Types

type  spalding_t
 Wall model based on Spalding's law of the wall. Reference: http://dx.doi.org/10.1115/1.3641728. More...
 

Functions/Subroutines

subroutine spalding_init (this, coef, msk, facet, nu, h_index, json)
 Constructor from JSON. More...
 
subroutine spalding_init_from_components (this, coef, msk, facet, nu, h_index, kappa, B)
 Constructor from components. More...
 
subroutine spalding_free (this)
 Destructor for the spalding_t (base) class. More...
 
subroutine spalding_compute (this, t, tstep)
 Compute the wall shear stress. More...
 
real(kind=rp) function solve (this, u, y, guess)
 Newton solver for the algebraic equation defined by the law. More...
 

Function/Subroutine Documentation

◆ solve()

real(kind=rp) function spalding::solve ( class(spalding_t), intent(inout)  this,
real(kind=rp), intent(in)  u,
real(kind=rp), intent(in)  y,
real(kind=rp), intent(in)  guess 
)
private
Parameters
uThe velocity value.
yThe wall-normal distance.
guessInitial guess.

Definition at line 188 of file spalding.f90.

◆ spalding_compute()

subroutine spalding::spalding_compute ( class(spalding_t), intent(inout)  this,
real(kind=rp), intent(in)  t,
integer, intent(in)  tstep 
)
private
Parameters
tThe time value.
tstepThe current time-step.

Definition at line 137 of file spalding.f90.

◆ spalding_free()

subroutine spalding::spalding_free ( class(spalding_t), intent(inout)  this)
private

Definition at line 127 of file spalding.f90.

◆ spalding_init()

subroutine spalding::spalding_init ( class(spalding_t), intent(inout)  this,
type(coef_t), intent(in)  coef,
integer, dimension(:), intent(in)  msk,
integer, dimension(:), intent(in)  facet,
real(kind=rp), intent(in)  nu,
integer, intent(in)  h_index,
type(json_file), intent(inout)  json 
)
Parameters
coefSEM coefficients.
mskThe boundary mask.
facetThe boundary facets.
nuThe molecular kinematic viscosity.
h_indexThe off-wall index of the sampling cell.
jsonA dictionary with parameters.

Definition at line 80 of file spalding.f90.

◆ spalding_init_from_components()

subroutine spalding::spalding_init_from_components ( class(spalding_t), intent(inout)  this,
type(coef_t), intent(in)  coef,
integer, dimension(:), intent(in)  msk,
integer, dimension(:), intent(in)  facet,
real(kind=rp), intent(in)  nu,
integer, intent(in)  h_index,
real(kind=rp), intent(in)  kappa,
real(kind=rp), intent(in)  B 
)
private
Parameters
coefSEM coefficients.
mskThe boundary mask.
facetThe boundary facets.
nuThe molecular kinematic viscosity.
h_indexThe off-wall index of the sampling cell.
kappaThe von Karman coefficient.
BThe log-law intercept.

Definition at line 104 of file spalding.f90.