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_floLesGenFiltCCI.F90,v $'
87 global => region%global
89 'TURB_floLesGenFiltCCI.F90' )
93 ilev = region%currLevel
94 turb => region%levels(ilev)%turb
98 IF (ndel(diri)==filwidth_zero)
THEN
102 filtvar(idbeg:idend,:)=fvar(idbeg:idend,:)
105 ELSEIF ((ndel(diri)==filwidth_one) .OR. &
106 (ndel(diri)==filwidth_two))
THEN
108 IF (ndel(diri)==filwidth_one)
THEN
109 cccof => turb%ccCofi1
110 ELSEIF (ndel(diri)==filwidth_two)
THEN
111 cccof => turb%ccCofi2
120 ijkc = indijk(
i ,
j ,
k ,icoff,ijcoff)
122 filtvar(l,ijkc)=cccof(1,ijkc)*fvar(l,ijkc-1) + &
123 cccof(2,ijkc)*fvar(l,ijkc) + &
124 cccof(3,ijkc)*fvar(l,ijkc+1)
130 ijkcb = indijk(
ibeg ,
j ,
k ,icoff,ijcoff)
131 ijkce = indijk(
iend ,
j ,
k ,icoff,ijcoff)
134 tmpb(l,1)=2._rfreal*fvar(l,ijkcb)-fvar(l,ijkcb+1)
135 tmpe(l,1)=2._rfreal*fvar(l,ijkce)-fvar(l,ijkce-1)
136 filtvar(l,ijkcb)=cccof(1,ijkcb)*tmpb(l,1) + &
137 cccof(2,ijkcb)*fvar(l,ijkcb) + &
138 cccof(3,ijkcb)*fvar(l,ijkcb+1)
139 filtvar(l,ijkce)=cccof(1,ijkce)*fvar(l,ijkce-1) + &
140 cccof(2,ijkce)*fvar(l,ijkce) + &
141 cccof(3,ijkce)*tmpe(l,1)
146 ELSEIF (ndel(diri)==filwidth_four)
THEN
148 cccof => turb%ccCofi4
156 ijkc = indijk(
i ,
j ,
k ,icoff,ijcoff)
158 filtvar(l,ijkc)=cccof(1,ijkc)*fvar(l,ijkc-2) + &
159 cccof(2,ijkc)*fvar(l,ijkc-1) + &
160 cccof(3,ijkc)*fvar(l,ijkc) + &
161 cccof(4,ijkc)*fvar(l,ijkc+1) + &
162 cccof(5,ijkc)*fvar(l,ijkc+2)
168 ijkcb = indijk(
ibeg ,
j ,
k ,icoff,ijcoff)
169 ijkce = indijk(
iend ,
j ,
k ,icoff,ijcoff)
170 ijkcb1= indijk(
ibeg+1 ,
j ,
k ,icoff,ijcoff)
171 ijkce1= indijk(
iend-1 ,
j ,
k ,icoff,ijcoff)
174 tmpb(l,1)=2._rfreal*fvar(l,ijkcb)-fvar(l,ijkcb+1)
175 tmpe(l,1)=2._rfreal*fvar(l,ijkce)-fvar(l,ijkce-1)
176 filtvar(l,ijkcb1)=cccof(1,ijkcb1)*tmpb(l,1) + &
177 cccof(2,ijkcb1)*fvar(l,ijkcb1-1) + &
178 cccof(3,ijkcb1)*fvar(l,ijkcb1) + &
179 cccof(4,ijkcb1)*fvar(l,ijkcb1+1) + &
180 cccof(5,ijkcb1)*fvar(l,ijkcb1+2)
181 filtvar(l,ijkce1)=cccof(1,ijkce1)*fvar(l,ijkce1-2) + &
182 cccof(2,ijkce1)*fvar(l,ijkce1-1) + &
183 cccof(3,ijkce1)*fvar(l,ijkce1) + &
184 cccof(4,ijkce1)*fvar(l,ijkce1+1) + &
185 cccof(5,ijkce1)*tmpe(l,1)
189 tmpb(l,2)=2._rfreal*fvar(l,ijkcb)-fvar(l,ijkcb+2)
190 tmpe(l,2)=2._rfreal*fvar(l,ijkce)-fvar(l,ijkce-2)
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+1) + &
195 cccof(5,ijkcb)*fvar(l,ijkcb+2)
196 filtvar(l,ijkce)=cccof(1,ijkce)*fvar(l,ijkce-2) + &
197 cccof(2,ijkce)*fvar(l,ijkce-1) + &
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)
**********************************************************************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)
subroutine turb_flolesgenfiltcci(region, nDum, ibeg, iend, jbeg, jend, kbeg, kend, iCOff, ijCOff, nDel, idBeg, idEnd, fVar, filtVar)