The examples provided here are only concern inlet boundary conditions. Other boundary condition types are not specific to the pulverized coal model, so generic examples apply (and as usual, the GUI is recommended).
Note that turbulence variables BC's are usually computed automatically:
- If
icalke(izone)
= 1: hydraulic diameter and reference velocity (similar to turbulence_bc_inlet_hyd_diam).
- If
icalke(izone)
= 2: hydraulic diameter, reference velocity and turbulence intensity (similar to turbulence_bc_inlet_turb_intensity).
- If
icalke(izone)
= 0: non-automatic definition. Turbulence BC's must be defined here for all turbulence variables (k, epsilon, omega, Rij, ... depending on active model).
Local variables to be added
integer ifac, ii
integer izone
integer icha, iclapc
integer ilelt, nlelt
integer, allocatable, dimension(:) :: lstelt
This firs example
Initialization and finalization
Initialization and finalization is similar to that of the base examples
Example 1
Secondary or tertiary air inlet, for zone 'inlet'.
call getfbr(
'inlet', nlelt, lstelt)
do ilelt = 1, nlelt
ifac = lstelt(ilelt)
itypfb(ifac) = ientre
izone = 1
izfppp(ifac) = izone
ientat(izone) = 1
iqimp(izone) = 1
rcodcl(ifac,iu,1) = 0.d0
rcodcl(ifac,iv,1) = 0.d0
rcodcl(ifac,iw,1) = 5.d0
inmoxy(izone) = 1
qimpat(izone) = 1.46d-03
timpat(izone) = 400.d0 + tkelvi
icalke(izone) = 1
dh(izone) = 0.032d0
xintur(izone) = 0.d0
if ((nscal-nscapp).gt.0) then
do ii = 1, (nscal-nscapp)
rcodcl(ifac,isca(ii),1) = 1.d0
enddo
endif
enddo
subroutine getfbr(fstr, facnb, faces)
Build the list of boundary faces matching a criteria string.
Definition: cs_selector_f2c.f90:111
Example 2
Primary air inlet, for zone 'primary_inlet'.
call getfbr(
'primary_inlet', nlelt, lstelt)
do ilelt = 1, nlelt
ifac = lstelt(ilelt)
itypfb(ifac) = ientre
izone = 2
izfppp(ifac) = izone
ientcp(izone) = 1
iqimp(izone) = 1
rcodcl(ifac,iu,1) = 0.d0
rcodcl(ifac,iv,1) = 0.d0
rcodcl(ifac,iw,1) = 5.d0
inmoxy(izone) = 1
qimpat(izone) = 1.46d-03
timpat(izone) = 800.d0 + tkelvi
do icha = 1, ncharm
qimpcp(izone,icha) = zero
timpcp(izone,icha) = zero
do iclapc = 1, ncpcmx
distch(izone,icha,iclapc) = zero
enddo
enddo
icha = 1
qimpcp(izone,icha) = 1.46d-4
do iclapc = 1, nclpch(icha)
distch(izone,icha,iclapc) = 100.d0/dble(nclpch(icha))
enddo
timpcp(izone,icha) = 800.d0 + tkelvi
icalke(izone) = 1
dh(izone) = 0.1d0
xintur(izone) = 0.1d0
enddo
Example 3
Secondary or tertiary air inlet, for zone 'inlet', using the pulverized coal with moisture model (with Lagrangian particle tracking).
call getfbr(
'inlet', nlelt, lstelt)
do ilelt = 1, nlelt
ifac = lstelt(ilelt)
itypfb(ifac) = ientre
izone = 1
izfppp(ifac) = izone
ientat(izone) = 1
iqimp(izone) = 1
rcodcl(ifac,iu,1) = 0.d0
rcodcl(ifac,iv,1) = 0.d0
rcodcl(ifac,iw,1) = 5.d0
qimpat(izone) = 1.46d-03
timpat(izone) = 400.d0 + tkelvi
icalke(izone) = 1
dh(izone) = 0.1d0
xintur(izone) = 0.1d0
if ((nscal-nscapp).gt.0) then
do ii = 1, (nscal-nscapp)
rcodcl(ifac,isca(ii),1) = 1.d0
enddo
endif
enddo