68 INTEGER,
INTENT(IN) :: nvarscal
69 REAL(RFREAL),
DIMENSION(:,:),
INTENT(IN) :: tvscal
70 REAL(RFREAL),
DIMENSION(:,:),
INTENT(INOUT) :: resscal
71 REAL(RFREAL),
DIMENSION(:,:,:),
INTENT(IN) :: gradscal
72 TYPE(t_region
),
POINTER :: pregion
78 CHARACTER(CHRLEN) :: rcsidentstring
79 INTEGER :: c1,c2,ifg,ivarscal
80 REAL(RFREAL) :: beta,flx,mu,nm,nx,ny,nz
82 TYPE(t_grid),
POINTER :: pgrid
88 rcsidentstring =
'$RCSfile: RFLU_ScalarViscousFluxes.F90,v $ $Revision: 1.4 $'
90 global => pregion%global
93 'RFLU_ScalarViscousFluxes.F90')
101 beta = pregion%mixtInput%betrk(pregion%irkStep)
107 DO ifg = 1,pgrid%nFaces
108 c1 = pgrid%f2c(1,ifg)
109 c2 = pgrid%f2c(2,ifg)
115 nx = pgrid%fn(xcoord,ifg)
116 ny = pgrid%fn(ycoord,ifg)
117 nz = pgrid%fn(zcoord,ifg)
118 nm = pgrid%fn(xyzmag,ifg)
125 DO ivarscal = 1,nvarscal
126 mu = 0.5_rfreal*(tvscal(ivarscal,c1) + tvscal(ivarscal,c2))
132 flx = mu*( gradscal(xcoord,ivarscal,ifg)*nx &
133 + gradscal(ycoord,ivarscal,ifg)*ny &
134 + gradscal(zcoord,ivarscal,ifg)*nz)*nm
140 resscal(ivarscal,c1) = resscal(ivarscal,c1) + beta*flx
141 resscal(ivarscal,c2) = resscal(ivarscal,c2) - beta*flx
subroutine registerfunction(global, funName, fileName)
subroutine rflu_scalarviscousfluxes(pRegion, nVarScal, tvScal, gradScal, resScal)
subroutine deregisterfunction(global)