TALK=T;RUN(1,1)
  PHOTON USE
  AUTOPLOT
  upause 1
  file; phida 3

  cl; da 1; yco2; da 1; yo2; da 1; yco; scale; cola 1; col3 2
  colf 3
  msg mass fractions of CO2 - yellow, O2 - blue, CO - red   ....more
  pause; cl; da 1; yh2o; da 1; mixf; scale; col3 1; colf 2
  msg mass fractions of H2O - blue, coal-derived gas - red  ....more
  pause; cl; da 1; tmp1; da 1; tmp2; scale; colf 1; cola 2
  msg temp of gas - red, of coal - yellow.                  ....more
  pause; cl; da 1; gvel; da 1; cvel; col3 1; col8 2
  msg gas velocity - blue, coal velocity - green.
  pause; end
  enduse
  DISPLAY


   Coal-combustion model; two-phase, with slip.

   Reactions: C (s) + 0.5 O2  > CO       (exothermic )
              CO    + 0.5 O2  > CO2      (exothermic )
              C(s)  + CO2     > 2CO      (endothermic)
              C(s)  + H2O     > CO  + H2 (endothermic)
              H2    + 0.5 O2  > H2O      (exothermic )


  ENDDIS
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(1DX Coal Combustion; Secondary Air      )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 480
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 20
 XULAST =10.
 XFRAC(1)=0.05 ;XFRAC(2)=0.1
 XFRAC(3)=0.15 ;XFRAC(4)=0.2
 XFRAC(5)=0.25 ;XFRAC(6)=0.3
 XFRAC(7)=0.35 ;XFRAC(8)=0.4
 XFRAC(9)=0.45 ;XFRAC(10)=0.5
 XFRAC(11)=0.55 ;XFRAC(12)=0.6
 XFRAC(13)=0.65 ;XFRAC(14)=0.7
 XFRAC(15)=0.75 ;XFRAC(16)=0.8
 XFRAC(17)=0.85 ;XFRAC(18)=0.9
 XFRAC(19)=0.95 ;XFRAC(20)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 1
 YVLAST =1.
 YFRAC(1)=1.
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 1
 ZWLAST =1.
 ZFRAC(1)=1.
 ************************************************************
  Group 6. Body-Fitted Coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS = F
 EQUVEL = F
 NAME(1)=P1 ;NAME(3)=GVEL
 NAME(4)=CVEL ;NAME(9)=GAS
 NAME(10)=FUEL ;NAME(11)=SHAD
 NAME(14)=H1 ;NAME(15)=H2
 NAME(16)=MIXF ;NAME(139)=TMP2
 NAME(140)=TMP1 ;NAME(141)=RHO2
 NAME(142)=RHO1 ;NAME(143)=YH2O
 NAME(144)=YH2 ;NAME(145)=YN2
 NAME(146)=YCO2 ;NAME(147)=YO2
 NAME(148)=YCO ;NAME(149)=CFIP
 NAME(150)=MDOT
    * 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(GVEL,Y,Y,Y,N,N,Y)
 SOLUTN(CVEL,Y,Y,Y,N,N,Y)
 SOLUTN(GAS,Y,Y,Y,Y,N,Y)
 SOLUTN(FUEL,Y,Y,Y,Y,N,Y)
 SOLUTN(SHAD,Y,Y,Y,Y,N,Y)
 SOLUTN(H1,Y,Y,Y,N,N,Y)
 SOLUTN(H2,Y,Y,Y,N,N,Y)
 SOLUTN(MIXF,Y,Y,Y,N,N,Y)
 SOLUTN(TMP2,Y,N,N,N,N,Y)
 SOLUTN(TMP1,Y,N,N,N,N,Y)
 SOLUTN(RHO2,Y,N,N,N,N,Y)
 SOLUTN(RHO1,Y,N,N,N,N,Y)
 SOLUTN(YH2O,Y,N,N,N,N,Y)
 SOLUTN(YH2,Y,N,N,N,N,Y)
 SOLUTN(YN2,Y,N,N,N,N,Y)
 SOLUTN(YCO2,Y,N,N,N,N,Y)
 SOLUTN(YO2,Y,N,N,N,N,Y)
 SOLUTN(YCO,Y,N,N,N,N,Y)
 SOLUTN(CFIP,Y,N,N,N,N,Y)
 SOLUTN(MDOT,Y,N,N,N,N,Y)
 DEN1 = 142
 DEN2 = 141
 INTMDT = 150
 TEMP1 = 140
 TEMP2 = 139
 ************************************************************
  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(GVEL,Y,Y,Y,Y,Y,Y)
 TERMS(CVEL,Y,Y,Y,Y,N,Y)
 TERMS(GAS,Y,Y,Y,Y,Y,Y)
 TERMS(FUEL,Y,Y,Y,Y,N,Y)
 TERMS(SHAD,Y,Y,Y,Y,N,Y)
 TERMS(H1,N,Y,Y,Y,Y,Y)
 TERMS(H2,N,Y,Y,Y,N,Y)
 TERMS(MIXF,N,Y,Y,Y,Y,Y)
 DIFCUT =0.5 ;ZDIFAC =1.
 GALA = F ;ADDDIF = F
 NEWRH1 = T
 EQDVDP = F
 ISOLX = -1 ;ISOLY = -1 ;ISOLZ = -1
 ************************************************************
  Group 9. Properties used if PRPS is not
  stored, and where PRPS = -1.0 if it is!
 RHO1 = GRND7 ;TMP1 =0.
 EL1 =0.
 TSURR =0. ;TEMP0 =0.
 PRESS0 =1.0E+05
 DVO1DT =0. ;DRH1DP =0.
 RHO1A =0.86 ;RHO1B =0.05
 RHO1C =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 RHO2 =1000. ;TMP2 =0.
 EL2 =0.
 DVO2DT =0. ;DRH2DP =0.
 ENUL =1.0E-05 ;ENUT =0.
 PHINT(GVEL)=-2.022E+04 ;PHINT(CVEL)=-2.022E+04
 PHINT(GAS)=-2.022E+04 ;PHINT(FUEL)=-2.022E+04
 PHINT(SHAD)=-2.022E+04 ;PHINT(H1)=GRND7
 PHINT(H2)=GRND7 ;PHINT(MIXF)=1.
 PHNH1A =0. ;PHNH1B =0.
 PHNH1C =0.
 PHNH2A =0. ;PHNH2B =0.
 PHNH2C =0.
 PRNDTL(GVEL)=1. ;PRNDTL(CVEL)=1.
 PRNDTL(GAS)=1. ;PRNDTL(FUEL)=1.
 PRNDTL(SHAD)=1. ;PRNDTL(H1)=1.
 PRNDTL(H2)=1. ;PRNDTL(MIXF)=1.
 PRT(GVEL)=1. ;PRT(CVEL)=1.
 PRT(GAS)=1. ;PRT(FUEL)=1.
 PRT(SHAD)=1. ;PRT(H1)=1.
 PRT(H2)=1. ;PRT(MIXF)=1.
 CP1 =1100. ;CP2 =1100.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 CFIPS = GRND1
 RLOLIM =0. ;CMDOT = GRND3
 CFIPA =0. ;CFIPB =0.
 CFIPC =1.0E+05 ;CFIPD =0.
 CMDTA =1.0E+04 ;CMDTB =0.
 CMDTC =0.168279 ;CMDTD =0.
 CINT(P1)=1. ;CINT(GVEL)=1.
 CINT(CVEL)=1. ;CINT(GAS)=1.
 CINT(FUEL)=1. ;CINT(SHAD)=1.
 CINT(H1)=1. ;CINT(H2)=1.
 CINT(MIXF)=0.
 PHINT(P1)=-2.022E+04 ;PHINT(GVEL)=-2.022E+04
 PHINT(CVEL)=-2.022E+04 ;PHINT(GAS)=-2.022E+04
 PHINT(FUEL)=-2.022E+04 ;PHINT(SHAD)=-2.022E+04
 PHINT(H1)=GRND7 ;PHINT(H2)=GRND7
 PHINT(MIXF)=1.
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(P1)=1.0E-10 ;FIINIT(GVEL)=3.236599
 FIINIT(CVEL)=1. ;FIINIT(GAS)=0.999
 FIINIT(FUEL)=1.0E-03 ;FIINIT(SHAD)=1.0E-03
 FIINIT(H1)=5.5E+05 ;FIINIT(H2)=3.463112E+07
 FIINIT(MIXF)=0. ;FIINIT(TMP2)=1.0E-10
 FIINIT(TMP1)=1.0E-10 ;FIINIT(RHO2)=1.0E-10
 FIINIT(RHO1)=0.69587 ;FIINIT(YH2O)=1.0E-10
 FIINIT(YH2)=1.0E-10 ;FIINIT(YN2)=1.0E-10
 FIINIT(YCO2)=1.0E-10 ;FIINIT(YO2)=1.0E-10
 FIINIT(YCO)=1.0E-10 ;FIINIT(CFIP)=1.0E-10
 FIINIT(MDOT)=1.0E-02
   No PATCHes yet used for this Group
 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(INLETS ,WEST , 1, 1, 1, 1, 1, 1, 1, 1)
 COVAL(INLETS ,CVEL,0. ,1. )
 COVAL(INLETS ,FUEL, FIXFLU ,1. )
 COVAL(INLETS ,H2 ,0. ,3.463112E+07 )
 
 PATCH(INLETG ,WEST , 1, 1, 1, 1, 1, 1, 1, 1)
 COVAL(INLETG ,GVEL,0. ,3.236599 )
 COVAL(INLETG ,GAS , FIXFLU ,2.25 )
 COVAL(INLETG ,H1 ,0. ,5.5E+05 )
 COVAL(INLETG ,MIXF,0. ,0. )
 
 PATCH(OUTLET ,CELL , 20, 20, 1, 1, 1, 1, 1, 1)
 COVAL(OUTLET ,GAS ,100. ,0. )
 COVAL(OUTLET ,FUEL,1.0E+06 ,0. )
 
 PATCH(NOXSOR ,PHASEM, 1, 20, 1, 1, 1, 1, 1, 1)
 
 PATCH(SECAIR ,WEST , 10, 20, 1, 1, 1, 1, 1, 1)
 COVAL(SECAIR ,GVEL,0. ,3.236599 )
 COVAL(SECAIR ,GAS , FIXFLU ,0.1125 )
 COVAL(SECAIR ,H1 ,0. ,5.5E+05 )
 COVAL(SECAIR ,MIXF,0. ,0. )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 2000 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 ISWR1 = 1 ;ISWR2 = 10000
 SELREF = T
 RESFAC =1.0E-03
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;LITER(GVEL)=10
 LITER(CVEL)=10 ;LITER(GAS)=1
 LITER(FUEL)=1 ;LITER(SHAD)=1
 LITER(H1)=20 ;LITER(H2)=20
 LITER(MIXF)=20
 ENDIT(P1)=1.0E-03 ;ENDIT(GVEL)=1.0E-03
 ENDIT(CVEL)=1.0E-03 ;ENDIT(GAS)=1.0E-03
 ENDIT(FUEL)=1.0E-03 ;ENDIT(SHAD)=1.0E-03
 ENDIT(H1)=1.0E-03 ;ENDIT(H2)=1.0E-03
 ENDIT(MIXF)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,0.5)
 RELAX(GVEL,FALSDT,0.308966)
 RELAX(CVEL,FALSDT,0.308966)
 RELAX(GAS,LINRLX,0.6)
 RELAX(FUEL,LINRLX,0.6)
 RELAX(SHAD,LINRLX,0.6)
 RELAX(H1,FALSDT,0.308966)
 RELAX(H2,FALSDT,0.308966)
 RELAX(MIXF,FALSDT,3.089663E-03)
 RELAX(TMP2,LINRLX,1.)
 RELAX(TMP1,LINRLX,1.)
 RELAX(RHO2,LINRLX,1.)
 RELAX(RHO1,LINRLX,0.5)
 RELAX(YH2O,LINRLX,1.)
 RELAX(YH2,LINRLX,1.)
 RELAX(YN2,LINRLX,1.)
 RELAX(YCO2,LINRLX,1.)
 RELAX(YO2,LINRLX,1.)
 RELAX(YCO,LINRLX,1.)
 RELAX(CFIP,LINRLX,1.)
 RELAX(MDOT,LINRLX,0.3)
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(P1)=1.0E+10 ;VARMIN(P1)=-1.0E+10
 VARMAX(GVEL)=1.0E+06 ;VARMIN(GVEL)=-1.0E+06
 VARMAX(CVEL)=1.0E+06 ;VARMIN(CVEL)=-1.0E+06
 VARMAX(GAS)=1. ;VARMIN(GAS)=1.0E-06
 VARMAX(FUEL)=1. ;VARMIN(FUEL)=1.0E-09
 VARMAX(SHAD)=1. ;VARMIN(SHAD)=1.0E-06
 VARMAX(H1)=1.0E+10 ;VARMIN(H1)=-1.0E+10
 VARMAX(H2)=1.0E+10 ;VARMIN(H2)=-1.0E+10
 VARMAX(MIXF)=0.168279 ;VARMIN(MIXF)=0.
 VARMAX(TMP2)=1.0E+10 ;VARMIN(TMP2)=-1.0E+10
 VARMAX(TMP1)=1.0E+10 ;VARMIN(TMP1)=-1.0E+10
 VARMAX(RHO2)=1.0E+10 ;VARMIN(RHO2)=-1.0E+10
 VARMAX(RHO1)=1.0E+10 ;VARMIN(RHO1)=-1.0E+10
 VARMAX(YH2O)=1.0E+10 ;VARMIN(YH2O)=-1.0E+10
 VARMAX(YH2)=1.0E+10 ;VARMIN(YH2)=-1.0E+10
 VARMAX(YN2)=1.0E+10 ;VARMIN(YN2)=-1.0E+10
 VARMAX(YCO2)=1.0E+10 ;VARMIN(YCO2)=-1.0E+10
 VARMAX(YO2)=1.0E+10 ;VARMIN(YO2)=-1.0E+10
 VARMAX(YCO)=1.0E+10 ;VARMIN(YCO)=-1.0E+10
 VARMAX(CFIP)=1.0E+10 ;VARMIN(CFIP)=-1.0E+10
 VARMAX(MDOT)=1.0E+10 ;VARMIN(MDOT)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 PARSOL = F
 ISG21 = 1000
 ISG62 = 1
 ************************************************************
  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,Y,Y,Y,Y,Y)
 OUTPUT(GVEL,Y,Y,Y,Y,Y,Y)
 OUTPUT(CVEL,Y,Y,Y,Y,Y,Y)
 OUTPUT(GAS,Y,Y,Y,Y,Y,Y)
 OUTPUT(FUEL,Y,Y,Y,Y,Y,Y)
 OUTPUT(SHAD,Y,Y,Y,Y,Y,Y)
 OUTPUT(H1,Y,Y,Y,Y,Y,Y)
 OUTPUT(H2,Y,Y,Y,Y,Y,Y)
 OUTPUT(MIXF,Y,Y,Y,Y,Y,Y)
 OUTPUT(TMP2,Y,N,Y,N,N,N)
 OUTPUT(TMP1,Y,N,Y,N,N,N)
 OUTPUT(RHO2,Y,N,Y,N,N,N)
 OUTPUT(RHO1,Y,N,Y,N,N,N)
 OUTPUT(YH2O,Y,N,Y,N,N,N)
 OUTPUT(YH2,Y,N,Y,N,N,N)
 OUTPUT(YN2,Y,N,Y,N,N,N)
 OUTPUT(YCO2,Y,N,Y,N,N,N)
 OUTPUT(YO2,Y,N,Y,N,N,N)
 OUTPUT(YCO,Y,N,Y,N,N,N)
 OUTPUT(CFIP,Y,N,Y,N,N,N)
 OUTPUT(MDOT,Y,N,Y,N,N,N)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 1 ;IYMON = -1 ;IZMON = 1
 NPRMON = 100000 ;NPRMNT = 1 ;TSTSWP = -1
 UWATCH = T ;USTEER = T
 HIGHLO = F
 ************************************************************
  Group 23.Field Print-Out & Plot Control
 NPRINT = 100000 ;NUMCLS = 5
 NXPRIN = -1 ;IXPRF = 1 ;IXPRL = 10000
 IPLTF = 1 ;IPLTL = -1 ;NPLT = 1
 ISWPRF = 1 ;ISWPRL = 100000
 ITABL = 1 ;IPROF = 1
 ABSIZ =0.5 ;ORSIZ =0.2
 NTZPRF = 1 ;NCOLPF = 50
 ICHR = 2 ;NCOLCO = 45 ;NROWCO = 20
 
 PATCH(PROFIL1 ,PROFIL, 1, 20, 1, 1, 1, 1, 1, 1)
 PLOT(PROFIL1 ,FUEL,0. ,0. )
 PLOT(PROFIL1 ,MIXF,0. ,0. )
 PLOT(PROFIL1 ,YCO2,0. ,0. )
 PLOT(PROFIL1 ,YCO ,0. ,0. )
 
 PATCH(PROFIL2 ,PROFIL, 1, 20, 1, 1, 1, 1, 1, 1)
 PLOT(PROFIL2 ,P1 ,0. ,0. )
 PLOT(PROFIL2 ,GVEL,0. ,0. )
 PLOT(PROFIL2 ,RHO1,0. ,0. )
 
 PATCH(PROFIL3 ,PROFIL, 1, 20, 1, 1, 1, 1, 1, 1)
 PLOT(PROFIL3 ,TMP2,0. ,0. )
 PLOT(PROFIL3 ,TMP1,0. ,0. )
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
STOP