61 TYPE(t_region
) :: region
64 INTEGER ::
i,
j,
k, l,
ic, in, ipatch
67 CHARACTER(CHRLEN) :: rcsidentstring
70 REAL(RFREAL),
POINTER :: muet(:,:),siij(:,:), sjij(:,:), skij(:,:), sv(:,:)
74 INTEGER :: ilev,icoff,ijcoff,inoff,ijnoff,ijkc,ijkci,ijkn,ijkni,ijknj,ijknk
75 REAL(RFREAL) :: one6th
78 INTEGER :: ic0, ic1, ict, icl, ifg, ifgbeg, nfacespercell
79 INTEGER,
POINTER :: c2f(:,:,:)
80 REAL(RFREAL),
POINTER :: bmuet(:,:), bsiij(:,:)
85 rcsidentstring =
'$RCSfile: TURB_GetModelStressCell.F90,v $'
87 global => region%global
89 'TURB_GetModelStressCell.F90' )
94 one6th = 1._rfreal/6._rfreal
95 ilev = region%currLevel
106 muet => region%levels(ilev)%turb%mueT
107 siij => region%levels(ilev)%turb%mISij
108 sjij => region%levels(ilev)%turb%mJSij
109 skij => region%levels(ilev)%turb%mKSij
110 sv => region%levels(ilev)%turb%sv
118 ijkc = indijk(
i ,
j ,
k ,icoff,ijcoff)
119 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
122 ijknk = ijkn + ijnoff
126 muet(diri,ijkn)*siij(l,ijkn)+muet(diri,ijkni)*siij(l,ijkni)+ &
127 muet(dirj,ijkn)*sjij(l,ijkn)+muet(dirj,ijknj)*siij(l,ijknj)+ &
128 muet(dirk,ijkn)*skij(l,ijkn)+muet(dirk,ijknk)*siij(l,ijknk)
129 sv(l,ijkc) = one6th*sv(l,ijkc)
137 muet => region%turb%mueT
138 bmuet => region%turb%bMueT
139 siij => region%turb%mISij
140 bsiij => region%turb%bmISij
147 DO in = 1,region%grid%nFaces
148 ic0 = region%grid%f2c(1,in)
149 ic1 = region%grid%f2c(2,in)
151 sv(l,ic0) = sv(l,ic0) + muet(diri,in)*siij(l,in)
152 sv(l,ic1) = sv(l,ic1) + muet(diri,in)*siij(l,in)
156 DO ipatch = 1,region%grid%nPatches
159 DO in = 1,region%patches(ipatch)%nBFaces
160 ic0 = region%patches(ipatch)%bf2c(in)
163 sv(l,ic0) = sv(l,ic0) + bmuet(diri,ifg)*bsiij(l,ifg)
168 DO ic = 1,region%grid%nCells
169 ict = region%grid%cellGlob2Loc(1,
ic)
170 icl = region%grid%cellGlob2Loc(2,
ic)
172 CASE ( cell_type_tet )
174 c2f => region%grid%tet2f
175 CASE ( cell_type_hex )
177 c2f => region%grid%hex2f
178 CASE ( cell_type_pri )
180 c2f => region%grid%pri2f
181 CASE ( cell_type_pyr )
183 c2f => region%grid%pyr2f
185 CALL
errorstop(global,err_reached_default,__line__)
189 sv(l,
ic) = sv(l,
ic)/nfacespercell
201 ijkn = indijk(
ipcbeg ,
j ,
k ,inoff,ijnoff)
203 ijkc = indijk(
i ,
j ,
k ,icoff,ijcoff)
204 ijkci = indijk(2*
ipcbeg-
i-1 ,
j ,
k ,icoff,ijcoff)
207 sv(l,ijkc) = 2._rfreal*muet(diri,ijkn)*siij(l,ijkn) - &
211 ijkn = indijk(
ipcend+1 ,
j ,
k ,inoff,ijnoff)
213 ijkc = indijk(
i ,
j ,
k ,icoff,ijcoff)
214 ijkci = indijk(2*
ipcend-
i+1 ,
j ,
k ,icoff,ijcoff)
217 sv(l,ijkc) = 2._rfreal*muet(diri,ijkn)*siij(l,ijkn) - &
226 ijkn = indijk(
i ,
jpcbeg ,
k ,inoff,ijnoff)
228 ijkc = indijk(
i ,
j ,
k ,icoff,ijcoff)
229 ijkci = indijk(
i ,2*
jpcbeg-
j-1 ,
k ,icoff,ijcoff)
232 sv(l,ijkc) = 2._rfreal*muet(dirj,ijkn)*sjij(l,ijkn) - &
236 ijkn = indijk(
i ,
jpcend+1 ,
k ,inoff,ijnoff)
238 ijkc = indijk(
i ,
j ,
k ,icoff,ijcoff)
239 ijkci = indijk(
i ,2*
jpcend-
j+1 ,
k ,icoff,ijcoff)
242 sv(l,ijkc) = 2._rfreal*muet(dirj,ijkn)*sjij(l,ijkn) - &
251 ijkn = indijk(
i ,
j ,
kpcbeg ,inoff,ijnoff)
253 ijkc = indijk(
i ,
j ,
k ,icoff,ijcoff)
254 ijkci = indijk(
i ,
j ,2*
kpcbeg-
k-1 ,icoff,ijcoff)
257 sv(l,ijkc) = 2._rfreal*muet(dirk,ijkn)*skij(l,ijkn) - &
261 ijkn = indijk(
i ,
j ,kpcend+1 ,inoff,ijnoff)
263 ijkc = indijk(
i ,
j ,
k ,icoff,ijcoff)
264 ijkci = indijk(
i ,
j ,2*kpcend-
k+1 ,icoff,ijcoff)
267 sv(l,ijkc) = 2._rfreal*muet(dirk,ijkn)*skij(l,ijkn) - &
**********************************************************************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
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
subroutine turb_getmodelstresscell(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 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 errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
subroutine rflo_getdimensphys(region, iLev, ipcbeg, ipcend, jpcbeg, jpcend, kpcbeg, kpcend)