calcVelSW_unitSW_velTau_tVisc_incomp Subroutine

private subroutine calcVelSW_unitSW_velTau_tVisc_incomp(velSW, unitSW, turbwallFunc, nElems, elemPos, normalInd, neighBufferPre, viscKine, turbulence, stencil, iLevel)

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

Arguments

TypeIntentOptionalAttributesName
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)

integer, intent(in) :: normalInd(:)

Normal index for evey boundary element

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


Called by

proc~~calcvelsw_unitsw_veltau_tvisc_incomp~~CalledByGraph proc~calcvelsw_unitsw_veltau_tvisc_incomp calcVelSW_unitSW_velTau_tVisc_incomp proc~turbulent_wall_noneq_expol_incomp turbulent_wall_noneq_expol_incomp proc~turbulent_wall_noneq_expol_incomp->proc~calcvelsw_unitsw_veltau_tvisc_incomp proc~turbulent_wall_noneq_expol_curved_incomp turbulent_wall_noneq_expol_curved_incomp proc~turbulent_wall_noneq_expol_curved_incomp->proc~calcvelsw_unitsw_veltau_tvisc_incomp proc~turbulent_wall_eq_curved_incomp turbulent_wall_eq_curved_incomp proc~turbulent_wall_eq_curved_incomp->proc~calcvelsw_unitsw_veltau_tvisc_incomp proc~turbulent_wall_eq_incomp turbulent_wall_eq_incomp proc~turbulent_wall_eq_incomp->proc~calcvelsw_unitsw_veltau_tvisc_incomp

Contents


Variables

TypeVisibilityAttributesNameInitial
integer, private :: iElem
integer, private :: QQ
integer, private :: normalInd_inv
real(kind=rk), private :: f_neigh(stencil%QQ)
real(kind=rk), private :: vel_neigh(3)
real(kind=rk), private :: normal(3)
real(kind=rk), private :: vec(3)
real(kind=rk), private :: vec_mag
real(kind=rk), private :: velSW_neigh(nElems)
real(kind=rk), private :: yPlus
real(kind=rk), private :: gradU
real(kind=rk), private :: velSW_neigh_2