61 TYPE(t_region
) :: region
65 INTEGER ::
i,
j,
k,
m, ijkc0, ijkc1, ijkn, ijkn1
68 CHARACTER(CHRLEN) :: rcsidentstring
73 INTEGER :: ilev,icoff,ijcoff,inoff,ijnoff
74 INTEGER :: indxc0(2),indxn(2),indxn1(2)
75 REAL(RFREAL),
POINTER :: avgco(:,:),cv(:,:),fvar(:,:)
79 rcsidentstring =
'$RCSfile: TURB_floLesGenC2F.F90,v $'
81 global => region%global
83 'TURB_floLesGenC2F.F90' )
87 ilev = region%currLevel
88 cv => region%levels(ilev)%mixt%cv
89 fvar => region%levels(ilev)%turb%fVar
105 avgco => region%levels(ilev)%grid%c2fCoI
106 ELSEIF (ijk==dirj)
THEN
116 avgco => region%levels(ilev)%grid%c2fCoJ
117 ELSEIF (ijk==dirk)
THEN
127 avgco => region%levels(ilev)%grid%c2fCoK
136 ijkc0 = indijk(
i ,
j ,
k ,icoff,ijcoff)
137 ijkc1 = ijkc0 + iadd + jadd*icoff + kadd*ijcoff
138 ijkn = indijk(
i ,
j ,
k ,inoff,ijnoff)
140 fvar(cv_turb_dens,ijkn)=avgco(2,ijkn)*cv(cv_mixt_dens,ijkc0)+ &
141 avgco(1,ijkn)*cv(cv_mixt_dens,ijkc1)
142 fvar(cv_turb_xmom,ijkn)=avgco(2,ijkn)*cv(cv_mixt_xmom,ijkc0)+ &
143 avgco(1,ijkn)*cv(cv_mixt_xmom,ijkc1)
144 fvar(cv_turb_ymom,ijkn)=avgco(2,ijkn)*cv(cv_mixt_ymom,ijkc0)+ &
145 avgco(1,ijkn)*cv(cv_mixt_ymom,ijkc1)
146 fvar(cv_turb_zmom,ijkn)=avgco(2,ijkn)*cv(cv_mixt_zmom,ijkc0)+ &
147 avgco(1,ijkn)*cv(cv_mixt_zmom,ijkc1)
166 ijkn = indijk(indxn(
m) ,
j ,
k ,inoff,ijnoff)
167 ijkn1 = ijkn + indxn1(
m)-indxn(
m)
168 ijkc0 = indijk(indxc0(
m) ,
j ,
k ,icoff,ijcoff)
170 fvar(cv_turb_dens,ijkn1)=2._rfreal*cv(cv_mixt_dens,ijkc0)- &
171 fvar(cv_turb_dens,ijkn)
172 fvar(cv_turb_xmom,ijkn1)=2._rfreal*cv(cv_mixt_xmom,ijkc0)- &
173 fvar(cv_turb_xmom,ijkn)
174 fvar(cv_turb_ymom,ijkn1)=2._rfreal*cv(cv_mixt_ymom,ijkc0)- &
175 fvar(cv_turb_ymom,ijkn)
176 fvar(cv_turb_zmom,ijkn1)=2._rfreal*cv(cv_mixt_zmom,ijkc0)- &
177 fvar(cv_turb_zmom,ijkn)
184 ijkn = indijk(
i ,
jdcend+1 ,
k ,inoff,ijnoff)
186 fvar(cv_turb_dens,ijkn) = fvar(cv_turb_dens,ijkn1)
187 fvar(cv_turb_xmom,ijkn) = fvar(cv_turb_xmom,ijkn1)
188 fvar(cv_turb_ymom,ijkn) = fvar(cv_turb_ymom,ijkn1)
189 fvar(cv_turb_zmom,ijkn) = fvar(cv_turb_zmom,ijkn1)
194 ijkn = indijk(
i ,
j ,kdcend+1 ,inoff,ijnoff)
195 ijkn1 = ijkn - ijnoff
196 fvar(cv_turb_dens,ijkn) = fvar(cv_turb_dens,ijkn1)
197 fvar(cv_turb_xmom,ijkn) = fvar(cv_turb_xmom,ijkn1)
198 fvar(cv_turb_ymom,ijkn) = fvar(cv_turb_ymom,ijkn1)
199 fvar(cv_turb_zmom,ijkn) = fvar(cv_turb_zmom,ijkn1)
203 ELSEIF (ijk==dirj)
THEN
213 ijkn = indijk(
i ,indxn(
m) ,
k ,inoff,ijnoff)
214 ijkn1 = ijkn + (indxn1(
m)-indxn(
m))*inoff
215 ijkc0 = indijk(
i ,indxc0(
m) ,
k ,icoff,ijcoff)
217 fvar(cv_turb_dens,ijkn1)=2._rfreal*cv(cv_mixt_dens,ijkc0)- &
218 fvar(cv_turb_dens,ijkn)
219 fvar(cv_turb_xmom,ijkn1)=2._rfreal*cv(cv_mixt_xmom,ijkc0)- &
220 fvar(cv_turb_xmom,ijkn)
221 fvar(cv_turb_ymom,ijkn1)=2._rfreal*cv(cv_mixt_ymom,ijkc0)- &
222 fvar(cv_turb_ymom,ijkn)
223 fvar(cv_turb_zmom,ijkn1)=2._rfreal*cv(cv_mixt_zmom,ijkc0)- &
224 fvar(cv_turb_zmom,ijkn)
231 ijkn = indijk(
idcend+1 ,
j ,
k ,inoff,ijnoff)
233 fvar(cv_turb_dens,ijkn) = fvar(cv_turb_dens,ijkn1)
234 fvar(cv_turb_xmom,ijkn) = fvar(cv_turb_xmom,ijkn1)
235 fvar(cv_turb_ymom,ijkn) = fvar(cv_turb_ymom,ijkn1)
236 fvar(cv_turb_zmom,ijkn) = fvar(cv_turb_zmom,ijkn1)
241 ijkn = indijk(
i ,
j ,kdcend+1 ,inoff,ijnoff)
242 ijkn1 = ijkn - ijnoff
243 fvar(cv_turb_dens,ijkn) = fvar(cv_turb_dens,ijkn1)
244 fvar(cv_turb_xmom,ijkn) = fvar(cv_turb_xmom,ijkn1)
245 fvar(cv_turb_ymom,ijkn) = fvar(cv_turb_ymom,ijkn1)
246 fvar(cv_turb_zmom,ijkn) = fvar(cv_turb_zmom,ijkn1)
250 ELSEIF (ijk==dirk)
THEN
260 ijkn = indijk(
i ,
j ,indxn(
m) ,inoff,ijnoff)
261 ijkn1 = ijkn + (indxn1(
m)-indxn(
m))*ijnoff
262 ijkc0 = indijk(
i ,
j ,indxc0(
m) ,icoff,ijcoff)
264 fvar(cv_turb_dens,ijkn1)=2._rfreal*cv(cv_mixt_dens,ijkc0)- &
265 fvar(cv_turb_dens,ijkn)
266 fvar(cv_turb_xmom,ijkn1)=2._rfreal*cv(cv_mixt_xmom,ijkc0)- &
267 fvar(cv_turb_xmom,ijkn)
268 fvar(cv_turb_ymom,ijkn1)=2._rfreal*cv(cv_mixt_ymom,ijkc0)- &
269 fvar(cv_turb_ymom,ijkn)
270 fvar(cv_turb_zmom,ijkn1)=2._rfreal*cv(cv_mixt_zmom,ijkc0)- &
271 fvar(cv_turb_zmom,ijkn)
278 ijkn = indijk(
idcend+1 ,
j ,
k ,inoff,ijnoff)
280 fvar(cv_turb_dens,ijkn) = fvar(cv_turb_dens,ijkn1)
281 fvar(cv_turb_xmom,ijkn) = fvar(cv_turb_xmom,ijkn1)
282 fvar(cv_turb_ymom,ijkn) = fvar(cv_turb_ymom,ijkn1)
283 fvar(cv_turb_zmom,ijkn) = fvar(cv_turb_zmom,ijkn1)
288 ijkn = indijk(
i ,
jdcend+1 ,
k ,inoff,ijnoff)
290 fvar(cv_turb_dens,ijkn) = fvar(cv_turb_dens,ijkn1)
291 fvar(cv_turb_xmom,ijkn) = fvar(cv_turb_xmom,ijkn1)
292 fvar(cv_turb_ymom,ijkn) = fvar(cv_turb_ymom,ijkn1)
293 fvar(cv_turb_zmom,ijkn) = fvar(cv_turb_zmom,ijkn1)
**********************************************************************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
**********************************************************************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 idcend
subroutine registerfunction(global, funName, fileName)
subroutine rflo_getnodeoffset(region, iLev, iNodeOffset, ijNodeOffset)
subroutine rflo_getdimensdummy(region, iLev, idcbeg, idcend, jdcbeg, jdcend, kdcbeg, kdcend)
**********************************************************************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 kdcbeg
subroutine rflo_getcelloffset(region, iLev, iCellOffset, ijCellOffset)
**********************************************************************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 idcbeg
**********************************************************************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 jdcend
**********************************************************************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 jdcbeg
**********************************************************************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 rflo_getdimensphys(region, iLev, ipcbeg, ipcend, jpcbeg, jpcend, kpcbeg, kpcend)
subroutine turb_flolesgenc2f(region, ijk)