52 arclen12,arclen34,arclen56,xyzold,xyz )
64 LOGICAL :: boundmoved(6), edgemoved(12)
66 REAL(RFREAL),
POINTER :: arclen12(:,:), arclen34(:,:), arclen56(:,:)
67 REAL(RFREAL),
POINTER :: xyz(:,:), xyzold(:,:)
69 TYPE(t_region
) :: region
76 INTEGER :: ijkn, imjkn, ijmkn, ijkmn, inoff, ijnoff, errorflag
78 REAL(RFREAL) :: phii, phii1, phij, phij1, phik, phik1, dsi
79 REAL(RFREAL) :: v1(3), v2(3), v3(3), v12(3), v13(3), v23(3), v123(3)
80 REAL(RFREAL),
ALLOCATABLE :: dsj(:), dsk(:,:)
85 'RFLO_ChangeInteriorGrid.F90' )
96 region%global%error = errorflag
97 IF (region%global%error /= 0) &
98 CALL
errorstop( region%global,err_allocate,&
109 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
110 imjkn = indijk(
i-1,
j ,
k ,inoff,ijnoff)
111 ijmkn = indijk(
i ,
j-1,
k ,inoff,ijnoff)
112 ijkmn = indijk(
i ,
j ,
k-1,inoff,ijnoff)
115 sqrt((xyzold(xcoord,ijkn)-xyzold(xcoord,imjkn))**2 + &
116 (xyzold(ycoord,ijkn)-xyzold(ycoord,imjkn))**2 + &
117 (xyzold(zcoord,ijkn)-xyzold(zcoord,imjkn))**2)
119 sqrt((xyzold(xcoord,ijkn)-xyzold(xcoord,ijmkn))**2 + &
120 (xyzold(ycoord,ijkn)-xyzold(ycoord,ijmkn))**2 + &
121 (xyzold(zcoord,ijkn)-xyzold(zcoord,ijmkn))**2)
122 dsk(
i,
j) = dsk(
i,
j) + &
123 sqrt((xyzold(xcoord,ijkn)-xyzold(xcoord,ijkmn))**2 + &
124 (xyzold(ycoord,ijkn)-xyzold(ycoord,ijkmn))**2 + &
125 (xyzold(zcoord,ijkn)-xyzold(zcoord,ijkmn))**2)
127 phii = dsi/arclen12(
j,
k)
128 phii1 = 1._rfreal - phii
129 phij = dsj(
i)/arclen34(
k,
i)
130 phij1 = 1._rfreal - phij
131 phik = dsk(
i,
j)/arclen56(
i,
j)
132 phik1 = 1._rfreal - phik
134 v1(:) = phii1*xyz(:,indijk(
ipnbeg,
j,
k,inoff,ijnoff)) + &
135 phii *xyz(:,indijk(
ipnend,
j,
k,inoff,ijnoff))
136 v2(:) = phij1*xyz(:,indijk(
i,
jpnbeg,
k,inoff,ijnoff)) + &
137 phij *xyz(:,indijk(
i,
jpnend,
k,inoff,ijnoff))
138 v3(:) = phik1*xyz(:,indijk(
i,
j,
kpnbeg,inoff,ijnoff)) + &
139 phik *xyz(:,indijk(
i,
j,kpnend,inoff,ijnoff))
141 v12(:) = phii1*phij1*xyz(:,indijk(
ipnbeg,
jpnbeg,
k,inoff,ijnoff)) + &
145 v13(:) = phii1*phik1*xyz(:,indijk(
ipnbeg,
j,
kpnbeg,inoff,ijnoff)) + &
146 phii1*phik *xyz(:,indijk(
ipnbeg,
j,kpnend,inoff,ijnoff)) + &
148 phii *phik *xyz(:,indijk(
ipnend,
j,kpnend,inoff,ijnoff))
149 v23(:) = phij1*phik1*xyz(:,indijk(
i,
jpnbeg,
kpnbeg,inoff,ijnoff)) + &
150 phij1*phik *xyz(:,indijk(
i,
jpnbeg,kpnend,inoff,ijnoff)) + &
152 phij *phik *xyz(:,indijk(
i,
jpnend,kpnend,inoff,ijnoff))
154 v123(:) = phii1*phij1*phik1* &
171 xyz(:,ijkn) = v1(:) + v2(:) + v3(:) - v12(:) - v13(:) - v23(:) + v123(:)
181 ijkn = indijk(
i,
j,
k,inoff,ijnoff)
182 xyz(xcoord,ijkn) = region%levels(1)%gridOld%xyz(xcoord,ijkn) + &
184 xyz(ycoord,ijkn) = region%levels(1)%gridOld%xyz(ycoord,ijkn) + &
186 xyz(zcoord,ijkn) = region%levels(1)%gridOld%xyz(zcoord,ijkn) + &
194 DEALLOCATE( dsj,stat=errorflag )
195 DEALLOCATE( dsk,stat=errorflag )
196 region%global%error = errorflag
197 IF (region%global%error /= 0) &
198 CALL
errorstop( region%global,err_deallocate,&
**********************************************************************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 jpnbeg
**********************************************************************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 kpnbeg
subroutine registerfunction(global, funName, fileName)
subroutine rflo_changeinteriorgrid(region, boundMoved, edgeMoved, arcLen12, arcLen34, arcLen56, xyzOld, xyz)
**********************************************************************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 jpnend
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 ipnbeg
subroutine rflo_getdimensphysnodes(region, iLev, ipnbeg, ipnend, jpnbeg, jpnend, kpnbeg, kpnend)
subroutine errorstop(global, errorCode, errorLine, addMessage)
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 ipnend