59 TYPE(t_region
) :: region
63 INTEGER ::
i,
j,
k, ijkc0, ijkc1, ijkn, ijkn1
66 CHARACTER(CHRLEN) :: rcsidentstring
71 INTEGER :: ilev,inoff,ijnoff,icoff,ijcoff
73 REAL(RFREAL),
POINTER :: vol(:), fvol(:)
77 rcsidentstring =
'$RCSfile: TURB_floFaceVolume.F90,v $'
79 global => region%global
81 'TURB_floFaceVolume.F90' )
85 ilev = region%currLevel
90 vol => region%levels(ilev)%grid%vol
93 fvol => region%levels(ilev)%turb%fvolI
103 ELSEIF (ijk==dirj)
THEN
104 fvol => region%levels(ilev)%turb%fvolJ
114 ELSEIF (ijk==dirk)
THEN
115 fvol => region%levels(ilev)%turb%fvolK
129 DO k=
kbeg-kadd,kend+kadd
132 ijkc0 = indijk(
i ,
j ,
k ,icoff,ijcoff)
133 ijkc1 = ijkc0 + iadd + jadd*icoff + kadd*ijcoff
134 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
135 fvol(ijkn) = 0.5_rfreal*(vol(ijkc1)+vol(ijkc0))
147 ijkc0 = indijk(
i ,
j ,
k ,icoff,ijcoff)
148 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
149 fvol(ijkn) = vol(ijkc0)
151 ijkc1 = indijk(
i+iadd,
j+jadd,
k+kadd,icoff,ijcoff)
152 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
153 fvol(ijkn) = vol(ijkc1)
159 ijkn = indijk(
i ,
jdnend ,
k ,inoff,ijnoff)
161 fvol(ijkn) = fvol(ijkn1)
162 fvol(ijkn) = fvol(ijkn1)
163 fvol(ijkn) = fvol(ijkn1)
164 fvol(ijkn) = fvol(ijkn1)
169 ijkn = indijk(
i ,
j ,kdnend ,inoff,ijnoff)
170 ijkn1 = ijkn - ijnoff
171 fvol(ijkn) = fvol(ijkn1)
172 fvol(ijkn) = fvol(ijkn1)
173 fvol(ijkn) = fvol(ijkn1)
174 fvol(ijkn) = fvol(ijkn1)
178 ELSEIF (ijk==dirj)
THEN
185 ijkc0 = indijk(
i ,
j ,
k ,icoff,ijcoff)
186 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
187 fvol(ijkn) = vol(ijkc0)
189 ijkc1 = indijk(
i+iadd,
j+jadd,
k+kadd,icoff,ijcoff)
190 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
191 fvol(ijkn) = vol(ijkc1)
197 ijkn = indijk(
idnend ,
j ,
k ,inoff,ijnoff)
199 fvol(ijkn) = fvol(ijkn1)
200 fvol(ijkn) = fvol(ijkn1)
201 fvol(ijkn) = fvol(ijkn1)
202 fvol(ijkn) = fvol(ijkn1)
207 ijkn = indijk(
i ,
j ,kdnend ,inoff,ijnoff)
208 ijkn1 = ijkn - ijnoff
209 fvol(ijkn) = fvol(ijkn1)
210 fvol(ijkn) = fvol(ijkn1)
211 fvol(ijkn) = fvol(ijkn1)
212 fvol(ijkn) = fvol(ijkn1)
216 ELSEIF (ijk==dirk)
THEN
223 ijkc0 = indijk(
i ,
j ,
k ,icoff,ijcoff)
224 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
225 fvol(ijkn) = vol(ijkc0)
227 ijkc1 = indijk(
i+iadd,
j+jadd,
k+kadd,icoff,ijcoff)
228 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
229 fvol(ijkn) = vol(ijkc1)
235 ijkn = indijk(
idnend ,
j ,
k ,inoff,ijnoff)
237 fvol(ijkn) = fvol(ijkn1)
238 fvol(ijkn) = fvol(ijkn1)
239 fvol(ijkn) = fvol(ijkn1)
240 fvol(ijkn) = fvol(ijkn1)
245 ijkn = indijk(
i ,
jdnend ,
k ,inoff,ijnoff)
247 fvol(ijkn) = fvol(ijkn1)
248 fvol(ijkn) = fvol(ijkn1)
249 fvol(ijkn) = fvol(ijkn1)
250 fvol(ijkn) = fvol(ijkn1)
**********************************************************************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 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
**********************************************************************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 rflo_getcelloffset(region, iLev, iCellOffset, ijCellOffset)
subroutine turb_flofacevolume(region, 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 jend
subroutine rflo_getdimensdummynodes(region, iLev, idnbeg, idnend, jdnbeg, jdnend, kdnbeg, kdnend)
**********************************************************************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 kdnbeg