78 TYPE(t_region
) :: region
81 TYPE(t_region
),
POINTER :: region
83 INTEGER :: ijk, ndel(diri:dirk)
84 REAL(RFREAL),
POINTER :: lij(:,:)
90 CHARACTER(CHRLEN) :: rcsidentstring
93 INTEGER :: ibn,ien,idbeg,idend
94 REAL(RFREAL),
POINTER :: fvar(:,:),ffvar(:,:)
95 REAL(RFREAL),
POINTER :: tens(:,:),tensbar(:,:)
98 INTEGER :: ilev,inoff,ijnoff
101 REAL(RFREAL),
POINTER :: cv(:,:)
106 rcsidentstring =
'$RCSfile: TURB_LesLij.F90,v $'
108 global => region%global
115 ilev = region%currLevel
120 fvar => region%levels(ilev)%turb%fVar
121 ffvar => region%levels(ilev)%turb%ffVar
127 fvar => region%turb%fVar
128 ffvar => region%turb%ffVar
130 ien = region%grid%nFaces
135 ALLOCATE( tens(e11:e33,ibn:ien),tensbar(e11:e33,ibn:ien) )
143 IF (region%turbInput%filterType == filtype_uniform)
then
158 fvar(cv_turb_dens,ijkn)=1._rfreal/fvar(cv_turb_dens,ijkn)
159 ffvar(cv_turb_dens,ijkn)=1._rfreal/ffvar(cv_turb_dens,ijkn)
161 tens(e11,ijkn) = fvar(cv_turb_xmom,ijkn)*fvar(cv_turb_xmom,ijkn)* &
162 fvar(cv_turb_dens,ijkn)
163 tens(e12,ijkn) = fvar(cv_turb_xmom,ijkn)*fvar(cv_turb_ymom,ijkn)* &
164 fvar(cv_turb_dens,ijkn)
165 tens(e13,ijkn) = fvar(cv_turb_xmom,ijkn)*fvar(cv_turb_zmom,ijkn)* &
166 fvar(cv_turb_dens,ijkn)
167 tens(e22,ijkn) = fvar(cv_turb_ymom,ijkn)*fvar(cv_turb_ymom,ijkn)* &
168 fvar(cv_turb_dens,ijkn)
169 tens(e23,ijkn) = fvar(cv_turb_ymom,ijkn)*fvar(cv_turb_zmom,ijkn)* &
170 fvar(cv_turb_dens,ijkn)
171 tens(e33,ijkn) = fvar(cv_turb_zmom,ijkn)*fvar(cv_turb_zmom,ijkn)* &
172 fvar(cv_turb_dens,ijkn)
181 IF (region%turbInput%filterType == filtype_uniform)
then
189 tensbar(idbeg:idend,:) = tens(idbeg:idend,:)
195 lij(e11,ijkn)=tensbar(e11,ijkn)-ffvar(cv_turb_dens,ijkn)* &
196 ffvar(cv_turb_xmom,ijkn)*ffvar(cv_turb_xmom,ijkn)
198 lij(e12,ijkn)=tensbar(e12,ijkn)-ffvar(cv_turb_dens,ijkn)* &
199 ffvar(cv_turb_xmom,ijkn)*ffvar(cv_turb_ymom,ijkn)
201 lij(e13,ijkn)=tensbar(e13,ijkn)-ffvar(cv_turb_dens,ijkn)* &
202 ffvar(cv_turb_xmom,ijkn)*ffvar(cv_turb_zmom,ijkn)
204 lij(e22,ijkn)=tensbar(e22,ijkn)-ffvar(cv_turb_dens,ijkn)* &
205 ffvar(cv_turb_ymom,ijkn)*ffvar(cv_turb_ymom,ijkn)
207 lij(e23,ijkn)=tensbar(e23,ijkn)-ffvar(cv_turb_dens,ijkn)* &
208 ffvar(cv_turb_ymom,ijkn)*ffvar(cv_turb_zmom,ijkn)
210 lij(e33,ijkn)=tensbar(e33,ijkn)-ffvar(cv_turb_dens,ijkn)* &
211 ffvar(cv_turb_zmom,ijkn)*ffvar(cv_turb_zmom,ijkn)
216 DEALLOCATE( tens,tensbar )
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 rflo_getdimensdummynodes(region, iLev, idnbeg, idnend, jdnbeg, jdnend, kdnbeg, kdnend)
subroutine turb_flolesgenfiltff(region, ijk, nDel, idBeg, idEnd, fVar, fbVar)
subroutine turb_leslij(region, ijk, nDel, lij)
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
subroutine, public rflu_interpcells2faces(pRegion, src, dst)