72 TYPE(t_region
) :: region
75 TYPE(t_region
),
POINTER :: region
80 INTEGER ::
i,
j,
k, ijkn, ijkc0, ijkc1
83 CHARACTER(CHRLEN) :: rcsidentstring
86 INTEGER :: ibn,ien,idbeg,idend,tndel(diri:dirk)
87 REAL(RFREAL) :: kappa2,rkappa2,two3rd
88 REAL(RFREAL) :: delfac2,delfkap2,forterm
89 REAL(RFREAL),
POINTER :: fvol(:),fsij(:,:),fvar(:,:),ffvar(:,:)
90 REAL(RFREAL),
POINTER :: sij(:,:),mij(:,:)
91 REAL(RFREAL),
POINTER :: field(:,:),tfield(:,:)
92 REAL(RFREAL),
ALLOCATABLE :: modstrain(:)
96 INTEGER :: ilev,inoff,ijnoff
101 rcsidentstring =
'$RCSfile: TURB_LesMij.F90,v $'
103 global => region%global
110 ilev = region%currLevel
115 fvar => region%levels(ilev)%turb%fVar
116 ffvar => region%levels(ilev)%turb%ffVar
117 mij => region%levels(ilev)%turb%mij
122 fvol => region%levels(ilev)%turb%fvolI
123 sij => region%levels(ilev)%turb%mIsij
124 fsij => region%levels(ilev)%turb%fISij
125 ELSEIF (ijk==dirj)
THEN
126 fvol => region%levels(ilev)%turb%fvolJ
127 sij => region%levels(ilev)%turb%mJsij
128 fsij => region%levels(ilev)%turb%fJSij
129 ELSEIF (ijk==dirk)
THEN
130 fvol => region%levels(ilev)%turb%fvolK
131 sij => region%levels(ilev)%turb%mKsij
132 fsij => region%levels(ilev)%turb%fKSij
136 fvar => region%turb%fVar
137 ffvar => region%turb%ffVar
138 mij => region%turb%mij
139 fvol => region%turb%fvolI
140 sij => region%turb%mIsij
141 fsij => region%turb%fISij
143 ien = region%grid%nFaces
148 ALLOCATE( modstrain(ibn:ien) )
149 ALLOCATE( field(e11:e33,ibn:ien),tfield(e11:e33,ibn:ien) )
153 tndel(diri) = 2*region%turbInput%filterWidth(diri)
155 tndel(dirj) = 2*region%turbInput%filterWidth(dirj)
156 tndel(dirk) = 2*region%turbInput%filterWidth(dirk)
163 rkappa2= 1._rfreal/kappa2
164 two3rd = 2._rfreal/3._rfreal
169 delfac2 = region%turbInput%delFac2
170 delfkap2 = delfac2*kappa2
179 fsij(e33,ijkn)=-(fsij(e11,ijkn)+fsij(e22,ijkn))
182 modstrain(ijkn)=
sqrt(fsij(e11,ijkn)*fsij(e11,ijkn) &
183 +fsij(e22,ijkn)*fsij(e22,ijkn) &
184 +fsij(e11,ijkn)*fsij(e22,ijkn) &
185 +fsij(e12,ijkn)*fsij(e12,ijkn) &
186 +fsij(e13,ijkn)*fsij(e13,ijkn) &
187 +fsij(e23,ijkn)*fsij(e23,ijkn))
191 tfield(e11,ijkn) = delfkap2*fvol(ijkn)**two3rd
198 forterm = -tfield(e11,ijkn)/ffvar(cv_turb_dens,ijkn)* &
201 mij(e11,ijkn) = forterm*fsij(e11,ijkn)
202 mij(e12,ijkn) = forterm*fsij(e12,ijkn)
203 mij(e13,ijkn) = forterm*fsij(e13,ijkn)
204 mij(e22,ijkn) = forterm*fsij(e22,ijkn)
205 mij(e23,ijkn) = forterm*fsij(e23,ijkn)
206 mij(e33,ijkn) = forterm*fsij(e33,ijkn)
213 modstrain(ijkn) =
sqrt(sij(e11,ijkn)*sij(e11,ijkn) &
214 +sij(e22,ijkn)*sij(e22,ijkn) &
215 +sij(e11,ijkn)*sij(e22,ijkn) &
216 +sij(e12,ijkn)*sij(e12,ijkn) &
217 +sij(e13,ijkn)*sij(e13,ijkn) &
218 +sij(e23,ijkn)*sij(e23,ijkn))
223 forterm = tfield(e11,ijkn)/fvar(cv_turb_dens,ijkn)*rkappa2* &
226 field(e11,ijkn) = forterm*sij(e11,ijkn)
227 field(e12,ijkn) = forterm*sij(e12,ijkn)
228 field(e13,ijkn) = forterm*sij(e13,ijkn)
229 field(e22,ijkn) = forterm*sij(e22,ijkn)
230 field(e23,ijkn) = forterm*sij(e23,ijkn)
231 field(e33,ijkn) = -forterm*(sij(e11,ijkn)+sij(e22,ijkn))
239 IF (region%turbInput%filterType == filtype_uniform)
then
247 tfield(idbeg:idend,:) = field(idbeg:idend,:)
253 mij(e11,ijkn) = mij(e11,ijkn) + tfield(e11,ijkn)
254 mij(e12,ijkn) = mij(e12,ijkn) + tfield(e12,ijkn)
255 mij(e13,ijkn) = mij(e13,ijkn) + tfield(e13,ijkn)
256 mij(e22,ijkn) = mij(e22,ijkn) + tfield(e22,ijkn)
257 mij(e23,ijkn) = mij(e23,ijkn) + tfield(e23,ijkn)
258 mij(e33,ijkn) = mij(e33,ijkn) + tfield(e33,ijkn)
263 DEALLOCATE( modstrain,field,tfield )
subroutine registerfunction(global, funName, fileName)
**********************************************************************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 jdnbeg
**********************************************************************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 idnend
subroutine rflo_getnodeoffset(region, iLev, iNodeOffset, ijNodeOffset)
**********************************************************************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 jdnend
**********************************************************************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 idnbeg
subroutine turb_flolesunifiltff(region, ijk, nDel, idBeg, idEnd, fVar, fbVar)
subroutine turb_lesmij(region, ijk)
subroutine rflo_getdimensdummynodes(region, iLev, idnbeg, idnend, jdnbeg, jdnend, kdnbeg, kdnend)
subroutine turb_flolesgenfiltff(region, ijk, nDel, idBeg, idEnd, fVar, fbVar)
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 kdnbeg