67 TYPE(t_region
),
TARGET :: region
70 TYPE(t_region
),
POINTER :: region
72 INTEGER :: ibn,ien,ijk
78 CHARACTER(CHRLEN) :: rcsidentstring
80 TYPE(t_turb),
POINTER :: turb
85 INTEGER :: tndel(diri:dirk), errorflag
86 REAL(RFREAL),
POINTER :: lij(:,:)
88 INTEGER :: ilev, filtertype
91 INTEGER :: npatches, nbfaces
92 REAL(RFREAL),
POINTER :: blij(:,:)
97 rcsidentstring =
'$RCSfile: TURB_LesCoefDynSmag.F90,v $'
99 global => region%global
101 'TURB_LesCoefDynSmag.F90' )
106 ilev = region%currLevel
107 filtertype = region%turbInput%filterType
108 turb => region%levels(ilev)%turb
111 npatches = region%grid%nPatches
114 DO ipatch = 1,npatches
115 patch => region%patches(ipatch)
116 nbfaces = nbfaces +
patch%nBTris +
patch%nBQuads
123 tndel(diri) = 2*region%turbInput%filterWidth(diri)
125 tndel(dirj) = 2*region%turbInput%filterWidth(dirj)
126 tndel(dirk) = 2*region%turbInput%filterWidth(dirk)
129 tndel(dirj) = 0._rfreal
130 tndel(dirk) = 0._rfreal
147 ALLOCATE( turb%ffVar(cv_turb_nelm,ibn:ien),stat=errorflag )
148 ALLOCATE( turb%lij(tensor_symm_nelm,ibn:ien),stat=errorflag )
149 ALLOCATE( turb%mij(tensor_symm_nelm,ibn:ien),stat=errorflag )
150 global%error = errorflag
151 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
156 ALLOCATE( turb%bffVar(cv_turb_nelm,nbfaces),stat=errorflag )
157 ALLOCATE( turb%bLij(tensor_symm_nelm,nbfaces),stat=errorflag )
158 ALLOCATE( turb%bMij(tensor_symm_nelm,nbfaces),stat=errorflag )
159 global%error = errorflag
160 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
177 DEALLOCATE( turb%ffVar )
180 DEALLOCATE( turb%bffVar )
186 DEALLOCATE( turb%lij,turb%mij )
188 DEALLOCATE( turb%bLij,turb%bMij )
subroutine turb_flulesblij(region, nDel, lij)
subroutine registerfunction(global, funName, fileName)
subroutine turb_flulesc2f(region)
subroutine turb_flulesbmij(region, ijk)
subroutine turb_lescoefdynsmag(region, ibn, ien, ijk)
subroutine turb_lescontract(region, ijk)
subroutine turb_lesmij(region, ijk)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine turb_leslij(region, ijk, nDel, lij)
subroutine deregisterfunction(global)
subroutine turb_flolesgenc2f(region, ijk)