Local variables to be added
integer          ifac, ii
integer          izone
integer          ilelt, nlelt
double precision uref2, d2s3
double precision xkent, xeent
integer, allocatable, dimension(:) :: lstelt
Initialization and finalization
Initialization and finalization is similar to that of the base examples
Assign boundary conditions to boundary faces here For each subset:
- use selection criteria to filter boundary faces of a given subset
- loop on faces from a subset
- set the boundary condition for each face The color 15 become a WALL. 
Example 1
BOUNDARY FACE corresponding to AIR INLET, e.g.: secondary or tertiary air.
do ilelt = 1, nlelt
  ifac = lstelt(ilelt)
  izone = 1
  ientat(izone) = 1
  qimpat(izone) = 1.46d-03
  timpat(izone) = 400.d0 + 
tkelvi    uref2 = rcodcl(ifac,
iu,1)**2                           &
    uref2 = max(uref2,1.d-12)
    
        xkent, xeent )
      rcodcl(ifac,
ik,1)  = xkent
      rcodcl(ifac,
iep,1) = xeent
      rcodcl(ifac,
ir11,1) = d2s3*xkent
      rcodcl(ifac,
ir22,1) = d2s3*xkent
      rcodcl(ifac,
ir33,1) = d2s3*xkent
      rcodcl(ifac,
ir12,1) = 0.d0
      rcodcl(ifac,
ir13,1) = 0.d0
      rcodcl(ifac,
ir23,1) = 0.d0
      rcodcl(ifac,
iep,1)  = xeent
    elseif (
iturb.eq.50) 
then 
      rcodcl(ifac,
ik,1)   = xkent
      rcodcl(ifac,
iep,1)  = xeent
      rcodcl(ifac,
iphi,1) = d2s3
      rcodcl(ifac,
ifb,1)  = 0.d0
    elseif (
iturb.eq.60) 
then 
      rcodcl(ifac,
ik,1)   = xkent
      rcodcl(ifac,
iomg,1) = xeent/
cmu/xkent
    elseif (
iturb.eq.70) 
then 
      rcodcl(ifac,
inusa,1) = 
cmu*xkent**2/xeent
    endif
  endif
      rcodcl(ifac,
isca(ii),1) = 1.d0
    enddo
  endif
enddo
  
Example 2
The color 15 becomes a WALL.
do ilelt = 1, nlelt
  ifac = lstelt(ilelt)
  izone = 2
enddo
  
Example 3
The color 19 becomes an OUTLET.
do ilelt = 1, nlelt
  ifac = lstelt(ilelt)
  izone = 3
enddo
  
Example 4
The colors 14 and 4 become a symmetry plane.
do ilelt = 1, nlelt
  ifac = lstelt(ilelt)
  izone = 4
enddo