53 icoff,ijcoff,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, ijkc, ijkcb, ijkce, ijkcb1, ijkce1
75 CHARACTER(CHRLEN) :: rcsidentstring
77 TYPE(t_turb) ,
POINTER :: turb
80 REAL(RFREAL) :: tmpb(idbeg:idend,2),tmpe(idbeg:idend,2)
81 REAL(RFREAL),
POINTER :: cccof(:,:)
85 rcsidentstring =
'$RCSfile: TURB_floLesGenFiltCCJ.F90,v $'
87 global => region%global
89 'TURB_floLesGenFiltCCJ.F90' )
93 ilev = region%currLevel
94 turb => region%levels(ilev)%turb
98 IF (ndel(dirj)==filwidth_zero)
THEN
102 filtvar(idbeg:idend,:)=fvar(idbeg:idend,:)
105 ELSEIF ((ndel(dirj)==filwidth_one) .OR. &
106 (ndel(dirj)==filwidth_two))
THEN
108 IF (ndel(dirj)==filwidth_one)
THEN
109 cccof => turb%ccCofj1
110 ELSEIF (ndel(dirj)==filwidth_two)
THEN
111 cccof => turb%ccCofj2
120 ijkc = indijk(
i ,
j ,
k ,icoff,ijcoff)
122 filtvar(l,ijkc)=cccof(1,ijkc)*fvar(l,ijkc-icoff) + &
123 cccof(2,ijkc)*fvar(l,ijkc) + &
124 cccof(3,ijkc)*fvar(l,ijkc+icoff)
130 ijkcb = indijk(
i ,
jbeg ,
k ,icoff,ijcoff)
131 ijkce = indijk(
i ,
jend ,
k ,icoff,ijcoff)
134 tmpb(l,1)=2._rfreal*fvar(l,ijkcb)-fvar(l,ijkcb+icoff)
135 tmpe(l,1)=2._rfreal*fvar(l,ijkce)-fvar(l,ijkce-icoff)
136 filtvar(l,ijkcb)=cccof(1,ijkcb)*tmpb(l,1) + &
137 cccof(2,ijkcb)*fvar(l,ijkcb) + &
138 cccof(3,ijkcb)*fvar(l,ijkcb+icoff)
139 filtvar(l,ijkce)=cccof(1,ijkce)*fvar(l,ijkce-icoff) + &
140 cccof(2,ijkce)*fvar(l,ijkce) + &
141 cccof(3,ijkce)*tmpe(l,1)
146 ELSEIF (ndel(dirj)==filwidth_four)
THEN
148 cccof => turb%ccCofj4
156 ijkc = indijk(
i ,
j ,
k ,icoff,ijcoff)
158 filtvar(l,ijkc)=cccof(1,ijkc)*fvar(l,ijkc-2*icoff) + &
159 cccof(2,ijkc)*fvar(l,ijkc-icoff) + &
160 cccof(3,ijkc)*fvar(l,ijkc) + &
161 cccof(4,ijkc)*fvar(l,ijkc+icoff) + &
162 cccof(5,ijkc)*fvar(l,ijkc+2*icoff)
168 ijkcb = indijk(
i ,
jbeg ,
k ,icoff,ijcoff)
169 ijkce = indijk(
i ,
jend ,
k ,icoff,ijcoff)
170 ijkcb1= indijk(
i ,
jbeg+1 ,
k ,icoff,ijcoff)
171 ijkce1= indijk(
i ,
jend-1 ,
k ,icoff,ijcoff)
174 tmpb(l,1)=2._rfreal*fvar(l,ijkcb)-fvar(l,ijkcb+icoff)
175 tmpe(l,1)=2._rfreal*fvar(l,ijkce)-fvar(l,ijkce-icoff)
176 filtvar(l,ijkcb1)=cccof(1,ijkcb1)*tmpb(l,1) + &
177 cccof(2,ijkcb1)*fvar(l,ijkcb1-icoff) + &
178 cccof(3,ijkcb1)*fvar(l,ijkcb1) + &
179 cccof(4,ijkcb1)*fvar(l,ijkcb1+icoff) + &
180 cccof(5,ijkcb1)*fvar(l,ijkcb1+2*icoff)
181 filtvar(l,ijkce1)=cccof(1,ijkce1)*fvar(l,ijkce1-2*icoff) + &
182 cccof(2,ijkce1)*fvar(l,ijkce1-icoff) + &
183 cccof(3,ijkce1)*fvar(l,ijkce1) + &
184 cccof(4,ijkce1)*fvar(l,ijkce1+icoff) + &
185 cccof(5,ijkce1)*tmpe(l,1)
189 tmpb(l,2)=2._rfreal*fvar(l,ijkcb)-fvar(l,ijkcb+2*icoff)
190 tmpe(l,2)=2._rfreal*fvar(l,ijkce)-fvar(l,ijkce-2*icoff)
191 filtvar(l,ijkcb)=cccof(1,ijkcb)*tmpb(l,2) + &
192 cccof(2,ijkcb)*tmpb(l,1) + &
193 cccof(3,ijkcb)*fvar(l,ijkcb) + &
194 cccof(4,ijkcb)*fvar(l,ijkcb+icoff) + &
195 cccof(5,ijkcb)*fvar(l,ijkcb+2*icoff)
196 filtvar(l,ijkce)=cccof(1,ijkce)*fvar(l,ijkce-2*icoff) + &
197 cccof(2,ijkce)*fvar(l,ijkce-icoff) + &
198 cccof(3,ijkce)*fvar(l,ijkce) + &
199 cccof(4,ijkce)*tmpe(l,1) + &
200 cccof(5,ijkce)*tmpe(l,2)
**********************************************************************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_flolesgenfiltccj(region, nDum, ibeg, iend, jbeg, jend, kbeg, kend, iCOff, ijCOff, 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)