60 TYPE(t_region
) :: region
64 INTEGER ::
i,
j,
k, n1, n2
67 INTEGER :: ilev, lbound, bctype, distrib, gasmodel, indcp, indmol
68 INTEGER ::
ibeg,
iend,
jbeg,
jend,
kbeg, kend,
idir,
jdir,
kdir, i2d, noff
69 INTEGER :: icoff, ijcoff, inoff, ijnoff, ijkcd, ijkcb0, ijkcb1, ijknb
70 INTEGER ::
inode,
jnode, knode, indsvel, acid0, acid1
72 REAL(RFREAL) :: sgn, rhoa, rhoua, rhova, rhowa, rhoea, rhovrel(3)
73 REAL(RFREAL) :: rnutila, pa, mrate, tburn, ds, sf(3)
74 REAL(RFREAL) :: ua, va, wa, uinj, vinj, winj, vcont, sv, ac0, ac1
75 REAL(RFREAL),
POINTER :: dv(:,:), gv(:,:), tcv(:,:), trhs(:,:)
76 REAL(RFREAL),
POINTER :: avgco(:,:), sface(:,:), svel(:), vals(:,:)
81 'TURB_floRansSACentFluxPatch.F90' )
85 ilev = region%currLevel
95 distrib =
patch%mixt%distrib
96 gasmodel = region%mixtInput%gasModel
97 indcp = region%levels(ilev)%mixt%indCp
98 indmol = region%levels(ilev)%mixt%indMol
99 indsvel = region%levels(ilev)%grid%indSvel
101 dv => region%levels(ilev)%mixt%dv
102 gv => region%levels(ilev)%mixt%gv
103 tcv => region%levels(ilev)%turb%cv
104 trhs => region%levels(ilev)%turb%rhs
105 vals =>
patch%mixt%vals
115 IF (lbound==2 .OR. lbound==4 .OR. lbound==6)
THEN
126 IF (lbound==1 .OR. lbound==2)
THEN
127 avgco => region%levels(ilev)%grid%c2fCoI
128 sface => region%levels(ilev)%grid%si
129 svel => region%levels(ilev)%grid%siVel
130 ELSE IF (lbound==3 .OR. lbound==4)
THEN
131 avgco => region%levels(ilev)%grid%c2fCoJ
132 sface => region%levels(ilev)%grid%sj
133 svel => region%levels(ilev)%grid%sjVel
134 ELSE IF (lbound==5 .OR. lbound==6)
THEN
135 avgco => region%levels(ilev)%grid%c2fCoK
136 sface => region%levels(ilev)%grid%sk
137 svel => region%levels(ilev)%grid%skVel
142 IF (bctype>=bc_slipwall .AND. bctype<=bc_slipwall+bc_range)
THEN
144 ELSE IF (bctype>=bc_noslipwall .AND. bctype<=bc_noslipwall+bc_range)
THEN
146 ELSE IF (bctype>=bc_symmetry .AND. bctype<=bc_symmetry+bc_range)
THEN
148 ELSE IF (bctype>=bc_injection .AND. bctype<=bc_injection+bc_range)
THEN
155 ijkcb0 = indijk(
i ,
j ,
k ,icoff,ijcoff)
159 ac0 = avgco(acid0,ijknb)
160 ac1 = avgco(acid1,ijknb)
161 sf(1) = sgn*sface(xcoord,ijknb)
162 sf(2) = sgn*sface(ycoord,ijknb)
163 sf(3) = sgn*sface(zcoord,ijknb)
165 IF (lbound==1 .OR. lbound==2)
THEN
168 ELSE IF (lbound==3 .OR. lbound==4)
THEN
171 ELSE IF (lbound==5 .OR. lbound==6)
THEN
175 i2d = distrib * indij(n1,n2,noff)
176 mrate = vals(bcdat_inject_mfrate,i2d)
177 tburn = vals(bcdat_inject_temp ,i2d)
178 rhovrel(1) = vals(bcdat_inject_rfvfu ,i2d)
179 rhovrel(2) = vals(bcdat_inject_rfvfv ,i2d)
180 rhovrel(3) = vals(bcdat_inject_rfvfw ,i2d)
182 IF (mrate > 0._rfreal)
THEN
185 rnutila = 0.5_rfreal*(3._rfreal*tcv(cv_sa_nutil,ijkcb0)- &
186 tcv(cv_sa_nutil,ijkcb1))
187 ds =
sqrt(sf(1)*sf(1)+sf(2)*sf(2)+sf(3)*sf(3))
189 IF (gasmodel == gas_model_tcperf)
THEN
191 sf(1)/ds,sf(2)/ds,sf(3)/ds, &
192 gv(gv_mixt_cp ,ijkcb0*indcp ), &
193 gv(gv_mixt_mol ,ijkcb0*indmol), &
194 dv(dv_mixt_pres,ijkcb0 ), &
195 rhoa,rhoua,rhova,rhowa,rhoea,pa, &
198 CALL
errorstop( region%global,err_unknown_bc,__line__ )
200 vcont = uinj*sf(1) + vinj*sf(2) + winj*sf(3)
207 trhs(cv_sa_nutil,ijkcb0) = trhs(cv_sa_nutil,ijkcb0) + &
216 ELSE IF (bctype>=bc_regionint .AND. bctype<=bc_regionint +bc_range)
THEN
218 ELSE IF (bctype>=bc_regnonconf .AND. bctype<=bc_regnonconf+bc_range)
THEN
227 ijkcb0 = indijk(
i ,
j ,
k ,icoff,ijcoff)
230 ac0 = avgco(acid0,ijknb)
231 ac1 = avgco(acid1,ijknb)
233 rnutila= ac0*tcv(cv_sa_nutil,ijkcb0)+ac1*tcv(cv_sa_nutil,ijkcd)
234 ua = ac0*dv(dv_mixt_uvel,ijkcb0)+ac1*dv(dv_mixt_uvel,ijkcd)
235 va = ac0*dv(dv_mixt_vvel,ijkcb0)+ac1*dv(dv_mixt_vvel,ijkcd)
236 wa = ac0*dv(dv_mixt_wvel,ijkcb0)+ac1*dv(dv_mixt_wvel,ijkcd)
237 sf(1) = sgn*sface(xcoord,ijknb)
238 sf(2) = sgn*sface(ycoord,ijknb)
239 sf(3) = sgn*sface(zcoord,ijknb)
240 sv = svel(ijknb*indsvel)
241 vcont = ua*sf(1)+va*sf(2)+wa*sf(3) - sv
243 trhs(cv_sa_nutil,ijkcb0) = trhs(cv_sa_nutil,ijkcb0) + &
**********************************************************************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 rflo_getpatchdirection(patch, idir, jdir, kdir)
subroutine bcondinjectionperf(distrib, minj, tinj, rhoVrel, sxn, syn, szn, cpgas, mm, p, rhob, rhoub, rhovb, rhowb, rhoeb, pb, uinj, vinj, winj)
**********************************************************************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 inode
subroutine registerfunction(global, funName, fileName)
subroutine turb_floranssacentfluxpatch(region, patch)
subroutine rflo_getpatchindices(region, patch, iLev, ibeg, iend, jbeg, jend, kbeg, kend)
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 jdir
**********************************************************************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 idir
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 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 kdir
subroutine errorstop(global, errorCode, errorLine, addMessage)
**********************************************************************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)
**********************************************************************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 jnode