68 TYPE(t_region
) :: region
71 TYPE(t_region
),
POINTER :: region
75 INTEGER ::
i,
j,
k,
ic, ipatch
78 INTEGER :: ibegv, iendv, ibegg, iendg, ijkn, ijkc0, ijkc1
79 REAL(RFREAL) :: cb2, opcb2, rsigma, beta, rhoa, mua, rnua
80 REAL(RFREAL) :: nuf, nuc, nutilx, nutily, nutilz, fd
81 REAL(RFREAL) :: sface(3)
82 REAL(RFREAL),
POINTER :: cv(:,:), tv(:,:), tcv(:,:), tdiss(:,:)
83 REAL(RFREAL),
POINTER :: vol(:)
87 INTEGER :: ilev, icoff, ijcoff, inoff, ijnoff
88 REAL(RFREAL),
POINTER :: avgco(:,:), sf(:,:), grad(:,:)
91 INTEGER,
POINTER :: f2c(:,:)
92 REAL(RFREAL),
POINTER :: fn(:,:), grad(:,:,:)
93 TYPE(t_patch),
POINTER :: ppatch
99 'TURB_RansSAVisFlux.F90' )
104 ilev = region%currLevel
105 cv => region%levels(ilev)%mixt%cv
106 tv => region%levels(ilev)%mixt%tv
107 tcv => region%levels(ilev)%turb%cv
108 tdiss => region%levels(ilev)%turb%diss
109 vol => region%levels(ilev)%grid%vol
123 tcv => region%turb%cv
124 tdiss => region%turb%diss
125 vol => region%grid%vol
134 cb2 = region%turbInput%const(mc_sa_cb2)
135 rsigma = region%turbInput%const(mc_sa_rsig)
136 beta = region%mixtInput%betrk(region%irkStep)*rsigma
137 opcb2 = 1._rfreal+cb2
143 region%levels(ilev)%turb%cv, &
144 region%levels(ilev)%turb%gradi, &
145 region%levels(ilev)%turb%gradj, &
146 region%levels(ilev)%turb%gradk )
150 region%turb%cv,region%turb%gradi )
151 DO ipatch = 1,region%grid%nPatches
152 ppatch => region%patches(ipatch)
156 region%turb%cv,region%turb%bGradi )
171 DO ipatch=1,region%nPatches
176 DO ipatch = 1,region%grid%nPatches
198 REAL(RFREAL) :: ac0, ac1
213 grad => region%levels(ilev)%turb%gradi
214 sf => region%levels(ilev)%grid%si
215 avgco => region%levels(ilev)%grid%c2fCoI
216 ELSEIF (ijk==dirj)
THEN
226 grad => region%levels(ilev)%turb%gradj
227 sf => region%levels(ilev)%grid%sj
228 avgco => region%levels(ilev)%grid%c2fCoJ
229 ELSEIF (ijk==dirk)
THEN
239 grad => region%levels(ilev)%turb%gradk
240 sf => region%levels(ilev)%grid%sk
241 avgco => region%levels(ilev)%grid%c2fCoK
246 iend = region%grid%nFaces
247 f2c => region%grid%f2c
248 grad => region%turb%gradi
259 ijkc0 = indijk(
i ,
j ,
k ,icoff,ijcoff)
260 ijkc1 = indijk(
i+iadd,
j+jadd,
k+kadd,icoff,ijcoff)
261 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
264 sface(1)= sf(xcoord,ijkn)
265 sface(2)= sf(ycoord,ijkn)
266 sface(3)= sf(zcoord,ijkn)
274 sface(1)= fn(xcoord,ijkn)*fn(xyzmag,ijkn)
275 sface(2)= fn(ycoord,ijkn)*fn(xyzmag,ijkn)
276 sface(3)= fn(zcoord,ijkn)*fn(xyzmag,ijkn)
278 rhoa = ac0*cv(cv_mixt_dens ,ijkc0)+ac1*cv(cv_mixt_dens ,ijkc1)
279 mua = ac0*tv(tv_mixt_muel ,ijkc0)+ac1*tv(tv_mixt_muel ,ijkc1)
280 rnua = ac0*tcv(cv_sa_nutil ,ijkc0)+ac1*tcv(cv_sa_nutil ,ijkc1)
281 nuf = (rnua + mua)/rhoa
282 nuc = (tcv(cv_sa_nutil ,ijkc0) + tv(tv_mixt_muel ,ijkc0))/ &
283 cv(cv_mixt_dens ,ijkc0)
286 nutilx = grad(gr_sa_nutilx,ijkn)
287 nutily = grad(gr_sa_nutily,ijkn)
288 nutilz = grad(gr_sa_nutilz,ijkn)
291 nutilx = grad(xcoord,gr_sa_nutilx,ijkn)
292 nutily = grad(ycoord,gr_sa_nutilx,ijkn)
293 nutilz = grad(zcoord,gr_sa_nutilx,ijkn)
296 fd = beta*(nuf*opcb2-nuc*cb2)* &
297 (nutilx*sface(1)+nutily*sface(2)+nutilz*sface(3))
299 tdiss(cv_sa_nutil,ijkc0) = tdiss(cv_sa_nutil,ijkc0) + fd
300 tdiss(cv_sa_nutil,ijkc1) = tdiss(cv_sa_nutil,ijkc1) - fd
subroutine, public rflu_computegradfaceswrapper(pRegion, iBegVar, iEndVar, iBegGrad, iEndGrad, var, grad)
**********************************************************************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 ibeg
subroutine turb_ranssavisfluxpatch(region, patch)
**********************************************************************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 kpcbeg
LOGICAL function rflu_decideneedbgradface(pRegion, pPatch)
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 ic
**********************************************************************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 jpcbeg
**********************************************************************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 ipcend
subroutine, public rflu_computegradbfaceswrapper(pRegion, pPatch, iBegVar, iEndVar, iBegGrad, iEndGrad, var, grad)
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 knode iend
**********************************************************************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 ipcbeg
subroutine rflo_getcelloffset(region, iLev, iCellOffset, ijCellOffset)
subroutine turb_ranssavisflux(region)
**********************************************************************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 jpcend
**********************************************************************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 knode jend
**********************************************************************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 knode jbeg
subroutine computeflux(ijk)
**********************************************************************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 knode kbeg
subroutine deregisterfunction(global)
subroutine rflo_getdimensphys(region, iLev, ipcbeg, ipcend, jpcbeg, jpcend, kpcbeg, kpcend)
subroutine rflo_calcgradvector(region, iBegV, iEndV, iBegG, iEndG, var, gradi, gradj, gradk)