58 TYPE(t_region
) :: region
61 INTEGER :: ilev,
i,
j,
k
65 INTEGER :: inoff, ijnoff, corner(4)
67 REAL(RFREAL) :: xyzquad(3,4)
68 REAL(RFREAL),
POINTER :: xyz(:,:), si(:,:), sj(:,:), sk(:,:)
73 'RFLO_CalcFaceVectors.F90' )
77 DO ilev=1,region%nGridLevels
83 xyz => region%levels(ilev)%grid%xyz
84 si => region%levels(ilev)%grid%si
85 sj => region%levels(ilev)%grid%sj
86 sk => region%levels(ilev)%grid%sk
93 corner(1) = indijk(
i,
j ,
k ,inoff,ijnoff)
94 corner(2) = indijk(
i,
j ,
k+1,inoff,ijnoff)
95 corner(3) = indijk(
i,
j+1,
k+1,inoff,ijnoff)
96 corner(4) = indijk(
i,
j+1,
k ,inoff,ijnoff)
97 xyzquad(1:3,1) = xyz(1:3,corner(1))
98 xyzquad(1:3,2) = xyz(1:3,corner(2))
99 xyzquad(1:3,3) = xyz(1:3,corner(3))
100 xyzquad(1:3,4) = xyz(1:3,corner(4))
102 si(xcoord,corner(1)), &
103 si(ycoord,corner(1)), &
104 si(zcoord,corner(1)) )
105 si(xyzmag,corner(1)) = 1._rfreal/ &
106 sqrt( si(xcoord,corner(1))*si(xcoord,corner(1)) + &
107 si(ycoord,corner(1))*si(ycoord,corner(1)) + &
108 si(zcoord,corner(1))*si(zcoord,corner(1)) )
118 corner(1) = indijk(
i ,
j,
k ,inoff,ijnoff)
119 corner(2) = indijk(
i+1,
j,
k ,inoff,ijnoff)
120 corner(3) = indijk(
i+1,
j,
k+1,inoff,ijnoff)
121 corner(4) = indijk(
i ,
j,
k+1,inoff,ijnoff)
122 xyzquad(1:3,1) = xyz(1:3,corner(1))
123 xyzquad(1:3,2) = xyz(1:3,corner(2))
124 xyzquad(1:3,3) = xyz(1:3,corner(3))
125 xyzquad(1:3,4) = xyz(1:3,corner(4))
127 sj(xcoord,corner(1)), &
128 sj(ycoord,corner(1)), &
129 sj(zcoord,corner(1)) )
130 sj(xyzmag,corner(1)) = 1._rfreal/ &
131 sqrt( sj(xcoord,corner(1))*sj(xcoord,corner(1)) + &
132 sj(ycoord,corner(1))*sj(ycoord,corner(1)) + &
133 sj(zcoord,corner(1))*sj(zcoord,corner(1)) )
143 corner(1) = indijk(
i ,
j ,
k,inoff,ijnoff)
144 corner(2) = indijk(
i ,
j+1,
k,inoff,ijnoff)
145 corner(3) = indijk(
i+1,
j+1,
k,inoff,ijnoff)
146 corner(4) = indijk(
i+1,
j ,
k,inoff,ijnoff)
147 xyzquad(1:3,1) = xyz(1:3,corner(1))
148 xyzquad(1:3,2) = xyz(1:3,corner(2))
149 xyzquad(1:3,3) = xyz(1:3,corner(3))
150 xyzquad(1:3,4) = xyz(1:3,corner(4))
152 sk(xcoord,corner(1)), &
153 sk(ycoord,corner(1)), &
154 sk(zcoord,corner(1)) )
155 sk(xyzmag,corner(1)) = 1._rfreal/ &
156 sqrt( sk(xcoord,corner(1))*sk(xcoord,corner(1)) + &
157 sk(ycoord,corner(1))*sk(ycoord,corner(1)) + &
158 sk(zcoord,corner(1))*sk(zcoord,corner(1)) )
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
subroutine rflo_calcfacevectors(region)
subroutine rflo_getdimensdummynodes(region, iLev, idnbeg, idnend, jdnbeg, jdnend, kdnbeg, kdnend)
subroutine facevectorquad(xyzNodes, fVecX, fVecY, fVecZ)
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