56 kend,minidx,maxidx,segid,inoff,ijnoff,ds,segm, &
70 INTEGER :: segid,inoff,ijnoff
71 REAL(RFREAL) :: ds(minidx:maxidx)
72 REAL(RFREAL),
POINTER :: segm(:,:),ffcofa(:,:),ffcofb(:,:)
75 INTEGER ::
i,
j,
k, ijkn
78 CHARACTER(CHRLEN) :: rcsidentstring
79 REAL(RFREAL) :: rwidth1, rwidth2, fac1, fac2, fac3
83 rcsidentstring =
'$RCSfile: TURB_floLesGenCoFCUtil.F90,v $'
86 'TURB_floLesGenCoFCUtil.F90' )
90 IF (filtdir==diri)
THEN
94 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
95 ds(
i) = segm(segid,ijkn)
102 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
103 rwidth1= 1._rfreal/(ds(
i-1)+ds(
i))
104 rwidth2= 1._rfreal/(ds(
i+1)+ds(
i))
106 fac2 = ds(
i-1)*rwidth1+ds(
i+1)*rwidth2+2._rfreal
108 ffcofa(1,ijkn) = 0.25_rfreal*fac1
109 ffcofa(2,ijkn) = 0.25_rfreal*fac2
110 ffcofa(3,ijkn) = 0.25_rfreal*fac3
112 rwidth1= 1._rfreal/(ds(
i-1)+2._rfreal*ds(
i)+ds(
i+1))
113 fac1 = (ds(
i-1)+ds(
i))*rwidth1
114 fac3 = (ds(
i+1)+ds(
i))*rwidth1
115 ffcofb(1,ijkn) = 0.5_rfreal*fac1
116 ffcofb(2,ijkn) = 0.5_rfreal
117 ffcofb(3,ijkn) = 0.5_rfreal*fac3
122 ELSEIF (filtdir==dirj)
THEN
126 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
127 ds(
j) = segm(segid,ijkn)
134 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
135 rwidth1= 1._rfreal/(ds(
j-1)+ds(
j))
136 rwidth2= 1._rfreal/(ds(
j+1)+ds(
j))
138 fac2 = ds(
j-1)*rwidth1+ds(
j+1)*rwidth2+2._rfreal
140 ffcofa(1,ijkn) = 0.25_rfreal*fac1
141 ffcofa(2,ijkn) = 0.25_rfreal*fac2
142 ffcofa(3,ijkn) = 0.25_rfreal*fac3
144 rwidth1= 1._rfreal/(ds(
j-1)+2._rfreal*ds(
j)+ds(
j+1))
145 fac1 = (ds(
j-1)+ds(
j))*rwidth1
146 fac3 = (ds(
j+1)+ds(
j))*rwidth1
147 ffcofb(1,ijkn) = 0.5_rfreal*fac1
148 ffcofb(2,ijkn) = 0.5_rfreal
149 ffcofb(3,ijkn) = 0.5_rfreal*fac3
154 ELSEIF (filtdir==dirk)
THEN
158 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
159 ds(
k) = segm(segid,ijkn)
163 ds(kend+
k) = ds(kend)
166 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
167 rwidth1= 1._rfreal/(ds(
k-1)+ds(
k))
168 rwidth2= 1._rfreal/(ds(
k+1)+ds(
k))
170 fac2 = ds(
k-1)*rwidth1+ds(
k+1)*rwidth2+2._rfreal
172 ffcofa(1,ijkn) = 0.25_rfreal*fac1
173 ffcofa(2,ijkn) = 0.25_rfreal*fac2
174 ffcofa(3,ijkn) = 0.25_rfreal*fac3
176 rwidth1= 1._rfreal/(ds(
k-1)+2._rfreal*ds(
k)+ds(
k+1))
177 fac1 = (ds(
k-1)+ds(
k))*rwidth1
178 fac3 = (ds(
k+1)+ds(
k))*rwidth1
179 ffcofb(1,ijkn) = 0.5_rfreal*fac1
180 ffcofb(2,ijkn) = 0.5_rfreal
181 ffcofb(3,ijkn) = 0.5_rfreal*fac3
196 kend,minidx,maxidx,segid,inoff,ijnoff,ds,segm, &
205 #include "Indexing.h"
210 INTEGER :: segid,inoff,ijnoff
211 REAL(RFREAL) :: ds(minidx:maxidx)
212 REAL(RFREAL),
POINTER :: segm(:,:),ffcofa(:,:),ffcofb(:,:)
215 INTEGER ::
i,
j,
k, ijkn
218 CHARACTER(CHRLEN) :: rcsidentstring
219 REAL(RFREAL) :: rwidth1, fac1, fac2, fac3, fac4, fac5
223 rcsidentstring =
'$RCSfile: TURB_floLesGenCoFCUtil.F90,v $'
226 'TURB_floLesGenCoFCUtil.F90' )
230 IF (filtdir==diri)
THEN
234 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
235 ds(
i) = segm(segid,ijkn)
242 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
243 rwidth1= 1._rfreal/(ds(
i-1)+2._rfreal*ds(
i)+ds(
i+1))
244 fac1 = (ds(
i-1)+ds(
i))*rwidth1
245 fac3 = (ds(
i+1)+ds(
i))*rwidth1
246 ffcofa(1,ijkn) = 0.5_rfreal*fac1
247 ffcofa(2,ijkn) = 0.5_rfreal
248 ffcofa(3,ijkn) = 0.5_rfreal*fac3
250 rwidth1= 1._rfreal/ &
251 (ds(
i-2)+ds(
i+2)+2._rfreal*(ds(
i-1)+ds(
i)+ds(
i+1)))
252 fac1 = (ds(
i-2)+ds(
i-1))*rwidth1
253 fac2 = (ds(
i-2)+2._rfreal*ds(
i-1)+ds(
i))*rwidth1
254 fac3 = (ds(
i-1)+2._rfreal*ds(
i)+ds(
i+1))*rwidth1
255 fac4 = (ds(
i)+2._rfreal*ds(
i+1)+ds(
i+2))*rwidth1
256 fac5 = (ds(
i+1)+ds(
i+2))*rwidth1
257 ffcofb(1,ijkn) = 0.5_rfreal*fac1
258 ffcofb(2,ijkn) = 0.5_rfreal*fac2
259 ffcofb(3,ijkn) = 0.5_rfreal*fac3
260 ffcofb(4,ijkn) = 0.5_rfreal*fac4
261 ffcofb(5,ijkn) = 0.5_rfreal*fac5
266 ELSEIF (filtdir==dirj)
THEN
270 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
271 ds(
j) = segm(segid,ijkn)
278 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
279 rwidth1= 1._rfreal/(ds(
j-1)+2._rfreal*ds(
j)+ds(
j+1))
280 fac1 = (ds(
j-1)+ds(
j))*rwidth1
281 fac3 = (ds(
j+1)+ds(
j))*rwidth1
282 ffcofa(1,ijkn) = 0.5_rfreal*fac1
283 ffcofa(2,ijkn) = 0.5_rfreal
284 ffcofa(3,ijkn) = 0.5_rfreal*fac3
286 rwidth1= 1._rfreal/ &
287 (ds(
j-2)+ds(
j+2)+2._rfreal*(ds(
j-1)+ds(
j)+ds(
j+1)))
288 fac1 = (ds(
j-2)+ds(
j-1))*rwidth1
289 fac2 = (ds(
j-2)+2._rfreal*ds(
j-1)+ds(
j))*rwidth1
290 fac3 = (ds(
j-1)+2._rfreal*ds(
j)+ds(
j+1))*rwidth1
291 fac4 = (ds(
j)+2._rfreal*ds(
j+1)+ds(
j+2))*rwidth1
292 fac5 = (ds(
j+1)+ds(
j+2))*rwidth1
293 ffcofb(1,ijkn) = 0.5_rfreal*fac1
294 ffcofb(2,ijkn) = 0.5_rfreal*fac2
295 ffcofb(3,ijkn) = 0.5_rfreal*fac3
296 ffcofb(4,ijkn) = 0.5_rfreal*fac4
297 ffcofb(5,ijkn) = 0.5_rfreal*fac5
302 ELSEIF (filtdir==dirk)
THEN
306 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
307 ds(
k) = segm(segid,ijkn)
311 ds(kend+
k) = ds(kend)
314 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
315 rwidth1= 1._rfreal/(ds(
k-1)+2._rfreal*ds(
k)+ds(
k+1))
316 fac1 = (ds(
k-1)+ds(
k))*rwidth1
317 fac3 = (ds(
k+1)+ds(
k))*rwidth1
318 ffcofa(1,ijkn) = 0.5_rfreal*fac1
319 ffcofa(2,ijkn) = 0.5_rfreal
320 ffcofa(3,ijkn) = 0.5_rfreal*fac3
322 rwidth1= 1._rfreal/ &
323 (ds(
k-2)+ds(
k+2)+2._rfreal*(ds(
k-1)+ds(
k)+ds(
k+1)))
324 fac1 = (ds(
k-2)+ds(
k-1))*rwidth1
325 fac2 = (ds(
k-2)+2._rfreal*ds(
k-1)+ds(
k))*rwidth1
326 fac3 = (ds(
k-1)+2._rfreal*ds(
k)+ds(
k+1))*rwidth1
327 fac4 = (ds(
k)+2._rfreal*ds(
k+1)+ds(
k+2))*rwidth1
328 fac5 = (ds(
k+1)+ds(
k+2))*rwidth1
329 ffcofb(1,ijkn) = 0.5_rfreal*fac1
330 ffcofb(2,ijkn) = 0.5_rfreal*fac2
331 ffcofb(3,ijkn) = 0.5_rfreal*fac3
332 ffcofb(4,ijkn) = 0.5_rfreal*fac4
333 ffcofb(5,ijkn) = 0.5_rfreal*fac5
**********************************************************************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)
**********************************************************************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
subroutine turb_flolesgencofclo(global, filtDir, ibeg, iend, jbeg, jend, kbeg, kend, minIdx, maxIdx, segId, iNOff, ijNOff, ds, segm, ffCofA, ffCofB)
subroutine turb_flolesgencofchi(global, filtDir, ibeg, iend, jbeg, jend, kbeg, kend, minIdx, maxIdx, segId, iNOff, ijNOff, ds, segm, ffCofA, ffCofB)
**********************************************************************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 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)