68 TYPE(t_region
),
TARGET :: region
71 TYPE(t_region
),
POINTER :: region
79 CHARACTER(CHRLEN) :: rcsidentstring
81 TYPE(t_turb),
POINTER :: turb
91 INTEGER :: npatches, nbfaces
96 rcsidentstring =
'$RCSfile: TURB_LesFluxScalSim.F90,v $'
98 global => region%global
100 'TURB_LesFluxScalSim.F90' )
104 ilev = region%currLevel
105 turb => region%levels(ilev)%turb
108 npatches = region%grid%nPatches
111 DO ipatch = 1,npatches
112 patch => region%patches(ipatch)
113 nbfaces = nbfaces +
patch%nBTris +
patch%nBQuads
120 ALLOCATE( turb%fVar(cv_turb_nelm,ibn:ien),stat=errorflag )
121 global%error = errorflag
122 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
124 ALLOCATE( turb%ffVar(cv_turb_nelm,ibn:ien),stat=errorflag )
125 global%error = errorflag
126 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
128 ALLOCATE( turb%fISij(tensor_symm_nelm,ibn:ien),stat=errorflag )
129 global%error = errorflag
130 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
133 ALLOCATE( turb%fJSij(tensor_symm_nelm,ibn:ien),stat=errorflag )
134 global%error = errorflag
135 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
137 ALLOCATE( turb%fKSij(tensor_symm_nelm,ibn:ien),stat=errorflag )
138 global%error = errorflag
139 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
142 ALLOCATE( turb%bfVar(cv_turb_nelm,nbfaces),stat=errorflag )
143 global%error = errorflag
144 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
146 ALLOCATE( turb%bffVar(cv_turb_nelm,nbfaces),stat=errorflag )
147 global%error = errorflag
148 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
150 ALLOCATE( turb%bfISij(tensor_symm_nelm,nbfaces),stat=errorflag )
151 global%error = errorflag
152 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
163 CALL
turb_leslij( region,diri,region%turbInput%filterWidth,turb%fISij )
165 CALL
turb_flulesblij( region,region%turbInput%filterWidth,turb%bfISij )
171 CALL
turb_leslij( region,dirj,region%turbInput%filterWidth,turb%fJSij )
175 CALL
turb_leslij( region,dirk,region%turbInput%filterWidth,turb%fKSij )
187 DEALLOCATE( turb%fVar,turb%ffVar,turb%fISij )
189 DEALLOCATE( turb%fJSij,turb%fKSij )
192 DEALLOCATE( turb%bfVar,turb%bffVar,turb%bfISij )
subroutine turb_flulesblij(region, nDel, lij)
subroutine turb_vfluxhybrid(region)
subroutine registerfunction(global, funName, fileName)
subroutine turb_lesfluxscalsim(region, ibn, ien)
subroutine turb_flulesc2f(region)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine turb_leslij(region, ijk, nDel, lij)
subroutine deregisterfunction(global)
subroutine turb_flolesgenc2f(region, ijk)