73 TYPE(t_region
),
TARGET :: region
76 TYPE(t_region
),
POINTER :: region
78 INTEGER :: ibc, iec, ibn, ien
84 CHARACTER(CHRLEN) :: rcsidentstring
86 TYPE(t_turb),
POINTER :: turb
88 TYPE(t_patch),
POINTER :: ppatch
91 INTEGER :: ibegv, iendv, ibegg, iendg, ngrad, errorflag
92 REAL(RFREAL),
POINTER :: ccvar(:,:)
94 INTEGER :: ilev, gradindx(9)
95 REAL(RFREAL),
POINTER ::
gradi(:,:),
gradj(:,:), gradk(:,:)
98 INTEGER :: npatches, nbfaces, nbfacestot, gradindx(3)
99 REAL(RFREAL),
POINTER ::
gradi(:,:,:), bgradi(:,:,:)
104 rcsidentstring =
'$RCSfile: TURB_LesGetEddyVis.F90,v $'
106 global => region%global
108 'TURB_LesGetEddyVis.F90' )
111 ngrad = region%turbInput%nGrad
113 ilev = region%currLevel
114 turb => region%levels(ilev)%turb
117 npatches = region%grid%nPatches
121 DO ipatch = 1,npatches
122 ppatch => region%patches(ipatch)
124 nbfaces = nbfaces + ppatch%nBTris + ppatch%nBQuads
125 nbfacestot = nbfacestot + ppatch%nBTrisTot + ppatch%nBQuadsTot
132 ALLOCATE( turb%ccVar(cv_turb_nelm,ibc:iec),stat=errorflag )
133 global%error = errorflag
134 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
137 ALLOCATE( turb%gradi(ngrad,ibn:ien),stat=errorflag )
138 global%error = errorflag
139 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
141 ALLOCATE( turb%gradj(ngrad,ibn:ien),stat=errorflag )
142 global%error = errorflag
143 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
145 ALLOCATE( turb%gradk(ngrad,ibn:ien),stat=errorflag )
146 global%error = errorflag
147 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
150 ALLOCATE( turb%gradi(xcoord:zcoord,ngrad,ibn:ien),stat=errorflag )
151 global%error = errorflag
152 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
154 ALLOCATE( turb%bGradi(xcoord:zcoord,ngrad,nbfaces),stat=errorflag )
155 global%error = errorflag
156 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
166 bgradi => turb%bGradi
187 DO ipatch = 1,npatches
188 ppatch => region%patches(ipatch)
196 DEALLOCATE( turb%ccVar )
200 gradindx(1) = gr_turb_ux
201 gradindx(2) = gr_turb_vx
202 gradindx(3) = gr_turb_wx
204 gradindx(4) = gr_turb_uy
205 gradindx(5) = gr_turb_vy
206 gradindx(6) = gr_turb_wy
207 gradindx(7) = gr_turb_uz
208 gradindx(8) = gr_turb_vz
209 gradindx(9) = gr_turb_wz
211 CALL turb_calcstrainrate( region,ibn,ien,gradindx,
gradi,
gradj,gradk, &
212 turb%fISij,turb%fJSij,turb%fKSij )
213 DEALLOCATE( turb%gradi,turb%gradj,turb%gradk )
216 CALL turb_calcstrainrate( region, ibn,ien, gradindx,
gradi, turb%fISij )
218 CALL turb_calcstrainrate( region,1,nbfaces,gradindx,bgradi,turb%bfISij )
219 DEALLOCATE( turb%gradi, turb%bGradi )
subroutine, public rflu_computegradfaceswrapper(pRegion, iBegVar, iEndVar, iBegGrad, iEndGrad, var, grad)
LOGICAL function rflu_decideneedbgradface(pRegion, pPatch)
subroutine registerfunction(global, funName, fileName)
subroutine, public rflu_computegradbfaceswrapper(pRegion, pPatch, iBegVar, iEndVar, iBegGrad, iEndGrad, var, grad)
subroutine turb_lesgeteddyvis(region, ibc, iec, ibn, ien)
subroutine turb_lestestrhov(region, ibc, iec)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE iEndG gradi(:,:)
subroutine turb_lescalceddyvis(region, ibn, ien, ijk)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE iEndG gradj(:,:)
subroutine rflo_calcgradvector(region, iBegV, iEndV, iBegG, iEndG, var, gradi, gradj, gradk)