TALK=T;RUN(1,1)
  DISPLAY

  "R$
ADIANT TRANSFER IN A FURNACE"

  Comparison is made of the heat flux predicted by IMMERSOL with
  that predicted by classical methods for a problem presented in the
  textbook "Heat and Mass Transfer" by A.F. Mills, published by
  Irwin in 1995.

  A 3m x 3m furnace is in question, long enough for variations in
  the length direction to be neglected.The top wall is held at
  1400 deg K,the side walls at 1700 deg K, and ths floor at
  600 deg K.

  All surfaces have an emissivity of 0.5.

  The task is to predict the heat flux to the floor, which Mills
  calculates as 159 kW/m**2

  ENDDIS
  PHOTON USE
  p



  con tem1 y 1 fi;0.001 ; pause
  con t3   y 1 fi;0.001 ; pause
  con qrx  y 1 fi;0.001 ; pause
  con qrz  y 1 fi;0.001 ; pause

  con #ah1 y 1 fi;0.001 ; pause
  con #ae1 y 1 fi;0.001 ; pause
  con #ap1 y 1 fi;0.001 ; pause
  con #rs1 y 1 fi;0.001 ; pause
  con #cr1 y 1 fi;0.001 ; pause


  con #ah3 y 1 fi;0.001  ; pause
  con #ae3 y 1 fi;0.001  ; pause
  con #ap3 y 1 fi;0.001  ; pause
  con #rs3 y 1 fi;0.001  ; pause
  con #cr3 y 1 fi;0.001  ; pause
  ENDUSE
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(IMMERSOL for heat-treatment furnace     )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 0
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 30
 XULAST =3.
 XFRAC(1)=0.033333 ;XFRAC(2)=0.066667
 XFRAC(3)=0.1 ;XFRAC(4)=0.133333
 XFRAC(5)=0.166667 ;XFRAC(6)=0.2
 XFRAC(7)=0.233333 ;XFRAC(8)=0.266667
 XFRAC(9)=0.3 ;XFRAC(10)=0.333333
 XFRAC(11)=0.366667 ;XFRAC(12)=0.4
 XFRAC(13)=0.433333 ;XFRAC(14)=0.466667
 XFRAC(15)=0.5 ;XFRAC(16)=0.533333
 XFRAC(17)=0.566667 ;XFRAC(18)=0.6
 XFRAC(19)=0.633333 ;XFRAC(20)=0.666667
 XFRAC(21)=0.7 ;XFRAC(22)=0.733333
 XFRAC(23)=0.766667 ;XFRAC(24)=0.8
 XFRAC(25)=0.833333 ;XFRAC(26)=0.866667
 XFRAC(27)=0.9 ;XFRAC(28)=0.933333
 XFRAC(29)=0.966667 ;XFRAC(30)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 1
 YVLAST =1.
 YFRAC(1)=1.
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 30
 ZWLAST =3.
 ZFRAC(1)=0.033333 ;ZFRAC(2)=0.066667
 ZFRAC(3)=0.1 ;ZFRAC(4)=0.133333
 ZFRAC(5)=0.166667 ;ZFRAC(6)=0.2
 ZFRAC(7)=0.233333 ;ZFRAC(8)=0.266667
 ZFRAC(9)=0.3 ;ZFRAC(10)=0.333333
 ZFRAC(11)=0.366667 ;ZFRAC(12)=0.4
 ZFRAC(13)=0.433333 ;ZFRAC(14)=0.466667
 ZFRAC(15)=0.5 ;ZFRAC(16)=0.533333
 ZFRAC(17)=0.566667 ;ZFRAC(18)=0.6
 ZFRAC(19)=0.633333 ;ZFRAC(20)=0.666667
 ZFRAC(21)=0.7 ;ZFRAC(22)=0.733333
 ZFRAC(23)=0.766667 ;ZFRAC(24)=0.8
 ZFRAC(25)=0.833333 ;ZFRAC(26)=0.866667
 ZFRAC(27)=0.9 ;ZFRAC(28)=0.933333
 ZFRAC(29)=0.966667 ;ZFRAC(30)=1.
 ************************************************************
  Group 6. Body-Fitted Coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS = T
 NAME(131)=PRPS ;NAME(132)=#RS3
 NAME(133)=#CR3 ;NAME(134)=#AP3
 NAME(135)=#AE3 ;NAME(136)=#AH3
 NAME(137)=#RS1 ;NAME(138)=#CR1
 NAME(139)=#AP1 ;NAME(140)=#AE1
 NAME(141)=#AH1 ;NAME(142)=LTLS
 NAME(143)=SCAT ;NAME(144)=EMIS
 NAME(145)=WDIS ;NAME(146)=WGAP
 NAME(147)=T3 ;NAME(148)=QRZ
 NAME(149)=QRX ;NAME(150)=TEM1
    * Y in SOLUTN argument list denotes:
    * 1-stored 2-solved 3-whole-field
    * 4-point-by-point 5-explicit 6-harmonic averaging 
 SOLUTN(PRPS,Y,N,N,N,N,N)
 SOLUTN(#RS3,Y,N,N,N,N,N)
 SOLUTN(#CR3,Y,N,N,N,N,N)
 SOLUTN(#AP3,Y,N,N,N,N,N)
 SOLUTN(#AE3,Y,N,N,N,N,N)
 SOLUTN(#AH3,Y,N,N,N,N,N)
 SOLUTN(#RS1,Y,N,N,N,N,N)
 SOLUTN(#CR1,Y,N,N,N,N,N)
 SOLUTN(#AP1,Y,N,N,N,N,N)
 SOLUTN(#AE1,Y,N,N,N,N,N)
 SOLUTN(#AH1,Y,N,N,N,N,N)
 SOLUTN(LTLS,Y,Y,Y,N,N,Y)
 SOLUTN(SCAT,Y,N,N,N,N,Y)
 SOLUTN(EMIS,Y,N,N,N,N,Y)
 SOLUTN(WDIS,Y,N,N,N,N,Y)
 SOLUTN(WGAP,Y,N,N,N,N,Y)
 SOLUTN(T3,Y,Y,N,N,N,Y)
 SOLUTN(QRZ,Y,N,N,N,N,Y)
 SOLUTN(QRX,Y,N,N,N,N,Y)
 SOLUTN(TEM1,Y,Y,Y,N,N,Y)
 PRPS = 131
 ************************************************************
  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(LTLS,N,N,Y,N,Y,Y)
 TERMS(T3,N,N,Y,N,Y,N)
 TERMS(TEM1,N,Y,Y,Y,Y,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.189 ;TMP1 =0. ;EL1 =0.
 TSURR =0. ;TEMP0 =0. ;PRESS0 =1.0E+05
 DVO1DT =3.41E-03 ;DRH1DP =0.
 EMISS =1.0E-05 ;SCATT =1.0E-05
 RADIA =0. ;RADIB =0.
 ENUL =1.544E-05 ;ENUT =0.
 PRNDTL(LTLS)=1. ;PRNDTL(T3)=-0.0258
 PRNDTL(TEM1)=-0.0258
 PRT(LTLS)=1. ;PRT(T3)=1.
 PRT(TEM1)=1.
 CP1 =1005. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(PRPS)=-1. ;FIINIT(#RS3)=1.0E-10
 FIINIT(#CR3)=1.0E-10 ;FIINIT(#AP3)=1.0E-10
 FIINIT(#AE3)=1.0E-10 ;FIINIT(#AH3)=1.0E-10
 FIINIT(#RS1)=1.0E-10 ;FIINIT(#CR1)=1.0E-10
 FIINIT(#AP1)=1.0E-10 ;FIINIT(#AE1)=1.0E-10
 FIINIT(#AH1)=1.0E-10 ;FIINIT(LTLS)=1.0E-10
 FIINIT(SCAT)=1.0E-05 ;FIINIT(EMIS)=1.0E-05
 FIINIT(WDIS)=0.1 ;FIINIT(WGAP)=1.0E-10
 FIINIT(T3)=1.0E-10 ;FIINIT(QRZ)=1.0E-10
 FIINIT(QRX)=1.0E-10 ;FIINIT(TEM1)=1.0E-10
 
 PATCH(OB1 ,INIVAL, 1, 1, 1, 1, 1, 30, 1, 1)
 INIT(OB1 ,PRPS,0. ,100. )
 INIT(OB1 ,EMIS,0. ,0.5 )
 
 PATCH(OB2 ,INIVAL, 30, 30, 1, 1, 1, 30, 1, 1)
 INIT(OB2 ,PRPS,0. ,100. )
 INIT(OB2 ,EMIS,0. ,0.5 )
 
 PATCH(OB3 ,INIVAL, 1, 30, 1, 1, 30, 30, 1, 1)
 INIT(OB3 ,PRPS,0. ,100. )
 INIT(OB3 ,EMIS,0. ,0.5 )
 
 PATCH(OB4 ,INIVAL, 1, 30, 1, 1, 1, 1, 1, 1)
 INIT(OB4 ,PRPS,0. ,100. )
 INIT(OB4 ,EMIS,0. ,0.5 )
 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(OC1 ,VOLUME, 1, 1, 1, 1, 1, 30, 1, 1)
 COVAL(OC1 ,T3 ,2.02E+10 ,1700. )
 
 PATCH(OC2 ,VOLUME, 30, 30, 1, 1, 1, 30, 1, 1)
 COVAL(OC2 ,T3 ,2.02E+10 ,1700. )
 
 PATCH(OC3 ,VOLUME, 1, 30, 1, 1, 30, 30, 1, 1)
 COVAL(OC3 ,T3 ,2.02E+10 ,1400. )
 
 PATCH(OC4 ,VOLUME, 1, 30, 1, 1, 1, 1, 1, 1)
 COVAL(OC4 ,T3 ,2.02E+10 ,600. )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 1000 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 SELREF = T
 RESFAC =1.0E-03
 ************************************************************
  Group 16. Terminate Iterations
 LITER(LTLS)=20 ;LITER(T3)=20
 LITER(TEM1)=20
 ENDIT(LTLS)=1.0E-03 ;ENDIT(T3)=1.0E-03
 ENDIT(TEM1)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(PRPS,LINRLX,1.)
 RELAX(#RS3,LINRLX,1.)
 RELAX(#CR3,LINRLX,1.)
 RELAX(#AP3,LINRLX,1.)
 RELAX(#AE3,LINRLX,1.)
 RELAX(#AH3,LINRLX,1.)
 RELAX(#RS1,LINRLX,1.)
 RELAX(#CR1,LINRLX,1.)
 RELAX(#AP1,LINRLX,1.)
 RELAX(#AE1,LINRLX,1.)
 RELAX(#AH1,LINRLX,1.)
 RELAX(LTLS,FALSDT,1.0E+09)
 RELAX(SCAT,LINRLX,1.)
 RELAX(EMIS,LINRLX,1.)
 RELAX(WDIS,LINRLX,1.)
 RELAX(WGAP,LINRLX,1.)
 RELAX(T3,LINRLX,0.5)
 RELAX(QRZ,LINRLX,1.)
 RELAX(QRX,LINRLX,1.)
 RELAX(TEM1,LINRLX,0.5)
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10
 VARMAX(#RS3)=1.0E+10 ;VARMIN(#RS3)=-1.0E+10
 VARMAX(#CR3)=1.0E+10 ;VARMIN(#CR3)=-1.0E+10
 VARMAX(#AP3)=1.0E+10 ;VARMIN(#AP3)=-1.0E+10
 VARMAX(#AE3)=1.0E+10 ;VARMIN(#AE3)=-1.0E+10
 VARMAX(#AH3)=1.0E+10 ;VARMIN(#AH3)=-1.0E+10
 VARMAX(#RS1)=1.0E+10 ;VARMIN(#RS1)=-1.0E+10
 VARMAX(#CR1)=1.0E+10 ;VARMIN(#CR1)=-1.0E+10
 VARMAX(#AP1)=1.0E+10 ;VARMIN(#AP1)=-1.0E+10
 VARMAX(#AE1)=1.0E+10 ;VARMIN(#AE1)=-1.0E+10
 VARMAX(#AH1)=1.0E+10 ;VARMIN(#AH1)=-1.0E+10
 VARMAX(LTLS)=1.0E+10 ;VARMIN(LTLS)=-1.0E+10
 VARMAX(SCAT)=1.0E+10 ;VARMIN(SCAT)=-1.0E+10
 VARMAX(EMIS)=1.0E+10 ;VARMIN(EMIS)=-1.0E+10
 VARMAX(WDIS)=1.0E+10 ;VARMIN(WDIS)=-1.0E+10
 VARMAX(WGAP)=1.0E+10 ;VARMIN(WGAP)=-1.0E+10
 VARMAX(T3)=1700. ;VARMIN(T3)=600.
 VARMAX(QRZ)=1.0E+10 ;VARMIN(QRZ)=-1.0E+10
 VARMAX(QRX)=1.0E+10 ;VARMIN(QRX)=-1.0E+10
 VARMAX(TEM1)=1700. ;VARMIN(TEM1)=600.
 ************************************************************
  Group 19. Data transmitted to GROUND
 PARSOL = F
 ISG62 = 1
 SPEDAT(SET,DOMAIN,PHASE_1_MAT,I,0)
 SPEDAT(SET,STORED,#AH1,C,=AHCO(TEM1)!EQCOEF)
 SPEDAT(SET,STORED,#AE1,C,=AECO(TEM1)!EQCOEF)
 SPEDAT(SET,STORED,#AP1,C,=APCO(TEM1)!EQCOEF)
 SPEDAT(SET,STORED,#CR1,C,=CORR(TEM1)!CORREC)
 SPEDAT(SET,STORED,#RS1,C,=RESI(TEM1)!RESIDU)
 SPEDAT(SET,STORED,#AH3,C,=AHCO(T3)!EQCOEF)
 SPEDAT(SET,STORED,#AE3,C,=AECO(T3)!EQCOEF)
 SPEDAT(SET,STORED,#AP3,C,=APCO(T3)!EQCOEF)
 SPEDAT(SET,STORED,#CR3,C,=CORR(T3)!CORREC)
 SPEDAT(SET,STORED,#RS3,C,=RESI(T3)!RESIDU)
 SPEDAT(SET,GXMONI,PLOTALL,L,T)
 SPEDAT(SET,OBJNAM,!OB1,C,B1)
 SPEDAT(SET,OBJTYP,!OB1,C,BLOCKAGE)
 SPEDAT(SET,B1,MATERIAL,R,100.)
 SPEDAT(SET,OBJNAM,!OC1,C,B1)
 SPEDAT(SET,OBJTYP,!OC1,C,BLOCKAGE)
 SPEDAT(SET,OBJNAM,!OB2,C,B2)
 SPEDAT(SET,OBJTYP,!OB2,C,BLOCKAGE)
 SPEDAT(SET,B2,MATERIAL,R,100.)
 SPEDAT(SET,OBJNAM,!OC2,C,B2)
 SPEDAT(SET,OBJTYP,!OC2,C,BLOCKAGE)
 SPEDAT(SET,OBJNAM,!OB3,C,B3)
 SPEDAT(SET,OBJTYP,!OB3,C,BLOCKAGE)
 SPEDAT(SET,B3,MATERIAL,R,100.)
 SPEDAT(SET,OBJNAM,!OC3,C,B3)
 SPEDAT(SET,OBJTYP,!OC3,C,BLOCKAGE)
 SPEDAT(SET,OBJNAM,!OB4,C,B4)
 SPEDAT(SET,OBJTYP,!OB4,C,BLOCKAGE)
 SPEDAT(SET,B4,MATERIAL,R,100.)
 SPEDAT(SET,OBJNAM,!OC4,C,B4)
 SPEDAT(SET,OBJTYP,!OC4,C,BLOCKAGE)
 SPEDAT(SET,FACETDAT,NUMOBJ,I,4)
 SPEDAT(SET,MATERIAL,100,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(PRPS,Y,N,Y,N,N,N)
 OUTPUT(#RS3,Y,N,Y,N,N,N)
 OUTPUT(#CR3,Y,N,Y,N,N,N)
 OUTPUT(#AP3,Y,N,Y,N,N,N)
 OUTPUT(#AE3,Y,N,Y,N,N,N)
 OUTPUT(#AH3,Y,N,Y,N,N,N)
 OUTPUT(#RS1,Y,N,Y,N,N,N)
 OUTPUT(#CR1,Y,N,Y,N,N,N)
 OUTPUT(#AP1,Y,N,Y,N,N,N)
 OUTPUT(#AE1,Y,N,Y,N,N,N)
 OUTPUT(#AH1,Y,N,Y,N,N,N)
 OUTPUT(LTLS,Y,N,Y,Y,Y,Y)
 OUTPUT(SCAT,Y,N,Y,N,N,N)
 OUTPUT(EMIS,Y,N,Y,N,N,N)
 OUTPUT(WDIS,Y,N,N,N,N,N)
 OUTPUT(WGAP,Y,N,Y,N,N,N)
 OUTPUT(T3,Y,N,Y,Y,Y,Y)
 OUTPUT(QRZ,Y,N,Y,N,N,N)
 OUTPUT(QRX,Y,N,Y,N,N,N)
 OUTPUT(TEM1,Y,N,Y,Y,Y,Y)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 5 ;IYMON = 1 ;IZMON = 5
 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
 NZPRIN = -1 ;IZPRF = 1 ;IZPRL = 10000
 XZPR = F ;YZPR = F
 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