calcVelSW_unitSW_velTau_tVisc Subroutine

private subroutine calcVelSW_unitSW_velTau_tVisc(velSW, unitSW, turbwallFunc, nElems, elemPos, neighBufferPre, viscKine, turbulence, stencil, iLevel, quantities)

Calculation stream-wise velocity compononent from wall function and friction velocity, stream-wise unit vector and turbulent viscosity with mixing length formulation.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(out) :: velSW(:)

Stream-wise velocity component from wall function

real(kind=rk), intent(out) :: unitSW(:,:)

Stream-wise unit vector

type(mus_turb_wallFunc_type), intent(inout) :: turbwallFunc

Turbulent wall model type contains viscosity, velTau, distToBnd and function pointers to compute velTau and velSW

integer, intent(in) :: nElems

Number of elements in current boundary

integer, intent(in) :: elemPos(:)

Current element position in state array. (Used to access viscosity)

real(kind=rk), intent(in) :: neighBufferPre(:,:)

Pre-collision from 1st and 2nd fluid neighbor

type(mus_viscosity_type) :: viscKine

Kinematic viscosity

type(mus_turbulence_type), intent(in) :: turbulence

turbulence model type

type(tem_stencilHeader_type), intent(in) :: stencil

Fluid stencil

integer, intent(in) :: iLevel

Current level

type(mus_scheme_derived_quantities_type), intent(in) :: quantities

Class that contains pointers to the proper derived quantities functions