63 TYPE(t_region
) :: region
71 INTEGER :: ilev, icoff, ijcoff, inoff, ijnoff, ijkc, ijkn, ijkn1, indsvel
73 REAL(RFREAL) :: rrho, u,
v, w, sx, sy, sz, ds, svel, vc, cs, sumsrad, dtmin
74 REAL(RFREAL),
POINTER :: cv(:,:), dv(:,:), dt(:)
75 REAL(RFREAL),
POINTER :: si(:,:), sj(:,:), sk(:,:), vol(:)
76 REAL(RFREAL),
POINTER :: sivel(:), sjvel(:), skvel(:)
77 REAL(RFREAL),
POINTER :: srad(:,:)
83 global => region%global
86 'RFLO_TimeStepInviscid.F90' )
90 ilev = region%currLevel
99 cv => region%levels(ilev)%mixt%cv
100 dv => region%levels(ilev)%mixt%dv
101 dt => region%levels(ilev)%dt
103 si => region%levels(ilev)%grid%si
104 sj => region%levels(ilev)%grid%sj
105 sk => region%levels(ilev)%grid%sk
106 vol => region%levels(ilev)%grid%vol
107 sivel => region%levels(ilev)%grid%siVel
108 sjvel => region%levels(ilev)%grid%sjVel
109 skvel => region%levels(ilev)%grid%skVel
110 indsvel = region%levels(ilev)%grid%indSvel
112 srad => region%levels(ilev)%mixt%srad
119 ijkc = indijk(
i,
j,
k,icoff,ijcoff)
120 ijkn = indijk(
i,
j,
k,inoff,ijnoff)
121 rrho = 1._rfreal/cv(cv_mixt_dens,ijkc)
122 u = cv(cv_mixt_xmom,ijkc)*rrho
123 v = cv(cv_mixt_ymom,ijkc)*rrho
124 w = cv(cv_mixt_zmom,ijkc)*rrho
126 ijkn1 = indijk(
i+1,
j,
k,inoff,ijnoff)
127 sx = 0.5_rfreal*(si(xcoord,ijkn)+si(xcoord,ijkn1))
128 sy = 0.5_rfreal*(si(ycoord,ijkn)+si(ycoord,ijkn1))
129 sz = 0.5_rfreal*(si(zcoord,ijkn)+si(zcoord,ijkn1))
130 ds =
sqrt(sx*sx+sy*sy+sz*sz)
131 svel = 0.5_rfreal*(sivel(ijkn*indsvel)+sivel(ijkn1*indsvel))
132 vc = sx*u + sy*
v + sz*w - svel
133 cs = dv(dv_mixt_soun,ijkc)*ds
134 srad(icoord,ijkc) = abs(vc) + cs
136 ijkn1 = indijk(
i,
j+1,
k,inoff,ijnoff)
137 sx = 0.5_rfreal*(sj(xcoord,ijkn)+sj(xcoord,ijkn1))
138 sy = 0.5_rfreal*(sj(ycoord,ijkn)+sj(ycoord,ijkn1))
139 sz = 0.5_rfreal*(sj(zcoord,ijkn)+sj(zcoord,ijkn1))
140 ds =
sqrt(sx*sx+sy*sy+sz*sz)
141 svel = 0.5_rfreal*(sjvel(ijkn*indsvel)+sjvel(ijkn1*indsvel))
142 vc = sx*u + sy*
v + sz*w - svel
143 cs = dv(dv_mixt_soun,ijkc)*ds
144 srad(jcoord,ijkc) = abs(vc) + cs
146 ijkn1 = indijk(
i,
j,
k+1,inoff,ijnoff)
147 sx = 0.5_rfreal*(sk(xcoord,ijkn)+sk(xcoord,ijkn1))
148 sy = 0.5_rfreal*(sk(ycoord,ijkn)+sk(ycoord,ijkn1))
149 sz = 0.5_rfreal*(sk(zcoord,ijkn)+sk(zcoord,ijkn1))
150 ds =
sqrt(sx*sx+sy*sy+sz*sz)
151 svel = 0.5_rfreal*(skvel(ijkn*indsvel)+skvel(ijkn1*indsvel))
152 vc = sx*u + sy*
v + sz*w - svel
153 cs = dv(dv_mixt_soun,ijkc)*ds
154 srad(kcoord,ijkc) = abs(vc) + cs
156 sumsrad = srad(icoord,ijkc) + srad(jcoord,ijkc) + srad(kcoord,ijkc)
157 sumsrad =
max(sumsrad,1.e-30_rfreal)
158 dt(ijkc) = vol(ijkc)/sumsrad
175 IF (global%flowType == flow_unsteady)
THEN
181 ijkc = indijk(
i,
j,
k,icoff,ijcoff)
182 dtmin =
min(dtmin,dt(ijkc))
**********************************************************************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 idcend
**********************************************************************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
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
subroutine registerfunction(global, funName, fileName)
subroutine rflo_copyvectorpatches(iLev, region, vec)
**********************************************************************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
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS 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 v
subroutine rflo_copymatrixpatches(iLev, region, mat)
subroutine rflo_getnodeoffset(region, iLev, iNodeOffset, ijNodeOffset)
subroutine rflo_getdimensdummy(region, iLev, idcbeg, idcend, jdcbeg, jdcend, kdcbeg, kdcend)
**********************************************************************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 kdcbeg
subroutine rflo_copymatrixcorners(iLev, region, mat)
**********************************************************************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_copymatrixedges(iLev, region, mat)
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 idcbeg
**********************************************************************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 jdcend
Vector_n min(const Array_n_const &v1, const Array_n_const &v2)
**********************************************************************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 jdcbeg
subroutine rflo_copyvectorcorners(iLev, region, vec)
subroutine deregisterfunction(global)
subroutine rflo_copyvectoredges(iLev, region, vec)
subroutine rflo_getdimensphys(region, iLev, ipcbeg, ipcend, jpcbeg, jpcend, kpcbeg, kpcend)
subroutine rflo_timestepinviscid(region)