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

   cl;d 1 h1;d 1 ha;col3 1;blb4 2;redr
   msg    temperature profile; press  to continue
   pause
   cl;d 1 radx;d 1 ra;col3 1;blb4 2;redr
   msg    radiation-flux profile; press e to end
   pause;end
   ENDUSE
  DISPLAY
   The problem considered is that of pure radiative heat
   transfer in a 1d plane-parallel slab containing a uniformly
   distributed heat source. The medium may absorb, emit and
   scatter radiation and the boundaries of the slab are diffuse
   emitters and reflecters kept at the same uniform temperature.
   The medium is gray and because the wall temperatures are
   equal, symmetry can be exploited.
  ENDDIS
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(Radiative Transfer + Heat Source        )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 14
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 50
 XULAST =1.
 XFRAC(1)=0.02 ;XFRAC(6)=0.12
 XFRAC(11)=0.22 ;XFRAC(16)=0.32
 XFRAC(21)=0.42 ;XFRAC(26)=0.52
 XFRAC(31)=0.62 ;XFRAC(36)=0.72
 XFRAC(41)=0.82 ;XFRAC(46)=0.92
 ************************************************************
  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 = T
 NAME(14)=H1 ;NAME(147)=RA
 NAME(148)=HA ;NAME(149)=EMPO
 NAME(150)=RADX
    * Y in SOLUTN argument list denotes:
    * 1-stored 2-solved 3-whole-field
    * 4-point-by-point 5-explicit 6-harmonic averaging 
 SOLUTN(H1,Y,Y,N,N,N,Y)
 SOLUTN(RA,Y,N,N,N,N,Y)
 SOLUTN(HA,Y,N,N,N,N,Y)
 SOLUTN(EMPO,Y,N,N,N,N,Y)
 SOLUTN(RADX,Y,Y,N,N,N,N)
 ************************************************************
  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(H1,N,N,N,N,Y,Y)
 TERMS(RADX,N,N,Y,N,Y,N)
 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 = GRND2 ;EL1 =0.
 TSURR =0. ;TEMP0 =0. ;PRESS0 =0.
 DVO1DT =0. ;DRH1DP =0.
 TMP1A =0. ;TMP1B =1. ;TMP1C =0.
 TMP2A =0. ;TMP2B =0. ;TMP2C =0.
 EMISS =0. ;SCATT =0.
 RADIA =0.5 ;RADIB =0.5
 ENUL =1.0E-05 ;ENUT =0.
 PRNDTL(RADX)=-GRND1
 PRT(RADX)=1.0E+10
 CP1 =1. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(H1)=1000. ;FIINIT(RA)=1.0E-10
 FIINIT(HA)=1.0E-10 ;FIINIT(EMPO)=1.0E-10
 FIINIT(RADX)=5.6697E+04
 
 PATCH(IN1 ,INIVAL, 1, 1, 1, 1, 1, 1, 1, 1)
 INIT(IN1 ,RA ,0. ,1.417397E+05 )
 INIT(IN1 ,HA ,0. ,1456.471191 )
 
 PATCH(IN2 ,INIVAL, 2, 2, 1, 1, 1, 1, 1, 1)
 INIT(IN2 ,RA ,0. ,1.41717E+05 )
 INIT(IN2 ,HA ,0. ,1456.438965 )
 
 PATCH(IN3 ,INIVAL, 3, 3, 1, 1, 1, 1, 1, 1)
 INIT(IN3 ,RA ,0. ,1.416716E+05 )
 INIT(IN3 ,HA ,0. ,1456.374146 )
 
 PATCH(IN4 ,INIVAL, 4, 4, 1, 1, 1, 1, 1, 1)
 INIT(IN4 ,RA ,0. ,1.416036E+05 )
 INIT(IN4 ,HA ,0. ,1456.2771 )
 
 PATCH(IN5 ,INIVAL, 5, 5, 1, 1, 1, 1, 1, 1)
 INIT(IN5 ,RA ,0. ,1.415129E+05 )
 INIT(IN5 ,HA ,0. ,1456.147461 )
 
 PATCH(IN6 ,INIVAL, 6, 6, 1, 1, 1, 1, 1, 1)
 INIT(IN6 ,RA ,0. ,1.413995E+05 )
 INIT(IN6 ,HA ,0. ,1455.985474 )
 
 PATCH(IN7 ,INIVAL, 7, 7, 1, 1, 1, 1, 1, 1)
 INIT(IN7 ,RA ,0. ,1.412634E+05 )
 INIT(IN7 ,HA ,0. ,1455.791016 )
 
 PATCH(IN8 ,INIVAL, 8, 8, 1, 1, 1, 1, 1, 1)
 INIT(IN8 ,RA ,0. ,1.411047E+05 )
 INIT(IN8 ,HA ,0. ,1455.564209 )
 
 PATCH(IN9 ,INIVAL, 9, 9, 1, 1, 1, 1, 1, 1)
 INIT(IN9 ,RA ,0. ,1.409232E+05 )
 INIT(IN9 ,HA ,0. ,1455.304688 )
 
 PATCH(IN10 ,INIVAL, 10, 10, 1, 1, 1, 1, 1, 1)
 INIT(IN10 ,RA ,0. ,1.407191E+05 )
 INIT(IN10 ,HA ,0. ,1455.012573 )
 
 PATCH(IN11 ,INIVAL, 11, 11, 1, 1, 1, 1, 1, 1)
 INIT(IN11 ,RA ,0. ,1.404923E+05 )
 INIT(IN11 ,HA ,0. ,1454.687866 )
 
 PATCH(IN12 ,INIVAL, 12, 12, 1, 1, 1, 1, 1, 1)
 INIT(IN12 ,RA ,0. ,1.402429E+05 )
 INIT(IN12 ,HA ,0. ,1454.330444 )
 
 PATCH(IN13 ,INIVAL, 13, 13, 1, 1, 1, 1, 1, 1)
 INIT(IN13 ,RA ,0. ,1.399707E+05 )
 INIT(IN13 ,HA ,0. ,1453.940063 )
 
 PATCH(IN14 ,INIVAL, 14, 14, 1, 1, 1, 1, 1, 1)
 INIT(IN14 ,RA ,0. ,1.396759E+05 )
 INIT(IN14 ,HA ,0. ,1453.516968 )
 
 PATCH(IN15 ,INIVAL, 15, 15, 1, 1, 1, 1, 1, 1)
 INIT(IN15 ,RA ,0. ,1.393584E+05 )
 INIT(IN15 ,HA ,0. ,1453.060791 )
 
 PATCH(IN16 ,INIVAL, 16, 16, 1, 1, 1, 1, 1, 1)
 INIT(IN16 ,RA ,0. ,1.390182E+05 )
 INIT(IN16 ,HA ,0. ,1452.571655 )
 
 PATCH(IN17 ,INIVAL, 17, 17, 1, 1, 1, 1, 1, 1)
 INIT(IN17 ,RA ,0. ,1.386553E+05 )
 INIT(IN17 ,HA ,0. ,1452.049316 )
 
 PATCH(IN18 ,INIVAL, 18, 18, 1, 1, 1, 1, 1, 1)
 INIT(IN18 ,RA ,0. ,1.382698E+05 )
 INIT(IN18 ,HA ,0. ,1451.493774 )
 
 PATCH(IN19 ,INIVAL, 19, 19, 1, 1, 1, 1, 1, 1)
 INIT(IN19 ,RA ,0. ,1.378616E+05 )
 INIT(IN19 ,HA ,0. ,1450.904785 )
 
 PATCH(IN20 ,INIVAL, 20, 20, 1, 1, 1, 1, 1, 1)
 INIT(IN20 ,RA ,0. ,1.374307E+05 )
 INIT(IN20 ,HA ,0. ,1450.282349 )
 
 PATCH(IN21 ,INIVAL, 21, 21, 1, 1, 1, 1, 1, 1)
 INIT(IN21 ,RA ,0. ,1.369771E+05 )
 INIT(IN21 ,HA ,0. ,1449.626221 )
 
 PATCH(IN22 ,INIVAL, 22, 22, 1, 1, 1, 1, 1, 1)
 INIT(IN22 ,RA ,0. ,1.365009E+05 )
 INIT(IN22 ,HA ,0. ,1448.936401 )
 
 PATCH(IN23 ,INIVAL, 23, 23, 1, 1, 1, 1, 1, 1)
 INIT(IN23 ,RA ,0. ,1.360019E+05 )
 INIT(IN23 ,HA ,0. ,1448.212646 )
 
 PATCH(IN24 ,INIVAL, 24, 24, 1, 1, 1, 1, 1, 1)
 INIT(IN24 ,RA ,0. ,1.354803E+05 )
 INIT(IN24 ,HA ,0. ,1447.454712 )
 
 PATCH(IN25 ,INIVAL, 25, 25, 1, 1, 1, 1, 1, 1)
 INIT(IN25 ,RA ,0. ,1.34936E+05 )
 INIT(IN25 ,HA ,0. ,1446.66272 )
 
 PATCH(IN26 ,INIVAL, 26, 26, 1, 1, 1, 1, 1, 1)
 INIT(IN26 ,RA ,0. ,1.343691E+05 )
 INIT(IN26 ,HA ,0. ,1445.836304 )
 
 PATCH(IN27 ,INIVAL, 27, 27, 1, 1, 1, 1, 1, 1)
 INIT(IN27 ,RA ,0. ,1.337794E+05 )
 INIT(IN27 ,HA ,0. ,1444.97522 )
 
 PATCH(IN28 ,INIVAL, 28, 28, 1, 1, 1, 1, 1, 1)
 INIT(IN28 ,RA ,0. ,1.331671E+05 )
 INIT(IN28 ,HA ,0. ,1444.079468 )
 
 PATCH(IN29 ,INIVAL, 29, 29, 1, 1, 1, 1, 1, 1)
 INIT(IN29 ,RA ,0. ,1.325321E+05 )
 INIT(IN29 ,HA ,0. ,1443.148804 )
 
 PATCH(IN30 ,INIVAL, 30, 30, 1, 1, 1, 1, 1, 1)
 INIT(IN30 ,RA ,0. ,1.318744E+05 )
 INIT(IN30 ,HA ,0. ,1442.182983 )
 
 PATCH(IN31 ,INIVAL, 31, 31, 1, 1, 1, 1, 1, 1)
 INIT(IN31 ,RA ,0. ,1.31194E+05 )
 INIT(IN31 ,HA ,0. ,1441.181885 )
 
 PATCH(IN32 ,INIVAL, 32, 32, 1, 1, 1, 1, 1, 1)
 INIT(IN32 ,RA ,0. ,1.30491E+05 )
 INIT(IN32 ,HA ,0. ,1440.14502 )
 
 PATCH(IN33 ,INIVAL, 33, 33, 1, 1, 1, 1, 1, 1)
 INIT(IN33 ,RA ,0. ,1.297653E+05 )
 INIT(IN33 ,HA ,0. ,1439.07251 )
 
 PATCH(IN34 ,INIVAL, 34, 34, 1, 1, 1, 1, 1, 1)
 INIT(IN34 ,RA ,0. ,1.290169E+05 )
 INIT(IN34 ,HA ,0. ,1437.963989 )
 
 PATCH(IN35 ,INIVAL, 35, 35, 1, 1, 1, 1, 1, 1)
 INIT(IN35 ,RA ,0. ,1.282458E+05 )
 INIT(IN35 ,HA ,0. ,1436.819092 )
 
 PATCH(IN36 ,INIVAL, 36, 36, 1, 1, 1, 1, 1, 1)
 INIT(IN36 ,RA ,0. ,1.27452E+05 )
 INIT(IN36 ,HA ,0. ,1435.637695 )
 
 PATCH(IN37 ,INIVAL, 37, 37, 1, 1, 1, 1, 1, 1)
 INIT(IN37 ,RA ,0. ,1.266356E+05 )
 INIT(IN37 ,HA ,0. ,1434.419434 )
 
 PATCH(IN38 ,INIVAL, 38, 38, 1, 1, 1, 1, 1, 1)
 INIT(IN38 ,RA ,0. ,1.257965E+05 )
 INIT(IN38 ,HA ,0. ,1433.164185 )
 
 PATCH(IN39 ,INIVAL, 39, 39, 1, 1, 1, 1, 1, 1)
 INIT(IN39 ,RA ,0. ,1.249347E+05 )
 INIT(IN39 ,HA ,0. ,1431.871582 )
 
 PATCH(IN40 ,INIVAL, 40, 40, 1, 1, 1, 1, 1, 1)
 INIT(IN40 ,RA ,0. ,1.240502E+05 )
 INIT(IN40 ,HA ,0. ,1430.541138 )
 
 PATCH(IN41 ,INIVAL, 41, 41, 1, 1, 1, 1, 1, 1)
 INIT(IN41 ,RA ,0. ,1.23143E+05 )
 INIT(IN41 ,HA ,0. ,1429.172974 )
 
 PATCH(IN42 ,INIVAL, 42, 42, 1, 1, 1, 1, 1, 1)
 INIT(IN42 ,RA ,0. ,1.222132E+05 )
 INIT(IN42 ,HA ,0. ,1427.766357 )
 
 PATCH(IN43 ,INIVAL, 43, 43, 1, 1, 1, 1, 1, 1)
 INIT(IN43 ,RA ,0. ,1.212607E+05 )
 INIT(IN43 ,HA ,0. ,1426.321045 )
 
 PATCH(IN44 ,INIVAL, 44, 44, 1, 1, 1, 1, 1, 1)
 INIT(IN44 ,RA ,0. ,1.202855E+05 )
 INIT(IN44 ,HA ,0. ,1424.836914 )
 
 PATCH(IN45 ,INIVAL, 45, 45, 1, 1, 1, 1, 1, 1)
 INIT(IN45 ,RA ,0. ,1.192877E+05 )
 INIT(IN45 ,HA ,0. ,1423.313354 )
 
 PATCH(IN46 ,INIVAL, 46, 46, 1, 1, 1, 1, 1, 1)
 INIT(IN46 ,RA ,0. ,1.182671E+05 )
 INIT(IN46 ,HA ,0. ,1421.75 )
 
 PATCH(IN47 ,INIVAL, 47, 47, 1, 1, 1, 1, 1, 1)
 INIT(IN47 ,RA ,0. ,1.172239E+05 )
 INIT(IN47 ,HA ,0. ,1420.146729 )
 
 PATCH(IN48 ,INIVAL, 48, 48, 1, 1, 1, 1, 1, 1)
 INIT(IN48 ,RA ,0. ,1.16158E+05 )
 INIT(IN48 ,HA ,0. ,1418.50293 )
 
 PATCH(IN49 ,INIVAL, 49, 49, 1, 1, 1, 1, 1, 1)
 INIT(IN49 ,RA ,0. ,1.150694E+05 )
 INIT(IN49 ,HA ,0. ,1416.818237 )
 
 PATCH(IN50 ,INIVAL, 50, 50, 1, 1, 1, 1, 1, 1)
 INIT(IN50 ,RA ,0. ,1.139581E+05 )
 INIT(IN50 ,HA ,0. ,1415.092163 )
 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(RADISO ,FREEVL, 0, 0, 0, 0, 0, 0, 1, 1)
 COVAL(RADISO ,H1 , GRND1 , GRND1 )
 COVAL(RADISO ,RADX, GRND1 , GRND1 )
 
 PATCH(WALLR ,EAST , 50, 50, 1, 1, 1, 1, 1, 1)
 COVAL(WALLR ,RADX,1. ,5.6697E+04 )
 
 PATCH(QHEAT ,VOLUME, 1, 50, 1, 1, 1, 1, 1, 1)
 COVAL(QHEAT ,H1 , FIXFLU ,1.13394E+05 )
 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(H1)=20 ;LITER(RADX)=2
 ENDIT(H1)=1.0E-03 ;ENDIT(RADX)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(H1,FALSDT,8.818809E-04)
 RELAX(RA,LINRLX,1.)
 RELAX(HA,LINRLX,1.)
 RELAX(EMPO,LINRLX,1.)
 RELAX(RADX,FALSDT,1.0E+09)
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(H1)=1.0E+10 ;VARMIN(H1)=-1.0E+10
 VARMAX(RA)=1.0E+10 ;VARMIN(RA)=-1.0E+10
 VARMAX(HA)=1.0E+10 ;VARMIN(HA)=-1.0E+10
 VARMAX(EMPO)=1.0E+10 ;VARMIN(EMPO)=-1.0E+10
 VARMAX(RADX)=1.0E+10 ;VARMIN(RADX)=-1.0E+10
 ************************************************************
  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(H1,Y,N,N,Y,Y,Y)
 OUTPUT(RA,Y,N,Y,N,N,N)
 OUTPUT(HA,Y,N,Y,N,N,N)
 OUTPUT(EMPO,Y,N,Y,N,N,N)
 OUTPUT(RADX,Y,N,Y,Y,Y,Y)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 25 ;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 = 5 ;IXPRF = 1 ;IXPRL = 10000
 IPLTF = 1 ;IPLTL = -1 ;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
 
 PATCH(XWISE ,PROFIL, 1, 50, 1, 1, 1, 1, 1, 1)
 PLOT(XWISE ,H1 ,0. ,0. )
 PLOT(XWISE ,RADX,0. ,0. )
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
STOP