53 inoff,ijnoff,ndel,idbeg,idend,fvar,filtvar )
66 TYPE(t_region
),
TARGET :: region
68 INTEGER :: ndel(diri:dirk),idbeg,idend
69 REAL(RFREAL),
POINTER :: fvar(:,:),filtvar(:,:)
72 INTEGER ::
i,
j,
k, l, ijkn, ijknb, ijkne
75 CHARACTER(CHRLEN) :: rcsidentstring
77 TYPE(t_turb) ,
POINTER :: turb
80 REAL(RFREAL) :: tmpb(idbeg:idend),tmpe(idbeg:idend)
81 REAL(RFREAL),
POINTER :: ffcof(:,:)
85 rcsidentstring =
'$RCSfile: TURB_floLesGenFiltFFK.F90,v $'
87 global => region%global
89 'TURB_floLesGenFiltFFK.F90' )
93 ilev = region%currLevel
94 turb => region%levels(ilev)%turb
98 IF (ndel(dirk)==filwidth_zero)
THEN
104 ELSEIF ((ndel(dirk)==filwidth_one) .OR. &
105 (ndel(dirk)==filwidth_two))
THEN
107 IF (ndel(dirk)==filwidth_one)
THEN
109 ffcof => turb%ffCofk1I
110 ELSEIF (ijk==dirj)
THEN
111 ffcof => turb%ffCofk1J
112 ELSEIF (ijk==dirk)
THEN
113 ffcof => turb%ffCofk1K
115 ELSEIF (ndel(dirk)==filwidth_two)
THEN
117 ffcof => turb%ffCofk2I
118 ELSEIF (ijk==dirj)
THEN
119 ffcof => turb%ffCofk2J
120 ELSEIF (ijk==dirk)
THEN
121 ffcof => turb%ffCofk2K
130 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
132 filtvar(l,ijkn)=ffcof(1,ijkn)*fvar(l,ijkn-ijnoff) + &
133 ffcof(2,ijkn)*fvar(l,ijkn) + &
134 ffcof(3,ijkn)*fvar(l,ijkn+ijnoff)
140 ELSEIF (ndel(dirk)==filwidth_four)
THEN
143 ffcof => turb%ffCofk4I
144 ELSEIF (ijk==dirj)
THEN
145 ffcof => turb%ffCofk4J
146 ELSEIF (ijk==dirk)
THEN
147 ffcof => turb%ffCofk4K
155 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
157 filtvar(l,ijkn)=ffcof(1,ijkn)*fvar(l,ijkn-2*ijnoff) + &
158 ffcof(2,ijkn)*fvar(l,ijkn-ijnoff) + &
159 ffcof(3,ijkn)*fvar(l,ijkn) + &
160 ffcof(4,ijkn)*fvar(l,ijkn+ijnoff) + &
161 ffcof(5,ijkn)*fvar(l,ijkn+2*ijnoff)
171 ijknb = indijk(
i ,
j ,
kbeg ,inoff,ijnoff)
172 ijkne = indijk(
i ,
j ,kend ,inoff,ijnoff)
174 tmpb(l) = 2._rfreal*fvar(l,ijknb-ijnoff)-fvar(l,ijknb)
175 tmpe(l) = 2._rfreal*fvar(l,ijkne+ijnoff)-fvar(l,ijkne)
176 filtvar(l,ijknb)=ffcof(1,ijknb)*tmpb(l) + &
177 ffcof(2,ijknb)*fvar(l,ijknb-ijnoff) + &
178 ffcof(3,ijknb)*fvar(l,ijknb) + &
179 ffcof(4,ijknb)*fvar(l,ijknb+ijnoff) + &
180 ffcof(5,ijknb)*fvar(l,ijknb+2*ijnoff)
181 filtvar(l,ijkne)=ffcof(1,ijkne)*fvar(l,ijkne-2*ijnoff)+ &
182 ffcof(2,ijkne)*fvar(l,ijkne-ijnoff) + &
183 ffcof(3,ijkne)*fvar(l,ijkne) + &
184 ffcof(4,ijkne)*fvar(l,ijkne+ijnoff) + &
185 ffcof(5,ijkne)*tmpe(l)
**********************************************************************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 turb_flolesgenfiltffk(region, ijk, ibeg, iend, jbeg, jend, kbeg, kend, iNOff, ijNOff, nDel, idBeg, idEnd, fVar, filtVar)
**********************************************************************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
**********************************************************************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)