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


   cl;gr ou z 1
   msg Contours of temperature T1
   con tem1 z 1 fi;0.005 ; pause
   pause
   cl;gr ou z 1
   msg Contours of coefficients APCO:
   con apt1 k 1 fi;0.005
   pause
   cl;gr ou z 1
   msg Contours of coefficients AECO:
   con aet1 k 1 fi;0.005
   pause
   cl;gr ou z 1
   msg Contours of coefficients AWCO:
   con awt1 k 1 fi;0.005
   pause
   cl;gr ou z 1
   msg Contours of coefficients ANCO:
   con ant1 k 1 fi;0.005
   pause
   cl;gr ou z 1
   msg Contours of coefficients ASCO:
   con ast1 k 1 fi;0.005
   pause
   cl;gr ou z 1
   msg Contours of residuals of temperature RES:
   con tres k 1 fi;0.005
   pause
   cl;gr ou z 1
   msg Contours of temperature corrections CORR:
   con tcor k 1 fi;0.005
   pause

   AUTOPLOT
   file
   phi 5
   aphi 2

   data 1 tem1 y 1
   col3 1
   data 1 tem1 y 3
   colf 2
   data 2 dist anal
   BLB4 3
   REDR
   msg Tem1 at y=1 Blue ; at y=3 Red ;Analytic solution  Crosses

  ENDUSE
  DISPLAY
  This case uses the geometry and finer grid volumes of F301.

  Temperatures at opposite boundaries along x-direction is
  fixed as boundary conditions. Then, uniform u1 is imposed
  in the direction of the temperature gradient. The soulution
  is one dimensional with exponential profile

            (exp((u1*rho1*cp1)/cond)*x) - 1
  T(x) =(------------------------------------------ )*(T2-T1)+T1
            ( exp((u1*rho1*cp1)/cond)*L) -1

         at x=0 T=T1 ; at x=L T=T2

  In-Form facility is used for printing coefficients, residuals
  and corrections and extinction coeffieint.

  PHOTON use is available. AUTOPLOT is used to show the comparison
  of the analytic and PHOENICS solution. Save following table file
  as aphi to use autoplot, then copy it to working directory.

   ----------- aphi ------
        DIST       Anal
   5.000E-01  1.998E+03
   1.500E+00  1.992E+03
   2.500E+00  1.979E+03
   3.500E+00  1.955E+03
   4.500E+00  1.907E+03
   5.500E+00  1.815E+03
   6.500E+00  1.635E+03
   7.500E+00  1.285E+03
   ----------- aphi ------

  ENDDIS
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(Simple f301 (tem1 & uniform u1)         )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 0
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 8
 XULAST =8.
 XFRAC(1)=0.125 ;XFRAC(2)=0.25
 XFRAC(3)=0.375 ;XFRAC(4)=0.5
 XFRAC(5)=0.625 ;XFRAC(6)=0.75
 XFRAC(7)=0.875 ;XFRAC(8)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 6
 YVLAST =6.
 YFRAC(1)=0.166667 ;YFRAC(2)=0.333333
 YFRAC(3)=0.5 ;YFRAC(4)=0.666667
 YFRAC(5)=0.833333 ;YFRAC(6)=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 = T
 NAME(3)=U1 ;NAME(5)=V1
 NAME(141)=TCOR ;NAME(142)=TRES
 NAME(143)=GAT1 ;NAME(144)=AST1
 NAME(145)=ANT1 ;NAME(146)=AWT1
 NAME(147)=AET1 ;NAME(148)=APT1
 NAME(149)=TEM1 ;NAME(150)=PRPS
    * Y in SOLUTN argument list denotes:
    * 1-stored 2-solved 3-whole-field
    * 4-point-by-point 5-explicit 6-harmonic averaging 
 SOLUTN(U1,Y,N,N,N,N,Y)
 SOLUTN(V1,Y,N,N,N,N,Y)
 SOLUTN(TCOR,Y,N,N,N,N,Y)
 SOLUTN(TRES,Y,N,N,N,N,Y)
 SOLUTN(GAT1,Y,N,N,N,N,Y)
 SOLUTN(AST1,Y,N,N,N,N,Y)
 SOLUTN(ANT1,Y,N,N,N,N,Y)
 SOLUTN(AWT1,Y,N,N,N,N,Y)
 SOLUTN(AET1,Y,N,N,N,N,Y)
 SOLUTN(APT1,Y,N,N,N,N,Y)
 SOLUTN(TEM1,Y,Y,Y,N,N,Y)
 SOLUTN(PRPS,Y,N,N,N,N,Y)
 PRPS = 150
 ************************************************************
  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(TEM1,N,Y,Y,Y,N,Y)
 DIFCUT =0.5 ;ZDIFAC =1.
 GALA = F ;ADDDIF = 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 =1. ;TMP1 =0.
 EL1 =0.
 TSURR =0. ;TEMP0 =0.
 PRESS0 =1.0E+05
 DVO1DT =0. ;DRH1DP =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 ENUL =0.015 ;ENUT =0.
 PRNDTL(TEM1)=1.
 PRT(TEM1)=1.
 CP1 =1. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(U1)=1.0E-02 ;FIINIT(V1)=1.0E-10
 FIINIT(TCOR)=1.0E-10 ;FIINIT(TRES)=1.0E-10
 FIINIT(GAT1)=1.0E-10 ;FIINIT(AST1)=1.0E-10
 FIINIT(ANT1)=1.0E-10 ;FIINIT(AWT1)=1.0E-10
 FIINIT(AET1)=1.0E-10 ;FIINIT(APT1)=1.0E-10
 FIINIT(TEM1)=0. ;FIINIT(PRPS)=-1.
   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(^OB1 ,CELL , 1, 0, 0, 0, 0, 0, 1, 1)
 
 PATCH(^OB2 ,CELL , 2, 0, 0, 0, 0, 0, 1, 1)
 
 PATCH(^OB4 ,EAST , 4, 0, 0, 0, 0, 0, 1, 1)
 COVAL(^OB4 ,U1 ,0. ,0. )
 COVAL(^OB4 ,V1 ,0. ,0. )
 COVAL(^OB4 ,TEM1,0. , SAME )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 1 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 SELREF = T
 RESFAC =1.0E-03
 ************************************************************
  Group 16. Terminate Iterations
 LITER(TEM1)=1
 ENDIT(TEM1)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(U1,LINRLX,1.)
 RELAX(V1,LINRLX,1.)
 RELAX(TCOR,LINRLX,1.)
 RELAX(TRES,LINRLX,1.)
 RELAX(GAT1,LINRLX,1.)
 RELAX(AST1,LINRLX,1.)
 RELAX(ANT1,LINRLX,1.)
 RELAX(AWT1,LINRLX,1.)
 RELAX(AET1,LINRLX,1.)
 RELAX(APT1,LINRLX,1.)
 RELAX(TEM1,LINRLX,1.)
 RELAX(PRPS,LINRLX,1.)
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(U1)=1.0E+06 ;VARMIN(U1)=-1.0E+06
 VARMAX(V1)=1.0E+06 ;VARMIN(V1)=-1.0E+06
 VARMAX(TCOR)=1.0E+10 ;VARMIN(TCOR)=-1.0E+10
 VARMAX(TRES)=1.0E+10 ;VARMIN(TRES)=-1.0E+10
 VARMAX(GAT1)=1.0E+10 ;VARMIN(GAT1)=-1.0E+10
 VARMAX(AST1)=1.0E+10 ;VARMIN(AST1)=-1.0E+10
 VARMAX(ANT1)=1.0E+10 ;VARMIN(ANT1)=-1.0E+10
 VARMAX(AWT1)=1.0E+10 ;VARMIN(AWT1)=-1.0E+10
 VARMAX(AET1)=1.0E+10 ;VARMIN(AET1)=-1.0E+10
 VARMAX(APT1)=1.0E+10 ;VARMIN(APT1)=-1.0E+10
 VARMAX(TEM1)=1.0E+10 ;VARMIN(TEM1)=-1.0E+10
 VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 ISG62 = 0
 SPEDAT(SET,FGMB_ITR,TEM1,I,10000)
 SPEDAT(SET,STORED,APT1,C,=APCO(TEM1)!EQCOEF)
 SPEDAT(SET,STORED,AET1,C,=AECO(TEM1)!EQCOEF)
 SPEDAT(SET,STORED,AWT1,C,=AWCO(TEM1)!EQCOEF)
 SPEDAT(SET,STORED,ANT1,C,=ANCO(TEM1)!EQCOEF)
 SPEDAT(SET,STORED,AST1,C,=ASCO(TEM1)!EQCOEF)
 SPEDAT(SET,STORED,GAT1,C,=GAMM(TEM1)!GAMCOF)
 SPEDAT(SET,STORED,TRES,C,=RESI(TEM1)!RESIDU)
 SPEDAT(SET,STORED,TCOR,C,=CORR(TEM1)!CORREC)
 SPEDAT(SET,OBJNAM,^OB1,C,B5)
 SPEDAT(SET,OBJTYP,^OB1,C,FINE_GRID_VOL)
 SPEDAT(SET,^OB1,FINEX,I,6)
 SPEDAT(SET,^OB1,FINEY,I,6)
 SPEDAT(SET,^OB1,FINEZ,I,1)
 SPEDAT(SET,OBJNAM,^OB2,C,B6)
 SPEDAT(SET,OBJTYP,^OB2,C,FINE_GRID_VOL)
 SPEDAT(SET,^OB2,FINEX,I,6)
 SPEDAT(SET,^OB2,FINEY,I,6)
 SPEDAT(SET,^OB2,FINEZ,I,1)
 SPEDAT(SET,OBJNAM,^OB4,C,OUTLET)
 SPEDAT(SET,OBJTYP,^OB4,C,OUTLET)
 SPEDAT(SET,ARATIO,^OB4,R,1.)
 SPEDAT(SET,OBJNAM,^OB5,C,B3)
 SPEDAT(SET,OBJTYP,^OB5,C,PLATE)
 SPEDAT(SET,OBJNAM,^OB6,C,B4)
 SPEDAT(SET,OBJTYP,^OB6,C,PLATE)
 SPEDAT(SET,OBJNAM,^OB7,C,B7)
 SPEDAT(SET,OBJTYP,^OB7,C,PLATE)
 SPEDAT(SET,OBJNAM,^OB8,C,B8)
 SPEDAT(SET,OBJTYP,^OB8,C,PLATE)
 SPEDAT(SET,FACETDAT,NUMOBJ,I,8)
 ************************************************************
  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(U1,Y,N,Y,N,N,N)
 OUTPUT(V1,Y,N,Y,N,N,N)
 OUTPUT(TCOR,Y,N,Y,N,N,N)
 OUTPUT(TRES,Y,N,Y,N,N,N)
 OUTPUT(GAT1,Y,N,Y,N,N,N)
 OUTPUT(AST1,Y,N,Y,N,N,N)
 OUTPUT(ANT1,Y,N,Y,N,N,N)
 OUTPUT(AWT1,Y,N,Y,N,N,N)
 OUTPUT(AET1,Y,N,Y,N,N,N)
 OUTPUT(APT1,Y,N,Y,N,N,N)
 OUTPUT(TEM1,Y,N,Y,Y,Y,Y)
 OUTPUT(PRPS,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
 NYPRIN = -1 ;IYPRF = 1 ;IYPRL = 10000
 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