55 USE rflu_moddifferentiation
, ONLY: rflu_computegradfacesbak, &
56 rflu_computegradfacespatchesbak
66 TYPE(t_region
) :: region
69 TYPE(t_region
),
POINTER :: region
73 INTEGER ::
i,
j,
k,
ic, ipatch
76 INTEGER :: ibegv, iendv, ibegg, iendg, ijkn, ijkc0, ijkc1
77 REAL(RFREAL) :: beta, sounda, flima, coefa, diffcoef, modsf, fd
78 REAL(RFREAL) :: sface(3), radenx, radeny, radenz
79 REAL(RFREAL),
POINTER :: dv(:,:), rcv(:,:), rdiss(:,:), flim(:), coef(:,:)
80 REAL(RFREAL),
POINTER :: qr(:)
84 INTEGER :: ilev, icoff, ijcoff, inoff, ijnoff
85 REAL(RFREAL),
POINTER :: avgco(:,:), sf(:,:), grad(:,:)
88 INTEGER,
POINTER :: f2c(:,:)
89 REAL(RFREAL),
POINTER :: fn(:,:), grad(:,:,:)
95 'RADI_FlimDiffFlux.F90' )
100 ilev = region%currLevel
101 dv => region%levels(ilev)%mixt%dv
102 rcv => region%levels(ilev)%radi%cv
103 rdiss => region%levels(ilev)%radi%diss
104 flim => region%levels(ilev)%radi%fluxLim
105 coef => region%levels(ilev)%radi%radCoef
114 rcv => region%radi%cv
115 rdiss => region%radi%diss
116 flim => region%radi%fluxLim
117 coef => region%radi%radCoef
126 beta = region%mixtInput%betrk(region%irkStep)
132 region%levels(ilev)%radi%cv, &
133 region%levels(ilev)%radi%gradi, &
134 region%levels(ilev)%radi%gradj, &
135 region%levels(ilev)%radi%gradk )
138 CALL rflu_computegradfacesbak( region,ibegv,iendv,ibegg,iendg, &
139 region%radi%cv,region%radi%gradi )
140 CALL rflu_computegradfacespatchesbak( region,ibegv,iendv,ibegg,iendg, &
141 region%radi%cv,region%radi%bGradi )
154 DO ipatch=1,region%nPatches
159 DO ipatch = 1,region%grid%nPatches
181 REAL(RFREAL) :: ac0, ac1
186 IF (ijk==icoord)
THEN
196 qr => region%levels(ilev)%radi%qri
197 grad => region%levels(ilev)%radi%gradi
198 sf => region%levels(ilev)%grid%si
199 avgco => region%levels(ilev)%grid%c2fCoI
200 ELSEIF (ijk==jcoord)
THEN
210 qr => region%levels(ilev)%radi%qrj
211 grad => region%levels(ilev)%radi%gradj
212 sf => region%levels(ilev)%grid%sj
213 avgco => region%levels(ilev)%grid%c2fCoJ
214 ELSEIF (ijk==kcoord)
THEN
224 qr => region%levels(ilev)%radi%qrk
225 grad => region%levels(ilev)%radi%gradk
226 sf => region%levels(ilev)%grid%sk
227 avgco => region%levels(ilev)%grid%c2fCoK
232 iend = region%grid%nFaces
233 f2c => region%grid%f2c
234 qr => region%radi%qri
235 grad => region%radi%gradi
246 ijkc0 = indijk(
i ,
j ,
k ,icoff,ijcoff)
247 ijkc1 = indijk(
i+iadd,
j+jadd,
k+kadd,icoff,ijcoff)
248 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
251 sface(1)= sf(xcoord,ijkn)
252 sface(2)= sf(ycoord,ijkn)
253 sface(3)= sf(zcoord,ijkn)
261 sface(1)= fn(xcoord,ijkn)*fn(xyzmag,ijkn)
262 sface(2)= fn(ycoord,ijkn)*fn(xyzmag,ijkn)
263 sface(3)= fn(zcoord,ijkn)*fn(xyzmag,ijkn)
265 sounda = ac0*dv(dv_mixt_soun ,ijkc0)+ac1*dv(dv_mixt_soun ,ijkc1)
266 flima = ac0*flim(ijkc0)+ac1*flim(ijkc1)
267 coefa = ac0*coef(ijkc0,radi_coeff_extinct)+ &
268 ac1*coef(ijkc1,radi_coeff_extinct)
269 diffcoef = sounda*flima/coefa
272 radenx = grad(gr_radi_ex,ijkn)
273 radeny = grad(gr_radi_ey,ijkn)
274 radenz = grad(gr_radi_ez,ijkn)
277 radenx = grad(xcoord,gr_radi_ex,ijkn)
278 radeny = grad(ycoord,gr_radi_ex,ijkn)
279 radenz = grad(zcoord,gr_radi_ex,ijkn)
283 (radenx*sface(1)+radeny*sface(2)+radenz*sface(3))
285 rdiss(cv_radi_ener,ijkc0) = rdiss(cv_radi_ener,ijkc0) + fd*beta
286 rdiss(cv_radi_ener,ijkc1) = rdiss(cv_radi_ener,ijkc1) - fd*beta
289 modsf =
sqrt( sface(1)*sface(1) + &
290 sface(2)*sface(2) + &
**********************************************************************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
**********************************************************************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
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 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 radi_flimdifffluxpatch(region, patch)
subroutine rflo_getcelloffset(region, iLev, iCellOffset, ijCellOffset)
subroutine radi_flimdiffflux(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)