63 TYPE(t_region
) :: region
67 INTEGER ::
i,
j,
k,
ic
70 INTEGER :: bctype, ijkcb0, ijkcd, ijknb
73 REAL(RFREAL) :: beta, sounda, flima, coefa, diffcoef, modsf
74 REAL(RFREAL) :: radenx, radeny, radenz, fd, sf(3), ac0, ac1
75 REAL(RFREAL),
POINTER :: dv(:,:), rcv(:,:), rdiss(:,:), flim(:), coef(:,:)
76 REAL(RFREAL),
POINTER :: qr(:)
80 INTEGER :: ilev, lbound, icoff, ijcoff, inoff, ijnoff, acid0, acid1
82 REAL(RFREAL),
POINTER :: avgco(:,:), sface(:,:), grad(:,:)
85 INTEGER :: ifgbeg, ijknbg
86 REAL(RFREAL),
POINTER :: fn(:,:), grad(:,:,:)
92 'RADI_FlimDiffFluxPatch.F90' )
99 ilev = region%currLevel
100 lbound =
patch%lbound
102 dv => region%levels(ilev)%mixt%dv
103 rcv => region%levels(ilev)%radi%cv
104 rdiss => region%levels(ilev)%radi%diss
105 flim => region%levels(ilev)%radi%fluxLim
106 coef => region%levels(ilev)%radi%radCoef
110 rcv => region%radi%cv
111 rdiss => region%radi%diss
112 flim => region%radi%fluxLim
113 coef => region%radi%radCoef
118 beta = region%mixtInput%betrk(region%irkStep)
135 IF (lbound==2 .OR. lbound==4 .OR. lbound==6)
THEN
146 IF (lbound==1 .OR. lbound==2)
THEN
147 avgco => region%levels(ilev)%grid%c2fCoI
148 sface => region%levels(ilev)%grid%si
149 grad => region%levels(ilev)%radi%gradi
150 qr => region%levels(ilev)%radi%qri
151 ELSE IF (lbound==3 .OR. lbound==4)
THEN
152 avgco => region%levels(ilev)%grid%c2fCoJ
153 sface => region%levels(ilev)%grid%sj
154 grad => region%levels(ilev)%radi%gradj
155 qr => region%levels(ilev)%radi%qrj
157 avgco => region%levels(ilev)%grid%c2fCoK
158 sface => region%levels(ilev)%grid%sk
159 grad => region%levels(ilev)%radi%gradk
160 qr => region%levels(ilev)%radi%qrk
165 IF (bctype>=bc_regionint .AND. bctype<=bc_regionint+bc_range)
THEN
167 ELSE IF (bctype>=bc_regnonconf .AND. bctype<=bc_regnonconf+bc_range)
THEN
179 ijkcb0 = indijk(
i ,
j ,
k ,icoff,ijcoff)
182 ac0 = avgco(acid0,ijknb)
183 ac1 = avgco(acid1,ijknb)
184 sf(1) = sgn*sface(xcoord,ijknb)
185 sf(2) = sgn*sface(ycoord,ijknb)
186 sf(3) = sgn*sface(zcoord,ijknb)
196 grad => region%radi%bGradi
203 ijknbg =
ic + ifgbeg-1
205 sf(1) = fn(xcoord,ijknb)*fn(xyzmag,ijknb)
206 sf(2) = fn(ycoord,ijknb)*fn(xyzmag,ijknb)
207 sf(3) = fn(zcoord,ijknb)*fn(xyzmag,ijknb)
209 sounda = ac0*dv(dv_mixt_soun,ijkcb0)+ac1*dv(dv_mixt_soun,ijkcd)
210 flima = ac0*flim(ijkcb0)+ac1*flim(ijkcd)
211 coefa = ac0*coef(ijkcb0,radi_coeff_extinct)+ &
212 ac1*coef(ijkcd,radi_coeff_extinct)
213 diffcoef = sounda*flima/coefa
216 radenx = grad(gr_radi_ex,ijknb)
217 radeny = grad(gr_radi_ey,ijknb)
218 radenz = grad(gr_radi_ez,ijknb)
221 radenx = grad(xcoord,gr_radi_ex,ijknbg)
222 radeny = grad(ycoord,gr_radi_ex,ijknbg)
223 radenz = grad(zcoord,gr_radi_ex,ijknbg)
227 (radenx*sf(1)+radeny*sf(2)+radenz*sf(3))
229 rdiss(cv_radi_ener,ijkcb0) = rdiss(cv_radi_ener,ijkcb0)+fd*beta
232 modsf =
sqrt( sf(1)*sf(1) + sf(2)*sf(2) + sf(3)*sf(3) )
233 qr(ijknb) = sgn*fd/modsf
**********************************************************************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 rflo_getpatchdirection(patch, idir, jdir, kdir)
**********************************************************************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 inode
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
subroutine rflo_getpatchindices(region, patch, iLev, ibeg, iend, jbeg, jend, kbeg, kend)
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 jdir
**********************************************************************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
subroutine radi_flimdifffluxpatch(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 idir
subroutine rflo_getcelloffset(region, iLev, iCellOffset, ijCellOffset)
**********************************************************************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 kdir
**********************************************************************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
**********************************************************************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)
**********************************************************************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 jnode