70 TYPE(t_region
) :: region
77 CHARACTER(CHRLEN) :: rcsidentstring
81 INTEGER :: ijbeg, ijend, indcp, bcopt, distrib, ijkval, ijkc, ijkce
82 REAL(RFREAL) :: twall, tauwall, abvel, ratio, prt, cp, utau
83 REAL(RFREAL),
POINTER :: dv(:,:), gv(:,:), vals(:,:), mvals(:,:)
86 INTEGER :: n1, n2, ioff, icoff, ijcoff
87 INTEGER :: ilev,
idir,
jdir,
kdir, iedge, jedge, kedge, nedge, neta
90 REAL(RFREAL),
POINTER :: cv(:,:)
95 rcsidentstring =
'$RCSfile: TURB_WlmReyAnalogy.F90,v $ $Revision: 1.6 $'
97 global => region%global
99 'TURB_WlmReyAnalogy.F90' )
103 bcopt =
patch%mixt%switches(bcswi_noslip_adiabat)
104 mvals =>
patch%mixt%vals
105 vals =>
patch%valBola%vals
111 ijbeg = indij( 0, 0,ioff)
112 ijend = indij(n1,n2,ioff)
116 ijend =
patch%nBFaces
121 IF (bcopt == bcopt_adiabat)
THEN
122 DO ijkval=ijbeg,ijend
123 vals(ijkval,wlm_vals_hflux) = 0._rfreal
131 ilev = region%currLevel
133 dv => region%levels(ilev)%mixt%dv
134 gv => region%levels(ilev)%mixt%gv
135 indcp = region%levels(ilev)%mixt%indCp
136 prt = region%levels(ilev)%mixt%prTurb
142 indcp = region%mixtInput%indCp
143 prt = region%mixtInput%prTurb
145 ratio = prt**(-0.66_rfreal)
146 distrib =
patch%mixt%distrib
153 neta = abs(
idir)*region%levels(ilev)%grid%ipc + &
154 abs(
jdir)*region%levels(ilev)%grid%jpc + &
155 abs(
kdir)*region%levels(ilev)%grid%kpc
156 nedge =
min( 8,neta )
170 ijkc = indijk(
i ,
j ,
k ,icoff,ijcoff)
171 ijkce = indijk(
i+iedge,
j+jedge,
k+kedge,icoff,ijcoff)
173 abvel =
sqrt( dv(dv_mixt_uvel,ijkce)**2+dv(dv_mixt_vvel,ijkce)**2+ &
174 dv(dv_mixt_wvel,ijkce)**2 )
178 IF (region%mixt%cvState /= cv_mixt_state_cons) &
179 CALL
errorstop(global,err_reached_default,__line__)
188 abvel =
sqrt( cv(cv_mixt_xmom,ijkce)**2+cv(cv_mixt_ymom,ijkce)**2+ &
189 cv(cv_mixt_zmom,ijkce)**2 )/cv(cv_mixt_dens,ijkce)
191 twall = mvals(bcdat_noslip_twall,distrib*ijkval)
192 cp = gv(gv_mixt_cp,ijkc*indcp)
193 tauwall= vals(ijkval,wlm_vals_hflux)
194 vals(ijkval,wlm_vals_hflux) = ratio*tauwall*cp* &
195 (twall-dv(dv_mixt_temp,ijkce))/abvel
**********************************************************************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 turb_wlmreyanalogy(region, patch)
subroutine registerfunction(global, funName, fileName)
subroutine rflo_getpatchindices(region, patch, iLev, ibeg, iend, jbeg, jend, kbeg, kend)
**********************************************************************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
**********************************************************************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)
Vector_n min(const Array_n_const &v1, const Array_n_const &v2)
**********************************************************************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
subroutine errorstop(global, errorCode, errorLine, addMessage)
**********************************************************************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)