67 TYPE(t_region
),
POINTER :: regions(:)
70 INTEGER :: ireg, ipatch, ijk,
i,
j,
k
74 INTEGER :: bctype, iregsrc, ipatchsrc
77 REAL(RFREAL),
POINTER :: xyz(:,:), xyzold(:,:)
80 TYPE(t_grid),
POINTER ::
grid, gridold, gridsrc
85 global => regions(1)%global
88 'RFLO_LaplaceGridSmoo.F90' )
94 DO ireg=1,global%nRegions
95 IF (regions(ireg)%procid==global%myProcid .AND. &
96 regions(ireg)%active==active .AND. &
97 regions(ireg)%mixtInput%moveGrid)
THEN
105 DO ipatch=1,regions(ireg)%nPatches
106 patch => regions(ireg)%levels(1)%patches(ipatch)
107 bctype =
patch%bcType
108 IF ((bctype>=bc_inflow .AND. bctype<=bc_inflow +bc_range) .OR. &
109 (bctype>=bc_outflow .AND. bctype<=bc_outflow +bc_range) .OR. &
110 (bctype>=bc_slipwall .AND. bctype<=bc_slipwall +bc_range) .OR. &
111 (bctype>=bc_noslipwall .AND. bctype<=bc_noslipwall+bc_range) .OR. &
112 (bctype>=bc_farfield .AND. bctype<=bc_farfield +bc_range) .OR. &
113 (bctype>=bc_injection .AND. bctype<=bc_injection +bc_range) .OR. &
114 (bctype>=bc_tra_peri .AND. bctype<=bc_tra_peri +bc_range) .OR. &
115 (bctype>=bc_rot_peri .AND. bctype<=bc_rot_peri +bc_range))
THEN
124 xyz => regions(ireg)%levels(1)%grid%xyz
125 xyzold => regions(ireg)%levels(1)%grid%xyzOld
130 ijk = indijk(
i,
j,
k,inoff,ijnoff)
131 dx = xyz(xcoord,ijk) - xyzold(xcoord,ijk)
132 dy = xyz(ycoord,ijk) - xyzold(ycoord,ijk)
133 dz = xyz(zcoord,ijk) - xyzold(zcoord,ijk)
145 DO ireg=1,global%nRegions
146 IF (regions(ireg)%procid==global%myProcid .AND. &
147 regions(ireg)%active==active .AND. &
148 regions(ireg)%mixtInput%moveGrid)
THEN
150 grid => regions(ireg)%levels(1)%grid
151 gridold => regions(ireg)%levels(1)%gridOld
153 DO ipatch=1,regions(ireg)%nPatches
154 patch => regions(ireg)%levels(1)%patches(ipatch)
155 bctype =
patch%bcType
156 IF ((bctype>=bc_regionconf .AND. bctype<=bc_regionconf+bc_range) .OR. &
157 (bctype>=bc_tra_peri .AND. bctype<=bc_tra_peri +bc_range) .OR. &
158 (bctype>=bc_rot_peri .AND. bctype<=bc_rot_peri +bc_range))
THEN
159 iregsrc =
patch%srcRegion
160 ipatchsrc =
patch%srcPatch
161 patchsrc => regions(iregsrc)%levels(1)%patches(ipatchsrc)
162 gridsrc => regions(iregsrc)%levels(1)%grid
164 IF (regions(iregsrc)%procid == global%myProcid)
THEN
166 patch,patchsrc,.true., &
167 grid%xyz,gridsrc%xyz )
180 DO ireg=1,global%nRegions
181 IF (regions(ireg)%procid==global%myProcid .AND. &
182 regions(ireg)%active==active .AND. &
183 regions(ireg)%mixtInput%moveGrid)
THEN
185 grid => regions(ireg)%levels(1)%grid
186 gridold => regions(ireg)%levels(1)%gridOld
188 DO ipatch=1,regions(ireg)%nPatches
189 patch => regions(ireg)%levels(1)%patches(ipatch)
190 bctype =
patch%bcType
191 IF ((bctype>=bc_regionconf .AND. bctype<=bc_regionconf+bc_range) .OR. &
192 (bctype>=bc_tra_peri .AND. bctype<=bc_tra_peri +bc_range) .OR. &
193 (bctype>=bc_rot_peri .AND. bctype<=bc_rot_peri +bc_range))
THEN
194 iregsrc =
patch%srcRegion
195 ipatchsrc =
patch%srcPatch
196 patchsrc => regions(iregsrc)%levels(1)%patches(ipatchsrc)
197 gridsrc => regions(iregsrc)%levels(1)%grid
199 IF (regions(iregsrc)%procid /= global%myProcid)
THEN
211 DO ireg=1,global%nRegions
212 IF (regions(ireg)%procid==global%myProcid .AND. &
213 regions(ireg)%active==active .AND. &
214 regions(ireg)%mixtInput%moveGrid)
THEN
221 DO ireg=1,global%nRegions
222 IF (regions(ireg)%procid==global%myProcid .AND. &
223 regions(ireg)%active==active .AND. &
224 regions(ireg)%mixtInput%moveGrid)
THEN
228 xyz => regions(ireg)%levels(1)%grid%xyz
229 xyzold => regions(ireg)%levels(1)%gridOld%xyz
231 DO ijk=lbound(xyz,2),ubound(xyz,2)
232 xyz(xcoord,ijk) = xyz(xcoord,ijk) + xyzold(xcoord,ijk)
233 xyz(ycoord,ijk) = xyz(ycoord,ijk) + xyzold(ycoord,ijk)
234 xyz(zcoord,ijk) = xyz(zcoord,ijk) + xyzold(zcoord,ijk)
subroutine rflo_copygeometrydummy(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 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_exchangednoderecv(region, regionSrc, patch, patchSrc, average, dNode)
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)
subroutine rflo_calcfacevectors(region)
subroutine rflo_exchangegeometry(regions)
subroutine rflo_generatecoarsegrids(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 ipnbeg
subroutine rflo_clearsendrequests(regions, iReg, geometry)
subroutine rflo_laplacegridpatch(region, patch)
subroutine rflo_getdimensphysnodes(region, iLev, ipnbeg, ipnend, jpnbeg, jpnend, kpnbeg, kpnend)
subroutine rflo_laplacegridsolve(region)
subroutine rflo_exchangednodecopy(region, regionSrc, patch, patchSrc, average, dNode, dNodeSrc)
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
subroutine rflo_exchangednodesend(region, regionSrc, patch, dNode)
subroutine rflo_laplacegridsmoo(regions, resid)