TALK=T;RUN(1,1)
    PHOTON USE
  p

  *1 3 0.5



  up z
  con temp x 1 y 1 m z 7 14 fil;.001
  con temp x 1 y 1 m z 15 m sh;int 10
  vec x 1 y 1 m z 15 m sh
  vec x 1 y 1 m z 7 14
  set vec ref 4.
  vec x 1 y 1 m z 1 6 sh
  gr x 1 y 1 m z 7 14
  gr ou z 1
  gr ou y 1 z 1 25
  gr ou y m z 1 25
  gr ou z 26 y 16 m
  gr ou z 26 y 1 5
  gr ou z m y 6 15
  gr ou y 16 z 26 m
  gr ou y 6 z 26 m
  msg Velocity vectors and
  msg temperature contours
  msg
  msg
  msg Press 
  msg to continue
  pause;vec off;con off;red
  con temp x 1 fil;.001
  gr x 1 y 1 m z 7 14
  gr ou z 1
  gr ou y 1 z 1 25
  gr ou y m z 1 25
  gr ou z 26 y 16 m
  gr ou z 26 y 1 5
  gr ou z m y 6 15
  gr ou y 16 z 26 m
  gr ou y 6 z 26 m
  msg Temperature
  msg
  msg
  msg Press 
  msg to continue
  pause;con off;red
  con YO2 x 1 fil;.001
  gr x 1 y 1 m z 7 14
  gr ou z 1
  gr ou y 1 z 1 25
  gr ou y m z 1 25
  gr ou z 26 y 16 m
  gr ou z 26 y 1 5
  gr ou z m y 6 15
  gr ou y 16 z 26 m
  gr ou y 6 z 26 m
  msg Oxygen
  msg
  msg
  msg Press 
  msg to continue
  pause;con off;red
  con YN2 x 1 fil;.001
  gr x 1 y 1 m z 7 14
  gr ou z 1
  gr ou y 1 z 1 25
  gr ou y m z 1 25
  gr ou z 26 y 16 m
  gr ou z 26 y 1 5
  gr ou z m y 6 15
  gr ou y 16 z 26 m
  gr ou y 6 z 26 m
  msg Nitrogen
  msg
  msg
  msg Press 
  msg to continue
  pause;con off;red
  con YH2 x 1 fil;.001
  gr x 1 y 1 m z 7 14
  gr ou z 1
  gr ou y 1 z 1 25
  gr ou y m z 1 25
  gr ou z 26 y 16 m
  gr ou z 26 y 1 5
  gr ou z m y 6 15
  gr ou y 16 z 26 m
  gr ou y 6 z 26 m
  msg Hydrogen
  msg
  msg
  msg Press 
  msg to continue
  pause;con off;red
  con YH2O x 1 fil;.001
  gr x 1 y 1 m z 7 14
  gr ou z 1
  gr ou y 1 z 1 25
  gr ou y m z 1 25
  gr ou z 26 y 16 m
  gr ou z 26 y 1 5
  gr ou z m y 6 15
  gr ou y 16 z 26 m
  gr ou y 6 z 26 m
  msg Water vapour
  msg
  msg
  msg Press 
  msg to continue
  pause;con off;red
  con YCO2 x 1 fil;.001
  gr x 1 y 1 m z 7 14
  gr ou z 1
  gr ou y 1 z 1 25
  gr ou y m z 1 25
  gr ou z 26 y 16 m
  gr ou z 26 y 1 5
  gr ou z m y 6 15
  gr ou y 16 z 26 m
  gr ou y 6 z 26 m
  msg Carbon dioxide
  msg
  msg
  msg Press 
  msg to continue
  pause;con off;red
  con YCO x 1 fil;.001
  gr x 1 y 1 m z 7 14
  gr ou z 1
  gr ou y 1 z 1 25
  gr ou y m z 1 25
  gr ou z 26 y 16 m
  gr ou z 26 y 1 5
  gr ou z m y 6 15
  gr ou y 16 z 26 m
  gr ou y 6 z 26 m
  msg Carbon monoxide
  msg
  msg
  msg Press 
  msg to continue
  enduse
  DISPLAY

    System level lump coke packed bad combustion.

    One-phase, 2D, one space, lump coke packed bed
    combustion, air supply underneath and above bed.

  ENDDIS
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(System level coke combustion simulation )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 14
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 1
 XULAST =1.
 XFRAC(1)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 20
 YVLAST =1.
 YFRAC(1)=0.05 ;YFRAC(2)=0.1
 YFRAC(3)=0.15 ;YFRAC(4)=0.2
 YFRAC(5)=0.25 ;YFRAC(6)=0.3
 YFRAC(7)=0.35 ;YFRAC(8)=0.4
 YFRAC(9)=0.45 ;YFRAC(10)=0.5
 YFRAC(11)=0.55 ;YFRAC(12)=0.6
 YFRAC(13)=0.65 ;YFRAC(14)=0.7
 YFRAC(15)=0.75 ;YFRAC(16)=0.8
 YFRAC(17)=0.85 ;YFRAC(18)=0.9
 YFRAC(19)=0.95 ;YFRAC(20)=1.
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 30
 ZWLAST =1.5
 ZFRAC(1)=0.033333 ;ZFRAC(2)=0.066667
 ZFRAC(3)=0.1 ;ZFRAC(4)=0.133333
 ZFRAC(5)=0.166667 ;ZFRAC(6)=0.2
 ZFRAC(7)=0.233333 ;ZFRAC(8)=0.266667
 ZFRAC(9)=0.3 ;ZFRAC(10)=0.333333
 ZFRAC(11)=0.366667 ;ZFRAC(12)=0.4
 ZFRAC(13)=0.433333 ;ZFRAC(14)=0.466667
 ZFRAC(15)=0.5 ;ZFRAC(16)=0.533333
 ZFRAC(17)=0.566667 ;ZFRAC(18)=0.6
 ZFRAC(19)=0.633333 ;ZFRAC(20)=0.666667
 ZFRAC(21)=0.7 ;ZFRAC(22)=0.733333
 ZFRAC(23)=0.766667 ;ZFRAC(24)=0.8
 ZFRAC(25)=0.833333 ;ZFRAC(26)=0.866667
 ZFRAC(27)=0.9 ;ZFRAC(28)=0.933333
 ZFRAC(29)=0.966667 ;ZFRAC(30)=1.
 ************************************************************
  Group 6. Body-Fitted Coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS = T
 NAME(1)=P1 ;NAME(5)=V1
 NAME(7)=W1 ;NAME(14)=H1
 NAME(128)=PRPS ;NAME(129)=YSUM
 NAME(130)=HPOR ;NAME(131)=NPOR
 NAME(132)=VPOR ;NAME(133)=GOPA
 NAME(134)=GOFU ;NAME(135)=GH
 NAME(136)=GC ;NAME(137)=GO
 NAME(138)=FRAC ;NAME(139)=FLIM
 NAME(140)=DEN1 ;NAME(141)=YH2O
 NAME(142)=YCO2 ;NAME(143)=YCO
 NAME(144)=YO2 ;NAME(145)=YH2
 NAME(146)=YN2 ;NAME(147)=TEMP
 NAME(148)=HSUB ;NAME(149)=RMIX
 NAME(150)=FCL
    * Y in SOLUTN argument list denotes:
    * 1-stored 2-solved 3-whole-field
    * 4-point-by-point 5-explicit 6-harmonic averaging 
 SOLUTN(P1,Y,Y,Y,N,N,Y)
 SOLUTN(V1,Y,Y,N,N,N,Y)
 SOLUTN(W1,Y,Y,N,N,N,Y)
 SOLUTN(H1,Y,Y,Y,N,N,Y)
 SOLUTN(PRPS,Y,N,N,N,N,N)
 SOLUTN(YSUM,Y,N,N,N,N,Y)
 SOLUTN(HPOR,Y,N,N,N,N,Y)
 SOLUTN(NPOR,Y,N,N,N,N,Y)
 SOLUTN(VPOR,Y,N,N,N,N,Y)
 SOLUTN(GOPA,Y,N,N,N,N,Y)
 SOLUTN(GOFU,Y,N,N,N,N,Y)
 SOLUTN(GH,Y,N,N,N,N,Y)
 SOLUTN(GC,Y,N,N,N,N,Y)
 SOLUTN(GO,Y,N,N,N,N,Y)
 SOLUTN(FRAC,Y,N,N,N,N,Y)
 SOLUTN(FLIM,Y,N,N,N,N,Y)
 SOLUTN(DEN1,Y,N,N,N,N,Y)
 SOLUTN(YH2O,Y,N,N,N,N,Y)
 SOLUTN(YCO2,Y,N,N,N,N,Y)
 SOLUTN(YCO,Y,N,N,N,N,Y)
 SOLUTN(YO2,Y,N,N,N,N,Y)
 SOLUTN(YH2,Y,N,N,N,N,Y)
 SOLUTN(YN2,Y,N,N,N,N,Y)
 SOLUTN(TEMP,Y,N,N,N,N,Y)
 SOLUTN(HSUB,Y,N,N,N,N,Y)
 SOLUTN(RMIX,Y,N,N,N,N,Y)
 SOLUTN(FCL,Y,Y,Y,N,N,Y)
 DEN1 = 140
 EPOR = 0 ;HPOR = 130 ;NPOR = 131 ;VPOR = 132
 PRPS = 128
 ************************************************************
  Group 8. Terms & Devices
    * Y in TERMS argument list denotes:
    * 1-built-in source 2-convection 3-diffusion 4-transient
    * 5-first phase variable 6-interphase transport         
 TERMS(P1,Y,Y,Y,N,Y,Y)
 TERMS(V1,Y,Y,Y,Y,Y,Y)
 TERMS(W1,Y,Y,Y,Y,Y,Y)
 TERMS(H1,N,Y,N,Y,Y,Y)
 TERMS(FCL,N,Y,N,Y,Y,Y)
 DIFCUT =0.5 ;ZDIFAC =1.
 GALA = F ;ADDDIF = F
 NEWRH1 = T
 ISOLX = -1 ;ISOLY = -1 ;ISOLZ = -1
 ************************************************************
  Group 9. Properties used if PRPS is not
  stored, and where PRPS = -1.0 if it is!
 RHO1 = GRND ;TMP1 =0. ;EL1 =0.
 TSURR =0. ;TEMP0 =0. ;PRESS0 =1.0E+05
 DVO1DT =0. ;DRH1DP =0.
 RHO1A =0. ;RHO1B =0. ;RHO1C =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 ENUL =0. ;ENUT =0.
 PRNDTL(V1)=1. ;PRNDTL(W1)=1.
 PRT(V1)=1. ;PRT(W1)=1.
 CP1 =1. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(P1)=1.3E-04 ;FIINIT(V1)=1.0E-10
 FIINIT(W1)=1. ;FIINIT(H1)=1.0E-10
 FIINIT(PRPS)=-1. ;FIINIT(YSUM)=1.0E-10
 FIINIT(HPOR)=1. ;FIINIT(NPOR)=1.
 FIINIT(VPOR)=1. ;FIINIT(GOPA)=1.0E-10
 FIINIT(GOFU)=1.0E-10 ;FIINIT(GH)=1.0E-10
 FIINIT(GC)=1.0E-10 ;FIINIT(GO)=1.0E-10
 FIINIT(FRAC)=1.0E-10 ;FIINIT(FLIM)=1.0E-10
 FIINIT(DEN1)=1.0E-10 ;FIINIT(YH2O)=1.0E-10
 FIINIT(YCO2)=1.0E-10 ;FIINIT(YCO)=1.0E-10
 FIINIT(YO2)=1.0E-10 ;FIINIT(YH2)=1.0E-10
 FIINIT(YN2)=1.0E-10 ;FIINIT(TEMP)=1.0E-10
 FIINIT(HSUB)=1.0E-10 ;FIINIT(RMIX)=1.0E-10
 FIINIT(FCL)=0.154804
 
 PATCH(POROS ,INIVAL, 1, 1, 1, 20, 7, 14, 1, 1)
 INIT(POROS ,HPOR,0. ,0.75 )
 INIT(POROS ,NPOR,0. ,0.75 )
 INIT(POROS ,VPOR,0. ,0.75 )
 
 PATCH(SCHIMNEY,INIVAL, 1, 1, 1, 5, 26, 30, 1, 1)
 INIT(SCHIMNEY,PRPS,0. ,199. )
 
 PATCH(NCHIMNEY,INIVAL, 1, 1, 16, 20, 26, 30, 1, 1)
 INIT(NCHIMNEY,PRPS,0. ,199. )
 
 PATCH(POR1 ,INIVAL, 1, 1, 1, 1, 6, 6, 1, 1)
 INIT(POR1 ,HPOR,0. ,0. )
 
 PATCH(POR2 ,INIVAL, 1, 1, 4, 5, 6, 6, 1, 1)
 INIT(POR2 ,HPOR,0. ,0. )
 
 PATCH(POR3 ,INIVAL, 1, 1, 10, 10, 6, 6, 1, 1)
 INIT(POR3 ,HPOR,0. ,0. )
 
 PATCH(POR4 ,INIVAL, 1, 1, 11, 11, 6, 6, 1, 1)
 INIT(POR4 ,HPOR,0. ,0. )
 
 PATCH(POR5 ,INIVAL, 1, 1, 14, 15, 6, 6, 1, 1)
 INIT(POR5 ,HPOR,0. ,0. )
 
 PATCH(POR6 ,INIVAL, 1, 1, 20, 20, 6, 6, 1, 1)
 INIT(POR6 ,HPOR,0. ,0. )
 INIADD = F
 FSWEEP = 1
 NAMFI =CHAM
 ************************************************************
  Group 12. Patchwise adjustment of terms
  Patches for this group are printed with those
  for Group 13.
  Their names begin either with GP12 or &
 ************************************************************
  Group 13. Boundary & Special Sources
 
 PATCH(INLET ,EAST , 1, 1, 1, 20, 1, 6, 1, 1)
 COVAL(INLET ,P1 , FIXFLU ,2.199388 )
 COVAL(INLET ,V1 ,0. ,0. )
 COVAL(INLET ,W1 ,0. ,2. )
 COVAL(INLET ,H1 ,0. ,3.85E+05 )
 COVAL(INLET ,FCL ,0. ,0. )
 
 PATCH(BEDFRIC ,VOLUME, 1, 1, 1, 20, 7, 14, 1, 1)
 COVAL(BEDFRIC ,V1 ,100. ,0. )
 COVAL(BEDFRIC ,W1 ,100. ,0. )
 
 PATCH(OUTLET ,HIGH , 1, 1, 1, 20, 30, 30, 1, 1)
 COVAL(OUTLET ,P1 ,1. ,0. )
 
 PATCH(EASTAIR ,EAST , 1, 1, 1, 20, 15, 25, 1, 1)
 COVAL(EASTAIR ,P1 , FIXFLU ,4.398777 )
 COVAL(EASTAIR ,H1 ,0. ,3.85E+05 )
 COVAL(EASTAIR ,FCL ,0. ,0. )
 
 PATCH(CARGAS ,VOLUME, 1, 1, 1, 20, 1, 30, 1, 1)
 COVAL(CARGAS ,P1 , FIXFLU , GRND )
 COVAL(CARGAS ,H1 ,0. , GRND )
 COVAL(CARGAS ,FCL ,0. ,1. )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 100 ;ISWC1 = 1
 LITHYD = 10 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 SELREF = T
 RESFAC =1.0E-04
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;LITER(V1)=10
 LITER(W1)=10 ;LITER(H1)=20
 LITER(FCL)=20
 ENDIT(P1)=1.0E-03 ;ENDIT(V1)=1.0E-03
 ENDIT(W1)=1.0E-03 ;ENDIT(H1)=1.0E-03
 ENDIT(FCL)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,0.175)
 RELAX(V1,FALSDT,0.1)
 RELAX(W1,FALSDT,0.1)
 RELAX(H1,FALSDT,1.0E+09)
 RELAX(PRPS,LINRLX,1.)
 RELAX(YSUM,LINRLX,1.)
 RELAX(GOPA,LINRLX,1.)
 RELAX(GOFU,LINRLX,1.)
 RELAX(GH,LINRLX,1.)
 RELAX(GC,LINRLX,1.)
 RELAX(GO,LINRLX,1.)
 RELAX(FRAC,LINRLX,1.)
 RELAX(FLIM,LINRLX,1.)
 RELAX(DEN1,LINRLX,0.1)
 RELAX(YH2O,LINRLX,1.)
 RELAX(YCO2,LINRLX,1.)
 RELAX(YCO,LINRLX,1.)
 RELAX(YO2,LINRLX,1.)
 RELAX(YH2,LINRLX,1.)
 RELAX(YN2,LINRLX,1.)
 RELAX(TEMP,LINRLX,1.)
 RELAX(HSUB,LINRLX,1.)
 RELAX(RMIX,LINRLX,1.)
 RELAX(FCL,FALSDT,0.1)
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(P1)=1.0E+10 ;VARMIN(P1)=-1.0E+10
 VARMAX(V1)=1.0E+06 ;VARMIN(V1)=-1.0E+06
 VARMAX(W1)=1.0E+06 ;VARMIN(W1)=-1.0E+06
 VARMAX(H1)=1.0E+10 ;VARMIN(H1)=-1.0E+10
 VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10
 VARMAX(YSUM)=1.0E+10 ;VARMIN(YSUM)=-1.0E+10
 VARMAX(HPOR)=1.0E+10 ;VARMIN(HPOR)=-1.0E+10
 VARMAX(NPOR)=1.0E+10 ;VARMIN(NPOR)=-1.0E+10
 VARMAX(VPOR)=1.0E+10 ;VARMIN(VPOR)=-1.0E+10
 VARMAX(GOPA)=1.0E+10 ;VARMIN(GOPA)=-1.0E+10
 VARMAX(GOFU)=1.0E+10 ;VARMIN(GOFU)=-1.0E+10
 VARMAX(GH)=1.0E+10 ;VARMIN(GH)=-1.0E+10
 VARMAX(GC)=1.0E+10 ;VARMIN(GC)=-1.0E+10
 VARMAX(GO)=1.0E+10 ;VARMIN(GO)=-1.0E+10
 VARMAX(FRAC)=1.0E+10 ;VARMIN(FRAC)=-1.0E+10
 VARMAX(FLIM)=1.0E+10 ;VARMIN(FLIM)=-1.0E+10
 VARMAX(DEN1)=3. ;VARMIN(DEN1)=1.0E-03
 VARMAX(YH2O)=1.0E+10 ;VARMIN(YH2O)=-1.0E+10
 VARMAX(YCO2)=1.0E+10 ;VARMIN(YCO2)=-1.0E+10
 VARMAX(YCO)=1.0E+10 ;VARMIN(YCO)=-1.0E+10
 VARMAX(YO2)=1.0E+10 ;VARMIN(YO2)=-1.0E+10
 VARMAX(YH2)=1.0E+10 ;VARMIN(YH2)=-1.0E+10
 VARMAX(YN2)=1.0E+10 ;VARMIN(YN2)=-1.0E+10
 VARMAX(TEMP)=3000. ;VARMIN(TEMP)=350.
 VARMAX(HSUB)=1.0E+10 ;VARMIN(HSUB)=-1.0E+10
 VARMAX(RMIX)=1.0E+10 ;VARMIN(RMIX)=-1.0E+10
 VARMAX(FCL)=1. ;VARMIN(FCL)=0.
 ************************************************************
  Group 19. Data transmitted to GROUND
 NAMSAT =MOSG
 PARSOL = F
 ISG62 = 1
 SPEDAT(SET,GXMONI,PLOTALL,L,T)
 SPEDAT(SET,MATERIAL,199,L,T)
 ************************************************************
  Group 20. Preliminary Printout
 ************************************************************
  Group 21. Print-out of Variables
 INIFLD = F ;SUBWGR = F
    * Y in OUTPUT argument list denotes:
    * 1-field 2-correction-eq. monitor 3-selective dumping      
    * 4-whole-field residual 5-spot-value table 6-residual table
 OUTPUT(P1,Y,N,Y,Y,Y,Y)
 OUTPUT(V1,Y,N,Y,Y,Y,Y)
 OUTPUT(W1,Y,N,Y,Y,Y,Y)
 OUTPUT(H1,Y,N,Y,Y,Y,Y)
 OUTPUT(PRPS,Y,N,Y,N,N,N)
 OUTPUT(YSUM,Y,N,Y,N,N,N)
 OUTPUT(HPOR,Y,N,Y,N,N,N)
 OUTPUT(NPOR,Y,N,Y,N,N,N)
 OUTPUT(VPOR,Y,N,Y,N,N,N)
 OUTPUT(GOPA,Y,N,Y,N,N,N)
 OUTPUT(GOFU,Y,N,Y,N,N,N)
 OUTPUT(GH,Y,N,Y,N,N,N)
 OUTPUT(GC,Y,N,Y,N,N,N)
 OUTPUT(GO,Y,N,Y,N,N,N)
 OUTPUT(FRAC,Y,N,Y,N,N,N)
 OUTPUT(FLIM,Y,N,Y,N,N,N)
 OUTPUT(DEN1,Y,N,Y,N,N,N)
 OUTPUT(YH2O,Y,N,Y,N,N,N)
 OUTPUT(YCO2,Y,N,Y,N,N,N)
 OUTPUT(YCO,Y,N,Y,N,N,N)
 OUTPUT(YO2,Y,N,Y,N,N,N)
 OUTPUT(YH2,Y,N,Y,N,N,N)
 OUTPUT(YN2,Y,N,Y,N,N,N)
 OUTPUT(TEMP,Y,N,Y,N,N,N)
 OUTPUT(HSUB,Y,N,Y,N,N,N)
 OUTPUT(RMIX,Y,N,Y,N,N,N)
 OUTPUT(FCL,Y,N,Y,Y,Y,Y)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 1 ;IYMON = 10 ;IZMON = 15
 NPRMON = 100000 ;NPRMNT = 1 ;TSTSWP = -1
 UWATCH = T ;USTEER = T
 HIGHLO = F
 ************************************************************
  Group 23.Field Print-Out & Plot Control
 NPRINT = 100000 ;NUMCLS = 5
 NYPRIN = 1 ;IYPRF = 1 ;IYPRL = 30
 NZPRIN = 1 ;IZPRF = 1 ;IZPRL = 10000
 XZPR = F ;YZPR = F
 IPLTF = 1 ;IPLTL = -1 ;NPLT = 1
 ISWPRF = 1 ;ISWPRL = 100000
 ITABL = 3 ;IPROF = 1
 ABSIZ =0.5 ;ORSIZ =0.4
 NTZPRF = 1 ;NCOLPF = 50
 ICHR = 2 ;NCOLCO = 45 ;NROWCO = 20
   No PATCHes yet used for this Group
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
STOP