68 TYPE(t_region
),
TARGET :: region
71 TYPE(t_region
),
POINTER :: region
73 INTEGER :: ibn,ien,ijk
79 CHARACTER(CHRLEN) :: rcsidentstring
81 TYPE(t_turb),
POINTER :: turb
86 REAL(RFREAL),
POINTER :: lij(:,:)
87 INTEGER :: tndel(diri:dirk), errorflag
89 INTEGER :: ilev, filtertype
92 INTEGER :: npatches, nbfaces
93 REAL(RFREAL),
POINTER :: blij(:,:)
98 rcsidentstring =
'$RCSfile: TURB_LesCoefDynMixd.F90,v $'
100 global => region%global
102 'TURB_LesCoefDynMixd.F90' )
107 ilev = region%currLevel
108 filtertype = region%turbInput%filterType
109 turb => region%levels(ilev)%turb
112 npatches = region%grid%nPatches
115 DO ipatch = 1,npatches
116 patch => region%patches(ipatch)
117 nbfaces = nbfaces +
patch%nBTris +
patch%nBQuads
124 tndel(diri) = 2*region%turbInput%filterWidth(diri)
126 tndel(dirj) = 2*region%turbInput%filterWidth(dirj)
127 tndel(dirk) = 2*region%turbInput%filterWidth(dirk)
130 tndel(dirj) = 0._rfreal
131 tndel(dirk) = 0._rfreal
148 ALLOCATE( turb%ffVar(cv_turb_nelm,ibn:ien),stat=errorflag )
149 ALLOCATE( turb%lij(tensor_symm_nelm,ibn:ien),stat=errorflag )
150 ALLOCATE( turb%mij(tensor_symm_nelm,ibn:ien),stat=errorflag )
151 global%error = errorflag
152 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
157 ALLOCATE( turb%bffVar(cv_turb_nelm,nbfaces),stat=errorflag )
158 ALLOCATE( turb%bLij(tensor_symm_nelm,nbfaces),stat=errorflag )
159 ALLOCATE( turb%bMij(tensor_symm_nelm,nbfaces),stat=errorflag )
160 global%error = errorflag
161 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
186 DEALLOCATE( turb%ffVar )
189 DEALLOCATE( turb%bffVar )
195 DEALLOCATE( turb%lij,turb%mij )
197 DEALLOCATE( turb%bLij,turb%bMij )
subroutine turb_flulesblij(region, nDel, lij)
subroutine turb_leshij(region, ijk)
subroutine registerfunction(global, funName, fileName)
subroutine turb_flulesc2f(region)
subroutine turb_flulesbmij(region, ijk)
subroutine turb_lescontract(region, ijk)
subroutine turb_lesmij(region, ijk)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine turb_lescoefdynmixd(region, ibn, ien, ijk)
subroutine turb_leslij(region, ijk, nDel, lij)
subroutine deregisterfunction(global)
subroutine turb_flolesgenc2f(region, ijk)