75 TYPE(t_region
),
TARGET :: region
78 CHARACTER(CHRLEN) :: rcsidentstring
80 TYPE(t_turb),
POINTER :: turb
82 INTEGER :: ilev, turbmodel, modelclass
85 INTEGER :: icoff, ijcoff,inoff, ijnoff, ibc, iec, ibn, ien, gradindx(9)
87 REAL(RFREAL),
POINTER ::
gradi(:,:),
gradj(:,:), gradk(:,:)
91 rcsidentstring =
'$RCSfile: TURB_coViscousFluxesFlo.F90,v $'
93 global => region%global
95 'TURB_coViscousFluxesFlo.F90' )
99 ilev = region%currLevel
114 turbmodel = region%mixtInput%turbModel
115 modelclass= region%turbInput%modelClass
116 turb => region%levels(ilev)%turb
120 gradi => region%levels(ilev)%mixt%gradi
121 gradj => region%levels(ilev)%mixt%gradj
122 gradk => region%levels(ilev)%mixt%gradk
124 gradindx(1) = gr_mixt_ux
125 gradindx(2) = gr_mixt_vx
126 gradindx(3) = gr_mixt_wx
127 gradindx(4) = gr_mixt_uy
128 gradindx(5) = gr_mixt_vy
129 gradindx(6) = gr_mixt_wy
130 gradindx(7) = gr_mixt_uz
131 gradindx(8) = gr_mixt_vz
132 gradindx(9) = gr_mixt_wz
134 ALLOCATE( turb%mISij(tensor_symm_nelm,ibn:ien),stat=errorflag )
135 ALLOCATE( turb%mJSij(tensor_symm_nelm,ibn:ien),stat=errorflag )
136 ALLOCATE( turb%mKSij(tensor_symm_nelm,ibn:ien),stat=errorflag )
137 global%error = errorflag
138 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
140 CALL turb_calcstrainrate( region,ibn,ien,gradindx,
gradi,
gradj,gradk, &
141 turb%mISij,turb%mJSij,turb%mKSij )
145 IF (region%mixtInput%moveGrid)
THEN
146 IF (region%irkStep == 1)
THEN
153 IF (modelclass == model_les)
THEN
154 ALLOCATE( turb%mueT(diri:dirk,ibn:ien),stat=errorflag )
155 ALLOCATE( turb%trace(ibn:ien),stat=errorflag )
156 global%error = errorflag
157 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
159 turb%mueT = 0._rfreal
160 turb%trace = 0._rfreal
166 IF (turbmodel==turb_model_fixsmag)
THEN
169 ELSEIF ((turbmodel==turb_model_dynsmag) .OR. &
170 (turbmodel==turb_model_dynmixd))
THEN
173 ALLOCATE( turb%fISij(tensor_symm_nelm,ibn:ien),stat=errorflag )
174 ALLOCATE( turb%fJSij(tensor_symm_nelm,ibn:ien),stat=errorflag )
175 ALLOCATE( turb%fKSij(tensor_symm_nelm,ibn:ien),stat=errorflag )
176 global%error = errorflag
177 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
183 IF (turbmodel==turb_model_dynsmag)
THEN
185 ELSEIF (turbmodel==turb_model_dynmixd)
THEN
190 DEALLOCATE( turb%fISij,turb%fJSij,turb%fKSij )
192 ELSEIF (turbmodel==turb_model_scalsim)
THEN
195 ELSEIF ((turbmodel==turb_model_sa).OR. &
196 (turbmodel==turb_model_dessa).OR. &
197 (turbmodel==turb_model_hdessa))
THEN
203 ALLOCATE( turb%tv(tvt_rans_nelm,ibc:iec),stat=errorflag )
204 global%error = errorflag
205 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
212 DEALLOCATE( turb%tv )
220 DEALLOCATE( turb%mISij,turb%mJSij,turb%mKSij )
222 IF (modelclass == model_les)
THEN
227 DEALLOCATE( turb%mueT,turb%trace )
248 IF ((turbmodel==turb_model_fixsmag) .OR. &
249 (turbmodel==turb_model_dynsmag) .OR. &
250 (turbmodel==turb_model_dynmixd))
THEN
257 IF (((turbmodel==turb_model_scalsim) .OR. &
258 (turbmodel==turb_model_dynsmag) .OR. &
259 (turbmodel==turb_model_dynmixd)) .AND. &
260 (region%turbInput%filterType == filtype_nonunif))
THEN
262 ALLOCATE( turb%workI(2,ibn:ien),stat=errorflag )
263 ALLOCATE( turb%workJ(2,ibn:ien),stat=errorflag )
264 ALLOCATE( turb%workK(2,ibn:ien),stat=errorflag )
265 global%error = errorflag
266 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
271 DEALLOCATE( turb%workI,turb%workJ,turb%workK )
276 DO ipatch=1,region%nPatches
277 patch => region%levels(ilev)%patches(ipatch)
280 IF (
patch%bcType>=bc_noslipwall .AND. &
281 patch%bcType<=bc_noslipwall+bc_range)
THEN
282 IF (
patch%valBola%switches(wlm_input_model) /= wlm_model_nomodel)
THEN
subroutine turb_visfluxeddy(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 idcend
subroutine turb_coviscousfluxes(region)
subroutine turb_vfluxhybrid(region)
subroutine registerfunction(global, funName, fileName)
subroutine turb_lesfluxscalsim(region, ibn, ien)
subroutine turb_flofacewidth(region)
subroutine turb_getmodelstresscell(region)
subroutine turb_flowlmmetric(region, patch)
**********************************************************************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 jdnbeg
**********************************************************************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 idnend
subroutine rflo_getnodeoffset(region, iLev, iNodeOffset, ijNodeOffset)
**********************************************************************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 jdnend
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 idnbeg
subroutine turb_lesmovegrid
**********************************************************************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 turb_flolesgencoff(region)
subroutine turb_ranssageteddyvis(region)
subroutine turb_ranstotaltv(region, indxMu, indxTCo, tvt)
subroutine turb_lesgeteddyvis(region, ibc, iec, ibn, ien)
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
subroutine turb_lesfluxfixsmag(region, ibn, ien)
subroutine turb_ranssavisflux(region)
subroutine turb_flofacevolume(region, ijk)
**********************************************************************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 iEndG gradi(:,:)
**********************************************************************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
subroutine rflo_viscousflux(region, indxMu, indxTCo, tv)
**********************************************************************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 rflo_getdimensdummynodes(region, iLev, idnbeg, idnend, jdnbeg, jdnend, kdnbeg, kdnend)
subroutine turb_gettvcell(region)
subroutine errorstop(global, errorCode, errorLine, addMessage)
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 kdnbeg
subroutine turb_flolesgencocc(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 iEndG gradj(:,:)
subroutine rflo_calcgradvector(region, iBegV, iEndV, iBegG, iEndG, var, gradi, gradj, gradk)