58 TYPE(t_region
) :: region
61 INTEGER ::
i,
j,
k, ipatch
65 INTEGER :: ilev, icoff, ijcoff, inoff, ijnoff, ijkc0, ijkc1, ijkn, indsvel
67 REAL(RFREAL) :: qsl, qsr, fc
68 REAL(RFREAL),
POINTER :: cv(:,:), dv(:,:), si(:,:), sj(:,:), sk(:,:)
69 REAL(RFREAL),
POINTER :: tcv(:,:), trhs(:,:), sivel(:), sjvel(:), skvel(:)
74 'TURB_floRansSARoe1stFlux.F90' )
78 ilev = region%currLevel
85 cv => region%levels(ilev)%mixt%cv
86 dv => region%levels(ilev)%mixt%dv
87 tcv => region%levels(ilev)%turb%cv
88 trhs => region%levels(ilev)%turb%rhs
89 si => region%levels(ilev)%grid%si
90 sj => region%levels(ilev)%grid%sj
91 sk => region%levels(ilev)%grid%sk
92 sivel => region%levels(ilev)%grid%siVel
93 sjvel => region%levels(ilev)%grid%sjVel
94 skvel => region%levels(ilev)%grid%skVel
95 indsvel = region%levels(ilev)%grid%indSvel
102 ijkc0 = indijk(
i ,
j,
k,icoff,ijcoff)
103 ijkc1 = indijk(
i-1,
j,
k,icoff,ijcoff)
104 ijkn = indijk(
i ,
j,
k,inoff,ijnoff)
106 qsl = dv(dv_mixt_uvel,ijkc1)*si(xcoord,ijkn) + &
107 dv(dv_mixt_vvel,ijkc1)*si(ycoord,ijkn) + &
108 dv(dv_mixt_wvel,ijkc1)*si(zcoord,ijkn) - sivel(ijkn*indsvel)
109 qsr = dv(dv_mixt_uvel,ijkc0)*si(xcoord,ijkn) + &
110 dv(dv_mixt_vvel,ijkc0)*si(ycoord,ijkn) + &
111 dv(dv_mixt_wvel,ijkc0)*si(zcoord,ijkn) - sivel(ijkn*indsvel)
113 fc = 0.5_rfreal*(qsl*tcv(cv_sa_nutil,ijkc1)+ &
114 qsr*tcv(cv_sa_nutil,ijkc0))
116 trhs(cv_sa_nutil,ijkc0) = trhs(cv_sa_nutil,ijkc0) + fc
117 trhs(cv_sa_nutil,ijkc1) = trhs(cv_sa_nutil,ijkc1) - fc
127 ijkc0 = indijk(
i,
j ,
k,icoff,ijcoff)
128 ijkc1 = indijk(
i,
j-1,
k,icoff,ijcoff)
129 ijkn = indijk(
i,
j ,
k,inoff,ijnoff)
131 qsl = dv(dv_mixt_uvel,ijkc1)*sj(xcoord,ijkn) + &
132 dv(dv_mixt_vvel,ijkc1)*sj(ycoord,ijkn) + &
133 dv(dv_mixt_wvel,ijkc1)*sj(zcoord,ijkn) - sjvel(ijkn*indsvel)
134 qsr = dv(dv_mixt_uvel,ijkc0)*sj(xcoord,ijkn) + &
135 dv(dv_mixt_vvel,ijkc0)*sj(ycoord,ijkn) + &
136 dv(dv_mixt_wvel,ijkc0)*sj(zcoord,ijkn) - sjvel(ijkn*indsvel)
138 fc = 0.5_rfreal*(qsl*tcv(cv_sa_nutil,ijkc1)+ &
139 qsr*tcv(cv_sa_nutil,ijkc0))
141 trhs(cv_sa_nutil,ijkc0) = trhs(cv_sa_nutil,ijkc0) + fc
142 trhs(cv_sa_nutil,ijkc1) = trhs(cv_sa_nutil,ijkc1) - fc
152 ijkc0 = indijk(
i,
j,
k ,icoff,ijcoff)
153 ijkc1 = indijk(
i,
j,
k-1,icoff,ijcoff)
154 ijkn = indijk(
i,
j,
k ,inoff,ijnoff)
156 qsl = dv(dv_mixt_uvel,ijkc1)*sk(xcoord,ijkn) + &
157 dv(dv_mixt_vvel,ijkc1)*sk(ycoord,ijkn) + &
158 dv(dv_mixt_wvel,ijkc1)*sk(zcoord,ijkn) - skvel(ijkn*indsvel)
159 qsr = dv(dv_mixt_uvel,ijkc0)*sk(xcoord,ijkn) + &
160 dv(dv_mixt_vvel,ijkc0)*sk(ycoord,ijkn) + &
161 dv(dv_mixt_wvel,ijkc0)*sk(zcoord,ijkn) - skvel(ijkn*indsvel)
163 fc = 0.5_rfreal*(qsl*tcv(cv_sa_nutil,ijkc1)+ &
164 qsr*tcv(cv_sa_nutil,ijkc0))
166 trhs(cv_sa_nutil,ijkc0) = trhs(cv_sa_nutil,ijkc0) + fc
167 trhs(cv_sa_nutil,ijkc1) = trhs(cv_sa_nutil,ijkc1) - fc
174 DO ipatch=1,region%nPatches
176 region%levels(ilev)%patches(ipatch) )
**********************************************************************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 kpcbeg
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 jpcbeg
**********************************************************************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 ipcend
subroutine turb_floranssaroe1stflux(region)
subroutine rflo_getnodeoffset(region, iLev, iNodeOffset, ijNodeOffset)
**********************************************************************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 ipcbeg
subroutine rflo_getcelloffset(region, iLev, iCellOffset, ijCellOffset)
subroutine turb_floranssaroefluxpatch(region, patch)
**********************************************************************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 jpcend
subroutine deregisterfunction(global)
subroutine rflo_getdimensphys(region, iLev, ipcbeg, ipcend, jpcbeg, jpcend, kpcbeg, kpcend)