77 TYPE(t_region
) :: region
84 CHARACTER(CHRLEN) :: rcsidentstring
87 INTEGER :: ilev, lbound, indxb, indxe, jndxb, jndxe
89 INTEGER :: n1, n2, ioff, ijbeg, ijend, errorflag, ijkval
91 REAL(RFREAL),
POINTER :: vals(:,:)
92 REAL(RFREAL),
ALLOCATABLE :: tauwalltmp(:,:)
96 rcsidentstring =
'$RCSfile: TURB_WlmTauWallMapping.F90,v $ $Revision: 1.4 $'
98 global => region%global
100 'TURB_WlmTauWallMapping.F90' )
104 vals =>
patch%valBola%vals
107 ilev = region%currLevel
108 lbound =
patch%lbound
117 ijbeg = indij( 0, 0,ioff)
118 ijend = indij(n1,n2,ioff)
122 ijend =
patch%nBFaces
125 ALLOCATE( tauwalltmp(ijbeg:ijend,tensor_all_nelm),stat=errorflag )
126 global%error = errorflag
127 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
132 IF (lbound==1 .OR. lbound==2)
THEN
137 ELSEIF (lbound==3 .OR. lbound==4)
THEN
149 IF (n1/=(indxe-indxb) .OR. n2/=(jndxe-jndxb))
THEN
150 CALL
errorstop( global,err_patch_dimens,__line__, &
151 'Wlm patch dimension inconsistent' )
157 ijkval = indij(
i-indxb ,
j-jndxb ,indxe-indxb+1)
166 tauwalltmp(ijkval,a11) = &
167 vals(ijkval,wlm_vals_xix)*vals(ijkval,wlm_vals_tauux) + &
168 vals(ijkval,wlm_vals_etx)*vals(ijkval,wlm_vals_tauuy) + &
169 vals(ijkval,wlm_vals_ztx)*vals(ijkval,wlm_vals_tauuz)
171 tauwalltmp(ijkval,a12) = &
172 vals(ijkval,wlm_vals_xiy)*vals(ijkval,wlm_vals_tauux) + &
173 vals(ijkval,wlm_vals_ety)*vals(ijkval,wlm_vals_tauuy) + &
174 vals(ijkval,wlm_vals_zty)*vals(ijkval,wlm_vals_tauuz)
176 tauwalltmp(ijkval,a13) = &
177 vals(ijkval,wlm_vals_xiz)*vals(ijkval,wlm_vals_tauux) + &
178 vals(ijkval,wlm_vals_etz)*vals(ijkval,wlm_vals_tauuy) + &
179 vals(ijkval,wlm_vals_ztz)*vals(ijkval,wlm_vals_tauuz)
181 tauwalltmp(ijkval,a21) = &
182 vals(ijkval,wlm_vals_xix)*vals(ijkval,wlm_vals_tauvx) + &
183 vals(ijkval,wlm_vals_etx)*vals(ijkval,wlm_vals_tauvy) + &
184 vals(ijkval,wlm_vals_ztx)*vals(ijkval,wlm_vals_tauvz)
186 tauwalltmp(ijkval,a22) = &
187 vals(ijkval,wlm_vals_xiy)*vals(ijkval,wlm_vals_tauvx) + &
188 vals(ijkval,wlm_vals_ety)*vals(ijkval,wlm_vals_tauvy) + &
189 vals(ijkval,wlm_vals_zty)*vals(ijkval,wlm_vals_tauvz)
191 tauwalltmp(ijkval,a23) = &
192 vals(ijkval,wlm_vals_xiz)*vals(ijkval,wlm_vals_tauvx) + &
193 vals(ijkval,wlm_vals_etz)*vals(ijkval,wlm_vals_tauvy) + &
194 vals(ijkval,wlm_vals_ztz)*vals(ijkval,wlm_vals_tauvz)
196 tauwalltmp(ijkval,a31) = &
197 vals(ijkval,wlm_vals_xix)*vals(ijkval,wlm_vals_tauwx) + &
198 vals(ijkval,wlm_vals_etx)*vals(ijkval,wlm_vals_tauwy) + &
199 vals(ijkval,wlm_vals_ztx)*vals(ijkval,wlm_vals_tauwz)
201 tauwalltmp(ijkval,a32) = &
202 vals(ijkval,wlm_vals_xiy)*vals(ijkval,wlm_vals_tauwx) + &
203 vals(ijkval,wlm_vals_ety)*vals(ijkval,wlm_vals_tauwy) + &
204 vals(ijkval,wlm_vals_zty)*vals(ijkval,wlm_vals_tauwz)
206 tauwalltmp(ijkval,a33) = &
207 vals(ijkval,wlm_vals_xiz)*vals(ijkval,wlm_vals_tauwx) + &
208 vals(ijkval,wlm_vals_etz)*vals(ijkval,wlm_vals_tauwy) + &
209 vals(ijkval,wlm_vals_ztz)*vals(ijkval,wlm_vals_tauwz)
213 vals(ijkval,wlm_vals_tauux) = &
214 vals(ijkval,wlm_vals_xix)*tauwalltmp(ijkval,a11) + &
215 vals(ijkval,wlm_vals_etx)*tauwalltmp(ijkval,a21) + &
216 vals(ijkval,wlm_vals_ztx)*tauwalltmp(ijkval,a31)
218 vals(ijkval,wlm_vals_tauuy) = &
219 vals(ijkval,wlm_vals_xix)*tauwalltmp(ijkval,a12) + &
220 vals(ijkval,wlm_vals_etx)*tauwalltmp(ijkval,a22) + &
221 vals(ijkval,wlm_vals_ztx)*tauwalltmp(ijkval,a32)
223 vals(ijkval,wlm_vals_tauuz) = &
224 vals(ijkval,wlm_vals_xix)*tauwalltmp(ijkval,a13) + &
225 vals(ijkval,wlm_vals_etx)*tauwalltmp(ijkval,a23) + &
226 vals(ijkval,wlm_vals_ztx)*tauwalltmp(ijkval,a33)
228 vals(ijkval,wlm_vals_tauvx) = &
229 vals(ijkval,wlm_vals_xiy)*tauwalltmp(ijkval,a11) + &
230 vals(ijkval,wlm_vals_ety)*tauwalltmp(ijkval,a21) + &
231 vals(ijkval,wlm_vals_zty)*tauwalltmp(ijkval,a31)
233 vals(ijkval,wlm_vals_tauvy) = &
234 vals(ijkval,wlm_vals_xiy)*tauwalltmp(ijkval,a12) + &
235 vals(ijkval,wlm_vals_ety)*tauwalltmp(ijkval,a22) + &
236 vals(ijkval,wlm_vals_zty)*tauwalltmp(ijkval,a32)
238 vals(ijkval,wlm_vals_tauvz) = &
239 vals(ijkval,wlm_vals_xiy)*tauwalltmp(ijkval,a13) + &
240 vals(ijkval,wlm_vals_ety)*tauwalltmp(ijkval,a23) + &
241 vals(ijkval,wlm_vals_zty)*tauwalltmp(ijkval,a33)
243 vals(ijkval,wlm_vals_tauwx) = &
244 vals(ijkval,wlm_vals_xiz)*tauwalltmp(ijkval,a11) + &
245 vals(ijkval,wlm_vals_etz)*tauwalltmp(ijkval,a21) + &
246 vals(ijkval,wlm_vals_ztz)*tauwalltmp(ijkval,a31)
248 vals(ijkval,wlm_vals_tauwy) = &
249 vals(ijkval,wlm_vals_xiz)*tauwalltmp(ijkval,a12) + &
250 vals(ijkval,wlm_vals_etz)*tauwalltmp(ijkval,a22) + &
251 vals(ijkval,wlm_vals_ztz)*tauwalltmp(ijkval,a32)
253 vals(ijkval,wlm_vals_tauwz) = &
254 vals(ijkval,wlm_vals_xiz)*tauwalltmp(ijkval,a13) + &
255 vals(ijkval,wlm_vals_etz)*tauwalltmp(ijkval,a23) + &
256 vals(ijkval,wlm_vals_ztz)*tauwalltmp(ijkval,a33)
273 DEALLOCATE( tauwalltmp )
**********************************************************************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 registerfunction(global, funName, fileName)
subroutine rflo_getpatchindices(region, patch, iLev, ibeg, iend, jbeg, jend, kbeg, kend)
subroutine turb_wlmtauwallmapping(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 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 knode jend
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)