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
  Display
  Combustion of oil is similar to that of coal. The main difference
  is that the "saturation value" of the second-phase material in
  the first is set by the "transfer number", B, defined as the
  enthalpy differenc between the bulk of the gas and the gases
  adjacent to the liquid surface divided by the enthalpy increase
  undergone by the liquid to achieve vaporization.

  This value is if the order of 10.0 for many fuels.

  Therefore a value of cmdtc around 10/(1+10) has the right order of
  magnitude.

  It is the value employed here.

  Inspection of the profiles shows that, when the extra-air factor
  is chosen to be about 1.4, a significant amount of unburned vapour
  enters the gas stream.
  ENDDIS
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(1DY Oil-Droplet Combustion              )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 481
 ************************************************************
  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 =10.
 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 = 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(5)=GVEL
 NAME(6)=CVEL ;NAME(9)=GAS
 NAME(10)=FUEL ;NAME(11)=SHAD
 NAME(14)=H1 ;NAME(15)=H2
 NAME(16)=MIXF ;NAME(138)=YVAP
 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(YVAP,Y,N,N,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.9 ;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(YVAP)=1.0E-10
 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 ,SOUTH , 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 ,SOUTH , 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 , 1, 1, 20, 20, 1, 1, 1, 1)
 COVAL(OUTLET ,GAS ,100. ,0. )
 COVAL(OUTLET ,FUEL,1.0E+06 ,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,LINRLX,0.5)
 RELAX(H2,LINRLX,0.5)
 RELAX(MIXF,LINRLX,0.5)
 RELAX(YVAP,LINRLX,1.)
 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.0E-02 ;VARMIN(SHAD)=-1.0E+11
 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(YVAP)=1.0E+10 ;VARMIN(YVAP)=-1.0E+10
 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
 ISG62 = 1
 SPEDAT(SET,RLXFAC,REFVEL,R,100.)
 SPEDAT(SET,GXMONI,PLOTALL,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,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(YVAP,Y,N,Y,N,N,N)
 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 = 18 ;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
 NYPRIN = -1 ;IYPRF = 1 ;IYPRL = 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, 1, 1, 20, 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, 1, 1, 1, 20, 1, 1, 1)
 PLOT(PROFIL2 ,P1 ,0. ,0. )
 PLOT(PROFIL2 ,GVEL,0. ,0. )
 PLOT(PROFIL2 ,RHO1,0. ,0. )
 
 PATCH(PROFIL3 ,PROFIL, 1, 1, 1, 20, 1, 1, 1, 1)
 PLOT(PROFIL3 ,TMP2,0. ,0. )
 PLOT(PROFIL3 ,TMP1,0. ,0. )
 
 PATCH(PROFILES,PROFIL, 1, 1, 1, 20, 1, 1, 1, 1)
 PLOT(PROFILES,FUEL,0. ,0. )
 PLOT(PROFILES,MIXF,0. ,0. )
 PLOT(PROFILES,YVAP,0. ,0. )
 PLOT(PROFILES,YH2 ,0. ,0. )
 PLOT(PROFILES,YCO2,0. ,0. )
 PLOT(PROFILES,YO2 ,0. ,0. )
 PLOT(PROFILES,YCO ,0. ,0. )
 
 PATCH(PROFILE2,PROFIL, 1, 1, 1, 5, 1, 1, 1, 1)
 PLOT(PROFILE2,FUEL,0. ,0. )
 PLOT(PROFILE2,MIXF,0. ,0. )
 PLOT(PROFILE2,YVAP,0. ,0. )
 PLOT(PROFILE2,YH2 ,0. ,0. )
 PLOT(PROFILE2,YCO2,0. ,0. )
 PLOT(PROFILE2,YO2 ,0. ,0. )
 PLOT(PROFILE2,YCO ,0. ,0. )
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
STOP