62 CHARACTER(CHRLEN) :: RCSIdentString = &
63 '$RCSfile: RFLO_ModStatsBoundaryConditions.F90,v $ $Revision: 1.4 $'
97 TYPE(t_region
) :: region
99 INTEGER :: istbeg,istend
100 REAL(RFREAL),
POINTER :: tav(:,:)
103 INTEGER :: idum,
i,
j,
k, ist
107 INTEGER :: ilev, icoff, ijcoff, lbound, ndumi, ndumj, ndumk
108 INTEGER :: ijkc, ijkd
113 'RFLO_ModStatsBoundaryConditions.F90' )
117 ilev = region%currLevel
118 lbound =
patch%lbound
125 ndumi = region%nDumCells
126 ndumj = region%nDumCells
127 ndumk = region%nDumCells
128 IF (lbound==1 .OR. lbound==2) ndumi = 0
129 IF (lbound==3 .OR. lbound==4) ndumj = 0
130 IF (lbound==5 .OR. lbound==6) ndumk = 0
134 DO idum=1,region%nDumCells
135 DO k=
kbeg-ndumk,kend+ndumk
139 ijkc = indijk(
i,
j,
k,icoff,ijcoff)
142 tav(ist,ijkd) = tav(ist,ijkc)
179 #include "Indexing.h"
182 TYPE(t_region
) :: region
184 INTEGER :: istbeg,istend
185 REAL(RFREAL),
POINTER :: tav(:,:)
188 INTEGER :: idum,
i,
j,
k, ist
192 INTEGER :: ilev, icoff, ijcoff, lbound, ndumi, ndumj, ndumk
193 INTEGER :: ijkc, ijkd
198 'RFLO_ModStatsBoundaryConditions.F90' )
202 ilev = region%currLevel
203 lbound =
patch%lbound
210 ndumi = region%nDumCells
211 ndumj = region%nDumCells
212 ndumk = region%nDumCells
213 IF (lbound==1 .OR. lbound==2) ndumi = 0
214 IF (lbound==3 .OR. lbound==4) ndumj = 0
215 IF (lbound==5 .OR. lbound==6) ndumk = 0
219 DO idum=1,region%nDumCells
220 DO k=
kbeg-ndumk,kend+ndumk
224 ijkc = indijk(
i,
j,
k,icoff,ijcoff)
227 tav(ist,ijkd) = -tav(ist,ijkc)
264 #include "Indexing.h"
267 TYPE(t_region
) :: region
269 INTEGER :: istbeg,istend
270 REAL(RFREAL),
POINTER :: tav(:,:)
273 INTEGER :: idum,
i,
j,
k, ist
277 INTEGER :: ilev, icoff, ijcoff, lbound, ndumi, ndumj, ndumk
278 INTEGER :: ijkc, ijkc1, ijkd
283 'RFLO_ModStatsBoundaryConditions.F90' )
287 ilev = region%currLevel
288 lbound =
patch%lbound
295 ndumi = region%nDumCells
296 ndumj = region%nDumCells
297 ndumk = region%nDumCells
298 IF (lbound==1 .OR. lbound==2) ndumi = 0
299 IF (lbound==3 .OR. lbound==4) ndumj = 0
300 IF (lbound==5 .OR. lbound==6) ndumk = 0
304 DO idum=1,region%nDumCells
305 DO k=
kbeg-ndumk,kend+ndumk
309 ijkc = indijk(
i-(idum-1)*
idir,
j-(idum-1)*
jdir,
k-(idum-1)*
kdir,icoff,ijcoff)
310 ijkc1= indijk(
i-(idum-2)*
idir,
j-(idum-2)*
jdir,
k-(idum-2)*
kdir,icoff,ijcoff)
313 tav(ist,ijkd) = 2._rfreal*tav(ist,ijkc)-tav(ist,ijkc1)
349 TYPE(t_region
),
POINTER :: regions(:)
352 INTEGER :: ireg, ipatch
355 INTEGER :: ilev, npatches, bctype, istbeg, istend, lbound
356 REAL(RFREAL),
POINTER :: tav(:,:)
363 global => regions(1)%global
366 'RFLO_ModStatsBoundaryConditions.F90' )
370 IF (global%statBc==1)
THEN
372 DO ireg=1,global%nRegions
373 IF (regions(ireg)%procid==global%myProcid .AND. &
374 regions(ireg)%active==active)
THEN
378 ilev = regions(ireg)%currLevel
379 npatches = regions(ireg)%nPatches
385 patch => regions(ireg)%levels(ilev)%patches(ipatch)
387 bctype =
patch%bcType
388 lbound =
patch%lbound
392 IF ((bctype>=bc_inflow .AND. bctype<=bc_inflow+bc_range) .OR. &
393 (bctype>=bc_outflow .AND. bctype<=bc_outflow+bc_range) .OR. &
394 (bctype>=bc_farfield .AND. bctype<=bc_farfield+bc_range) .OR. &
395 (bctype>=bc_symmetry .AND. bctype<=bc_symmetry+bc_range))
THEN
397 IF (global%mixtNStat > 0)
THEN
398 tav => regions(ireg)%levels(ilev)%mixt%tav
400 istend = global%mixtNStat
404 IF ((regions(ireg)%mixtInput%flowModel == flow_navst) .AND. &
405 (regions(ireg)%mixtInput%turbModel /= turb_model_none) .AND. &
406 (global%turbNStat > 0))
THEN
407 tav => regions(ireg)%levels(ilev)%turb%tav
409 istend = global%turbNStat
414 IF ((global%plagUsed .EQV. .true.) .AND. &
415 (global%plagNStat > 0))
THEN
416 tav => regions(ireg)%levels(ilev)%plag%tav
418 istend = global%plagNStat
434 ELSE IF (bctype>=bc_slipwall .AND. bctype<=bc_slipwall+bc_range)
THEN
436 IF (global%mixtNStat > 0)
THEN
437 tav => regions(ireg)%levels(ilev)%mixt%tav
439 istend = global%mixtNStat
441 IF (lbound==1 .OR. lbound==2)
THEN
454 IF ((regions(ireg)%mixtInput%flowModel == flow_navst) .AND. &
455 (regions(ireg)%mixtInput%turbModel /= turb_model_none) .AND. &
456 (global%turbNStat > 0))
THEN
457 tav => regions(ireg)%levels(ilev)%turb%tav
459 istend = global%turbNStat
464 IF ((global%plagUsed .EQV. .true.) .AND. &
465 (global%plagNStat > 0))
THEN
466 tav => regions(ireg)%levels(ilev)%plag%tav
468 istend = global%plagNStat
470 IF (lbound==1 .OR. lbound==2)
THEN
492 ELSE IF (bctype>=bc_noslipwall .AND. bctype<=bc_noslipwall+bc_range)
THEN
494 IF (global%mixtNStat > 0)
THEN
495 tav => regions(ireg)%levels(ilev)%mixt%tav
497 istend = global%mixtNStat
507 IF ((regions(ireg)%mixtInput%flowModel == flow_navst) .AND. &
508 (regions(ireg)%mixtInput%turbModel /= turb_model_none) .AND. &
509 (global%turbNStat > 0))
THEN
510 tav => regions(ireg)%levels(ilev)%turb%tav
512 istend = global%turbNStat
517 IF ((global%plagUsed .EQV. .true.) .AND. &
518 (global%plagNStat > 0))
THEN
519 tav => regions(ireg)%levels(ilev)%plag%tav
521 istend = global%plagNStat
543 ELSE IF (bctype>=bc_injection .AND. bctype<=bc_injection+bc_range)
THEN
545 IF (global%mixtNStat > 0)
THEN
546 tav => regions(ireg)%levels(ilev)%mixt%tav
548 istend = global%mixtNStat
550 IF (lbound==1 .OR. lbound==2)
THEN
558 IF (lbound/=1 .AND. lbound/=2)
THEN
571 IF ((regions(ireg)%mixtInput%flowModel == flow_navst) .AND. &
572 (regions(ireg)%mixtInput%turbModel /= turb_model_none) .AND. &
573 (global%turbNStat > 0))
THEN
574 tav => regions(ireg)%levels(ilev)%turb%tav
576 istend = global%turbNStat
581 IF ((global%plagUsed .EQV. .true.) .AND. &
582 (global%plagNStat > 0))
THEN
583 tav => regions(ireg)%levels(ilev)%plag%tav
585 istend = global%plagNStat
587 IF (lbound==1 .OR. lbound==2)
THEN
592 IF (lbound/=1 .AND. lbound/=2)
THEN
**********************************************************************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 rflo_getpatchdirection(patch, idir, jdir, kdir)
subroutine registerfunction(global, funName, fileName)
subroutine rflo_getpatchindices(region, patch, iLev, ibeg, iend, jbeg, jend, kbeg, kend)
subroutine, public rflo_statbcondextrap(region, patch, istbeg, istend, tav)
subroutine, public rflo_statboundaryconditionsset(regions)
**********************************************************************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 jdir
**********************************************************************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, public rflo_statbcondnegate(region, patch, istbeg, istend, tav)
**********************************************************************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 idir
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 knode jend
**********************************************************************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 kdir
**********************************************************************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)
subroutine, public rflo_statbcondcopy(region, patch, istbeg, istend, tav)