52 SUBROUTINE turb_statfcollector( region,ijk,iBegSt,iEndSt,colVar )
55 SUBROUTINE turb_statfcollector( region,ijk,iBegSt,iEndSt,colVar,colBVar )
73 TYPE(t_region
) :: region
74 INTEGER :: ijk, ibegst, iendst
75 REAL(RFREAL),
POINTER :: colvar(:,:)
77 REAL(RFREAL),
POINTER :: colbvar(:,:)
81 INTEGER ::
i,
j,
k, l,
m
84 CHARACTER(CHRLEN) :: rcsidentstring
88 REAL(RFREAL) :: factor
89 REAL(RFREAL),
POINTER :: st(:,:)
93 INTEGER :: ilev,icoff,ijcoff,inoff,ijnoff,ijknp,iadd
96 INTEGER :: ict, icl, ipatch, nfacespercell
97 INTEGER,
POINTER :: c2f(:,:,:)
102 rcsidentstring =
'$RCSfile: TURB_StatFCollector.F90,v $'
104 global => region%global
106 'TURB_StatFCollector.F90' )
110 IF (iendst > region%turbInput%nSt)
THEN
111 CALL
errorstop( global,err_turb_statsinput,__line__, &
112 'index of collected vars larger than nSt (allocated nmbr stats vars)' )
114 IF (ibegst > iendst)
THEN
115 CALL
errorstop( global,err_turb_statsinput,__line__, &
116 'begin index of collected vars larger than end index' )
122 ilev = region%currLevel
131 st => region%levels(ilev)%turb%st
135 factor = 1._rfreal/6._rfreal
136 IF (ijk == diri)
THEN
139 ELSEIF (ijk == dirj)
THEN
141 ELSEIF (ijk == dirk)
THEN
149 ijkc = indijk(
i ,
j ,
k ,icoff,ijcoff)
150 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
155 st(l,ijkc) = st(l,ijkc)+factor*(colvar(
m,ijkn)+colvar(
m,ijknp))
168 DO ijkc=1,region%grid%nCells
172 ict = region%grid%cellGlob2Loc(1,ijkc)
173 icl = region%grid%cellGlob2Loc(2,ijkc)
175 CASE ( cell_type_tet )
177 c2f => region%grid%tet2f
178 CASE ( cell_type_hex )
180 c2f => region%grid%hex2f
181 CASE ( cell_type_pri )
183 c2f => region%grid%pri2f
184 CASE ( cell_type_pyr )
186 c2f => region%grid%pyr2f
188 CALL
errorstop(global,err_reached_default,__line__)
194 ipatch = c2f(1,
k,icl)
197 IF ( ipatch == 0 )
THEN
198 st(l,ijkc) = st(l,ijkc)+colvar(
m,ijkn)
200 st(l,ijkc) = st(l,ijkc)+colbvar(
m,ijkn)
203 st(l,ijkc) = st(l,ijkc)/nfacespercell
212 END SUBROUTINE turb_statfcollector
**********************************************************************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 idcend
subroutine registerfunction(global, funName, fileName)
subroutine rflo_getnodeoffset(region, iLev, iNodeOffset, ijNodeOffset)
subroutine rflo_getdimensdummy(region, iLev, idcbeg, idcend, jdcbeg, jdcend, kdcbeg, kdcend)
**********************************************************************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 kdcbeg
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 idcbeg
**********************************************************************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 jdcend
**********************************************************************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 jdcbeg
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)