56 TYPE(t_region
) :: region
59 INTEGER :: ilev,
i,
j,
k
63 INTEGER :: icoff, ijcoff, inoff, ijnoff, corner(8), ijkcell
65 REAL(RFREAL) :: xyzhexa(3,8)
66 REAL(RFREAL),
POINTER :: xyz(:,:), cofg(:,:)
71 'RFLO_CalcCellCentroids.F90' )
75 DO ilev=1,region%nGridLevels
77 IF (
ASSOCIATED(region%levels(ilev)%grid%cofg))
THEN
83 xyz => region%levels(ilev)%grid%xyz
84 cofg => region%levels(ilev)%grid%cofg
89 ijkcell = indijk(
i,
j,
k,icoff,ijcoff)
90 corner(1) = indijk(
i ,
j ,
k ,inoff,ijnoff)
91 corner(2) = indijk(
i ,
j ,
k+1,inoff,ijnoff)
92 corner(3) = indijk(
i ,
j+1,
k+1,inoff,ijnoff)
93 corner(4) = indijk(
i ,
j+1,
k ,inoff,ijnoff)
94 corner(5) = indijk(
i+1,
j ,
k ,inoff,ijnoff)
95 corner(6) = indijk(
i+1,
j ,
k+1,inoff,ijnoff)
96 corner(7) = indijk(
i+1,
j+1,
k+1,inoff,ijnoff)
97 corner(8) = indijk(
i+1,
j+1,
k ,inoff,ijnoff)
99 xyzhexa(1:3,1) = xyz(1:3,corner(1))
100 xyzhexa(1:3,2) = xyz(1:3,corner(2))
101 xyzhexa(1:3,3) = xyz(1:3,corner(3))
102 xyzhexa(1:3,4) = xyz(1:3,corner(4))
103 xyzhexa(1:3,5) = xyz(1:3,corner(5))
104 xyzhexa(1:3,6) = xyz(1:3,corner(6))
105 xyzhexa(1:3,7) = xyz(1:3,corner(7))
106 xyzhexa(1:3,8) = xyz(1:3,corner(8))
109 cofg(xcoord,ijkcell), &
110 cofg(ycoord,ijkcell), &
111 cofg(zcoord,ijkcell) )
subroutine rflo_calccellcentroids(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 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 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 centroidhexa(xyzNodes, cofgX, cofgY, cofgZ)
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 ipcbeg
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 jpcend
subroutine deregisterfunction(global)
subroutine rflo_getdimensphys(region, iLev, ipcbeg, ipcend, jpcbeg, jpcend, kpcbeg, kpcend)