TALK=T;RUN(1,1)
  PHOTON USE
  AUTOPLOT
  file
  phi 5

  cl
  da 1
  temp
  scale
  colf 1
  msg temp of gas - red
  msg Press  to continue
  pause
  cl
  da 1
  w1
  col3 1
  msg gas velocity - blue
  msg Press  to continue
  pause
  cl
  da 1
  fuel
  da 1
  mixf
  scale
  col3 1
  colf 2
  msg volume fraction of methane - blue
  msg mixture fraction - red
  msg Press  to end
  pause
  end
  enduse
  DISPLAY
   The problem considered is one dimensional and concerns
   the calculation of thermal nox emissions. A two-step
   approach is used whereby the first step involves the main
   exothermic reaction of methane in air, and the second
   involves the solution of the Zeldovich reaction scheme for
   the formation of the major nitric oxide: nitrogen oxide, NO.
   The first PHOENICS calculation considers the methane
   combustion only, so that the logical variable NOXCAL=F. The
   second and final PHOENICS calculation sets NOXCAL=T which
   deactivates the solution of all dependent variables
   excepting those involved in the nox chemistry.
  ENDDIS
  noxdbegin
    ns       7
    nr       3
    jxdbck   1
    jydbck   1
    jzdbck   1
    jsdbck   30

    gn2ox    0.767
    gn2pr    0.725
    gco2pr   0.151
    gh2opr   0.124

    crkbug   t
    dbgnox   t
  noxdend
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(                                        )
 
 ************************************************************
 ************************************************************
 
 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 = 1
 YVLAST =1.
 YFRAC(1)=1.
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 34
 ZWLAST =34.
   Method of pairs used for grid setting.
 ZFRAC(1)=-34. ;ZFRAC(2)=0.029412
 ************************************************************
  Group 6. Body-Fitted Coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS = T
 NAME(1)=P1 ;NAME(7)=W1
 NAME(14)=H1 ;NAME(136)=NOSR
 NAME(137)=PRDT ;NAME(138)=CRKT
 NAME(139)=XO2 ;NAME(140)=XOH
 NAME(141)=XO ;NAME(142)=XH
 NAME(143)=XN ;NAME(144)=XNO
 NAME(145)=FUEL ;NAME(146)=PROD
 NAME(147)=OXID ;NAME(148)=RHO1
 NAME(149)=TMP1 ;NAME(150)=MIXF
    * 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(W1,Y,Y,N,N,N,Y)
 SOLUTN(H1,Y,Y,N,N,N,Y)
 SOLUTN(NOSR,Y,N,N,N,N,Y)
 SOLUTN(PRDT,Y,N,N,N,N,Y)
 SOLUTN(CRKT,Y,N,N,N,N,Y)
 SOLUTN(XO2,Y,N,N,N,N,Y)
 SOLUTN(XOH,Y,N,N,N,N,Y)
 SOLUTN(XO,Y,N,N,N,N,Y)
 SOLUTN(XH,Y,N,N,N,N,Y)
 SOLUTN(XN,Y,N,N,N,N,Y)
 SOLUTN(XNO,Y,N,N,N,N,Y)
 SOLUTN(FUEL,Y,N,N,N,N,Y)
 SOLUTN(PROD,Y,N,N,N,N,Y)
 SOLUTN(OXID,Y,N,N,N,N,Y)
 SOLUTN(RHO1,Y,N,N,N,N,Y)
 SOLUTN(TMP1,Y,N,N,N,N,Y)
 SOLUTN(MIXF,Y,Y,N,N,N,Y)
 DEN1 = 148
 TEMP1 = 149
 ************************************************************
  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(W1,Y,Y,Y,Y,Y,Y)
 TERMS(H1,N,Y,Y,N,Y,N)
 TERMS(MIXF,N,Y,Y,Y,Y,Y)
 DIFCUT =0.5 ;ZDIFAC =1.
 GALA = F ;ADDDIF = F
 NEWRH1 = T
 ISOLX = -1 ;ISOLY = -1 ;ISOLZ = -1
 DENPCO = T
 ************************************************************
  Group 9. Properties used if PRPS is not
  stored, and where PRPS = -1.0 if it is!
 RHO1 = GRND6 ;TMP1 = GRND7 ;EL1 =0.
 TSURR =0. ;TEMP0 =0. ;PRESS0 =1.0E+05
 DVO1DT =0. ;DRH1DP =0.
 RHO1A =16.04303 ;RHO1B =28.941999 ;RHO1C =29.189119
 TMP1A =1500. ;TMP1B =1500. ;TMP1C =1500.
 TMP2A =0.054825 ;TMP2B =4.9E+07 ;TMP2C =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 ENUL =1.0E-05 ;ENUT =0.
 PRNDTL(W1)=1. ;PRNDTL(H1)=1.
 PRNDTL(MIXF)=1.
 PRT(W1)=1. ;PRT(H1)=1.
 PRT(MIXF)=1.
 CP1 = GRND10 ;CP2 =1.
 CP1A =1500. ;CP1B =1500. ;CP1C =1500. ;CP1D =0.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(P1)=1.0E-10 ;FIINIT(W1)=10.
 FIINIT(H1)=4.94335E+07 ;FIINIT(NOSR)=1.0E-10
 FIINIT(PRDT)=0. ;FIINIT(CRKT)=0.
 FIINIT(XO2)=0. ;FIINIT(XOH)=0.
 FIINIT(XO)=0. ;FIINIT(XH)=0.
 FIINIT(XN)=0. ;FIINIT(XNO)=0.
 FIINIT(FUEL)=1.0E-10 ;FIINIT(PROD)=1.0E-10
 FIINIT(OXID)=1.0E-10 ;FIINIT(RHO1)=1.0E-10
 FIINIT(TMP1)=1.0E-10 ;FIINIT(MIXF)=1.0E-10
   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(INLETF ,LOW , 1, 1, 1, 1, 1, 1, 1, 1)
 COVAL(INLETF ,P1 , FIXFLU ,6.676956 )
 COVAL(INLETF ,W1 ,0. ,10. )
 COVAL(INLETF ,H1 ,0. ,4.94335E+07 )
 COVAL(INLETF ,MIXF,0. ,1. )
 
 PATCH(INLETA ,NORTH , 1, 1, 1, 1, 1, 34, 1, 1)
 COVAL(INLETA ,P1 , FIXFLU ,3.72417 )
 COVAL(INLETA ,W1 ,0. ,8.558566 )
 COVAL(INLETA ,H1 ,0. ,1.2E+06 )
 COVAL(INLETA ,MIXF,0. ,0. )
 
 PATCH(OUTLET ,CELL , 1, 1, 1, 1, 34, 34, 1, 1)
 COVAL(OUTLET ,P1 ,1. ,0. )
 COVAL(OUTLET ,H1 ,0. , SAME )
 COVAL(OUTLET ,FUEL,0. , SAME )
 COVAL(OUTLET ,MIXF,0. , SAME )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 50 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 SELREF = T
 RESFAC =1.0E-05
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=25 ;LITER(W1)=10
 LITER(H1)=20 ;LITER(MIXF)=20
 ENDIT(P1)=1.0E-03 ;ENDIT(W1)=1.0E-03
 ENDIT(H1)=1.0E-03 ;ENDIT(MIXF)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,1.)
 RELAX(W1,FALSDT,0.1)
 RELAX(H1,FALSDT,1.0E+04)
 RELAX(NOSR,LINRLX,1.)
 RELAX(PRDT,LINRLX,1.)
 RELAX(CRKT,LINRLX,1.)
 RELAX(XO2,LINRLX,1.)
 RELAX(XOH,LINRLX,1.)
 RELAX(XO,LINRLX,1.)
 RELAX(XH,LINRLX,1.)
 RELAX(XN,LINRLX,1.)
 RELAX(XNO,LINRLX,0.025)
 RELAX(FUEL,LINRLX,1.)
 RELAX(PROD,LINRLX,1.)
 RELAX(OXID,LINRLX,1.)
 RELAX(RHO1,LINRLX,0.1)
 RELAX(TMP1,LINRLX,1.)
 RELAX(MIXF,FALSDT,1.0E+04)
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(P1)=1.0E+10 ;VARMIN(P1)=-5.0E+04
 VARMAX(W1)=1.0E+06 ;VARMIN(W1)=-1.0E+06
 VARMAX(H1)=1.0E+10 ;VARMIN(H1)=-1.0E+10
 VARMAX(NOSR)=1.0E+10 ;VARMIN(NOSR)=-1.0E+10
 VARMAX(PRDT)=1.0E+10 ;VARMIN(PRDT)=-1.0E+10
 VARMAX(CRKT)=1.0E+10 ;VARMIN(CRKT)=-1.0E+10
 VARMAX(XO2)=1.0E+10 ;VARMIN(XO2)=-1.0E+10
 VARMAX(XOH)=1.0E+10 ;VARMIN(XOH)=-1.0E+10
 VARMAX(XO)=1.0E+10 ;VARMIN(XO)=-1.0E+10
 VARMAX(XH)=1.0E+10 ;VARMIN(XH)=-1.0E+10
 VARMAX(XN)=1. ;VARMIN(XN)=0.
 VARMAX(XNO)=1. ;VARMIN(XNO)=0.
 VARMAX(FUEL)=1. ;VARMIN(FUEL)=0.
 VARMAX(PROD)=1. ;VARMIN(PROD)=0.
 VARMAX(OXID)=1. ;VARMIN(OXID)=0.
 VARMAX(RHO1)=10. ;VARMIN(RHO1)=1.0E-02
 VARMAX(TMP1)=4000. ;VARMIN(TMP1)=289.
 VARMAX(MIXF)=1. ;VARMIN(MIXF)=0.
 ************************************************************
  Group 19. Data transmitted to GROUND
 PARSOL = F
 ISG62 = 1
 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,N,Y,Y,Y,Y)
 OUTPUT(W1,Y,N,Y,Y,Y,Y)
 OUTPUT(H1,Y,N,Y,Y,Y,Y)
 OUTPUT(NOSR,N,N,N,N,N,N)
 OUTPUT(PRDT,N,N,N,N,N,N)
 OUTPUT(CRKT,N,N,N,N,N,N)
 OUTPUT(XO2,N,N,N,N,N,N)
 OUTPUT(XOH,N,N,N,N,N,N)
 OUTPUT(XO,N,N,N,N,N,N)
 OUTPUT(XH,N,N,N,N,N,N)
 OUTPUT(XN,N,N,N,N,N,N)
 OUTPUT(XNO,N,N,N,N,N,N)
 OUTPUT(FUEL,Y,N,Y,N,N,N)
 OUTPUT(PROD,Y,N,Y,N,N,N)
 OUTPUT(OXID,Y,N,Y,N,N,N)
 OUTPUT(RHO1,Y,N,Y,N,N,N)
 OUTPUT(TMP1,Y,N,Y,N,N,N)
 OUTPUT(MIXF,Y,N,Y,Y,Y,Y)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 1 ;IYMON = 1 ;IZMON = 12
 NPRMON = 1 ;NPRMNT = 1 ;TSTSWP = -1
 UWATCH = T ;USTEER = T
 HIGHLO = F
 ************************************************************
  Group 23.Field Print-Out & Plot Control
 NPRINT = 50 ;NUMCLS = 5
 NZPRIN = 1 ;IZPRF = 1 ;IZPRL = 10000
 XZPR = F ;YZPR = T
 IPLTF = 1 ;IPLTL = 50 ;NPLT = 5
 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