65 TYPE(t_region
) :: region
68 INTEGER ::
i,
j,
k,
ic, ijkc, in, ijkn, ipatch, ift, ifl
71 CHARACTER(CHRLEN) :: rcsidentstring
75 REAL(RFREAL),
POINTER :: muet(:,:),tv(:,:), gv(:,:), tdv(:,:)
76 REAL(RFREAL) :: rprt,cpprt
81 INTEGER :: ilev,icoff,ijcoff,inoff,ijnoff,ijkni,ijknj,ijknk
82 REAL(RFREAL) :: one6th
85 INTEGER :: ifg, ifgbeg, ic0, ic1, ict, icl, nfacespercell
86 INTEGER,
POINTER :: c2f(:,:,:)
87 REAL(RFREAL),
POINTER :: bmuet(:,:)
92 rcsidentstring =
'$RCSfile: TURB_GetTvCell.F90,v $'
94 global => region%global
96 'TURB_GetTvCell.F90' )
101 ilev = region%currLevel
102 one6th = 1._rfreal/6._rfreal
103 rprt = 1._rfreal/region%levels(ilev)%mixt%prTurb
104 indcp = region%levels(ilev)%mixt%indCp
115 muet => region%levels(ilev)%turb%mueT
116 tv => region%levels(ilev)%mixt%tv
117 gv => region%levels(ilev)%mixt%gv
118 tdv => region%levels(ilev)%turb%dv
124 ijkc = indijk(
i ,
j ,
k ,icoff,ijcoff)
125 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
128 ijknk = ijkn + ijnoff
133 tv(tv_mixt_muet,ijkc) = muet(diri,ijkn)+muet(diri,ijkni) + &
134 muet(dirj,ijkn)+muet(dirj,ijknj) + &
135 muet(dirk,ijkn)+muet(dirk,ijknk)
136 tv(tv_mixt_muet,ijkc) = one6th*tv(tv_mixt_muet,ijkc)
137 tdv(dv_turb_cdyn,ijkc)= one6th*tdv(dv_turb_cdyn,ijkc)
144 rprt = 1._rfreal/region%mixtInput%prTurb
145 indcp = region%mixtInput%indCp
146 muet => region%turb%mueT
147 bmuet => region%turb%bMueT
150 tdv => region%turb%dv
155 tv(tv_mixt_muet,:) = 0._rfreal
157 DO ift = 1,region%grid%nFaces
158 ic0 = region%grid%f2c(1,ift)
159 ic1 = region%grid%f2c(2,ift)
160 tv(tv_mixt_muet,ic0) = tv(tv_mixt_muet,ic0) + muet(diri,ift)
161 tv(tv_mixt_muet,ic1) = tv(tv_mixt_muet,ic1) + muet(diri,ift)
164 DO ipatch = 1,region%grid%nPatches
168 DO ifl = 1,region%patches(ipatch)%nBFaces
169 ic0 = region%patches(ipatch)%bf2c(ifl)
170 tv(tv_mixt_muet,ic0) = tv(tv_mixt_muet,ic0) + bmuet(diri,ifg)
175 DO ic = 1,region%grid%nCells
176 ict = region%grid%cellGlob2Loc(1,
ic)
177 icl = region%grid%cellGlob2Loc(2,
ic)
179 CASE ( cell_type_tet )
181 c2f => region%grid%tet2f
182 CASE ( cell_type_hex )
184 c2f => region%grid%hex2f
185 CASE ( cell_type_pri )
187 c2f => region%grid%pri2f
188 CASE ( cell_type_pyr )
190 c2f => region%grid%pyr2f
192 CALL
errorstop(global,err_reached_default,__line__)
195 tv( tv_mixt_muet,
ic) = tv( tv_mixt_muet,
ic)/nfacespercell
196 tdv(dv_turb_cdyn,
ic) = tdv(dv_turb_cdyn,
ic)/nfacespercell
217 ijkc = indijk(
i ,
j ,
k ,icoff,ijcoff)
220 DO ic = 1,region%grid%nCells
223 tv(tv_mixt_muet,ijkc) =
max( tv(tv_mixt_muet,ijkc), 0._rfreal )
224 cpprt = gv(gv_mixt_cp,ijkc*indcp)*rprt
225 tv(tv_mixt_tcot,ijkc) = cpprt*tv(tv_mixt_muet,ijkc)
**********************************************************************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
**********************************************************************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 kpcbeg
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
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 ic
**********************************************************************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 jpcbeg
**********************************************************************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 ipcend
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
**********************************************************************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 ipcbeg
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 jpcend
**********************************************************************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 turb_gettvcell(region)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
subroutine rflo_getdimensphys(region, iLev, ipcbeg, ipcend, jpcbeg, jpcend, kpcbeg, kpcend)