TALK=T;RUN(1,1)
  DISPLAY


   IMMERSOL is used to simulate 2D radiative heat exchange in a
   duct flow with fixed wall temperatures. The flow may be laminar
   or turbulent. TEM1 and T3 are solved.

   Two solid plates (which may be of different materials and
   emissivities) are situated within the duct.

   The plates within the duct take up intermediate temperatures,
   being heated by radiation, but cooled by convection.


  ENDDIS
  PHOTON USE
   p ; ; ; ; ;

   msg Computational Domain:
   gr k 1
   use patgeo
   set prop off
   msg Press Any Key to Continue...
   pause
   cl
   msg Velocity Vectors:
   vec k 1 sh
   msg Press Any Key to Continue...
   pause
   cl
   msg Contours of Pressure:
   con p1 k 1 fi;0.005
   pause
   cl
   msg Contours of TEM1:
   con tem1 k 1 fi;0.005
   pause
   cl
   msg Contours of T3:
   con t3 k 1 fi;0.005
   pause
   cl
   msg Contours of x-direction radiation flux
   con qrx k 1 fi;0.005
   pause
   cl
   msg Contours of y-direction radiation flux
   con qry k 1 fi;0.005
  ENDUSE
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(2D radiative heat exchange,TEM1 + T3:209)
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 209
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 20
 XULAST =1.
 XFRAC(1)=0.04 ;XFRAC(2)=0.08
 XFRAC(3)=0.12 ;XFRAC(4)=0.16
 XFRAC(5)=0.2 ;XFRAC(6)=0.26
 XFRAC(7)=0.32 ;XFRAC(8)=0.38
 XFRAC(9)=0.44 ;XFRAC(10)=0.5
 XFRAC(11)=0.56 ;XFRAC(12)=0.62
 XFRAC(13)=0.68 ;XFRAC(14)=0.74
 XFRAC(15)=0.8 ;XFRAC(16)=0.84
 XFRAC(17)=0.88 ;XFRAC(18)=0.92
 XFRAC(19)=0.96 ;XFRAC(20)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 21
 YVLAST =0.34
 YFRAC(1)=0.058824 ;YFRAC(2)=0.117647
 YFRAC(3)=0.176471 ;YFRAC(4)=0.235294
 YFRAC(5)=0.294118 ;YFRAC(6)=0.313726
 YFRAC(7)=0.333333 ;YFRAC(8)=0.352941
 YFRAC(9)=0.411765 ;YFRAC(10)=0.470588
 YFRAC(11)=0.529412 ;YFRAC(12)=0.588235
 YFRAC(13)=0.647059 ;YFRAC(14)=0.666667
 YFRAC(15)=0.686275 ;YFRAC(16)=0.705882
 YFRAC(17)=0.764706 ;YFRAC(18)=0.823529
 YFRAC(19)=0.882353 ;YFRAC(20)=0.941176
 YFRAC(21)=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(1)=P1 ;NAME(3)=U1
 NAME(5)=V1 ;NAME(12)=KE
 NAME(13)=EP ;NAME(134)=ENUT
 NAME(135)=GEN1 ;NAME(136)=QRY
 NAME(137)=QRX ;NAME(138)=TDIF
 NAME(139)=HTCO ;NAME(140)=STAN
 NAME(141)=KOND ;NAME(142)=SPH1
 NAME(143)=PRPS ;NAME(144)=TEM1
 NAME(145)=LTLS ;NAME(146)=WDIS
 NAME(147)=WGAP ;NAME(148)=T3
 NAME(149)=SCAT ;NAME(150)=EMIS
    * 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,N,N,N,Y)
 SOLUTN(U1,Y,Y,N,N,N,Y)
 SOLUTN(V1,Y,Y,N,N,N,Y)
 SOLUTN(KE,Y,Y,N,N,N,N)
 SOLUTN(EP,Y,Y,N,N,N,N)
 SOLUTN(ENUT,Y,N,N,N,N,Y)
 SOLUTN(GEN1,Y,N,N,N,N,Y)
 SOLUTN(QRY,Y,N,N,N,N,Y)
 SOLUTN(QRX,Y,N,N,N,N,Y)
 SOLUTN(TDIF,Y,N,N,N,N,N)
 SOLUTN(HTCO,Y,N,N,N,N,Y)
 SOLUTN(STAN,Y,N,N,N,N,Y)
 SOLUTN(KOND,Y,N,N,N,N,Y)
 SOLUTN(SPH1,Y,N,N,N,N,Y)
 SOLUTN(PRPS,Y,N,N,N,N,Y)
 SOLUTN(TEM1,Y,Y,N,N,N,Y)
 SOLUTN(LTLS,Y,Y,Y,N,N,Y)
 SOLUTN(WDIS,Y,N,N,N,N,N)
 SOLUTN(WGAP,Y,N,N,N,N,Y)
 SOLUTN(T3,Y,Y,N,N,N,Y)
 SOLUTN(SCAT,Y,N,N,N,N,Y)
 SOLUTN(EMIS,Y,N,N,N,N,Y)
 VIST = 134
 PRPS = 143
 ************************************************************
  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(U1,Y,Y,Y,Y,Y,Y)
 TERMS(V1,Y,Y,Y,Y,Y,Y)
 TERMS(KE,N,Y,Y,Y,Y,N)
 TERMS(EP,N,Y,Y,Y,Y,N)
 TERMS(TEM1,N,Y,Y,N,Y,N)
 TERMS(LTLS,N,N,Y,N,Y,Y)
 TERMS(T3,N,N,Y,N,Y,N)
 DIFCUT =0.5 ;ZDIFAC =1.
 GALA = F ;ADDDIF = F
 NEWENT = T
 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 = GRND4
 TSURR =0. ;TEMP0 =0. ;PRESS0 =0.
 DVO1DT =3.41E-03 ;DRH1DP =0.
 EMISS =1. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 EL1A =0. ;EL1B =0. ;EL1C =0.
 ENUL =1.544E-05 ;ENUT = GRND3
 ENUTA =0. ;ENUTB =0. ;ENUTC =0.
 IENUTA = 0
 PRNDTL(U1)=1. ;PRNDTL(V1)=1.
 PRNDTL(KE)=1. ;PRNDTL(EP)=1.
 PRNDTL(TEM1)=-0.0258 ;PRNDTL(LTLS)=1.
 PRNDTL(T3)=-0.0258
 PRT(U1)=1. ;PRT(V1)=1.
 PRT(KE)=1. ;PRT(EP)=1.314
 PRT(TEM1)=1. ;PRT(LTLS)=1.
 PRT(T3)=1.
 CP1 =1005. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(P1)=1.0E-10 ;FIINIT(U1)=2.
 FIINIT(V1)=1.0E-10 ;FIINIT(KE)=0.45
 FIINIT(EP)=0.540273 ;FIINIT(ENUT)=1.0E-10
 FIINIT(GEN1)=1.0E-10 ;FIINIT(QRY)=1.0E-10
 FIINIT(QRX)=1.0E-10 ;FIINIT(TDIF)=1.0E-10
 FIINIT(HTCO)=1.0E-10 ;FIINIT(STAN)=1.0E-10
 FIINIT(KOND)=1.0E-10 ;FIINIT(SPH1)=1.0E-10
 FIINIT(PRPS)=-1. ;FIINIT(TEM1)=300.
 FIINIT(LTLS)=1.0E-10 ;FIINIT(WDIS)=0.1
 FIINIT(WGAP)=1.0E-10 ;FIINIT(T3)=300.
 FIINIT(SCAT)=0. ;FIINIT(EMIS)=1.
 
 PATCH(PLT1 ,INIVAL, 6, 15, 6, 8, 1, 1, 1, 1)
 INIT(PLT1 ,PRPS,0. ,111. )
 INIT(PLT1 ,EMIS,0. ,0.8 )
 
 PATCH(PLT2 ,INIVAL, 6, 15, 14, 16, 1, 1, 1, 1)
 INIT(PLT2 ,PRPS,0. ,112. )
 INIT(PLT2 ,EMIS,0. ,0.2 )
 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(KESOURCE,PHASEM, 0, 0, 0, 0, 0, 0, 1, 1)
 COVAL(KESOURCE,KE , GRND4 , GRND4 )
 COVAL(KESOURCE,EP , GRND4 , GRND4 )
 
 PATCH(IN1 ,WEST , 1, 1, 1, 21, 1, 1, 1, 1)
 COVAL(IN1 ,P1 , FIXFLU ,2.378 )
 COVAL(IN1 ,U1 ,0. ,2. )
 COVAL(IN1 ,V1 ,0. ,0. )
 COVAL(IN1 ,KE ,0. ,0.45 )
 COVAL(IN1 ,EP ,0. ,0.540273 )
 COVAL(IN1 ,TEM1,0. ,300. )
 
 PATCH(OUT ,EAST , 20, 20, 1, 21, 1, 1, 1, 1)
 COVAL(OUT ,P1 ,1000. ,0. )
 COVAL(OUT ,KE ,0. , SAME )
 COVAL(OUT ,EP ,0. , SAME )
 
 PATCH(IMSWL1 ,SWALL , 1, 20, 1, 1, 1, 1, 1, 1)
 COVAL(IMSWL1 ,U1 , GRND2 ,0. )
 COVAL(IMSWL1 ,KE , GRND2 , GRND2 )
 COVAL(IMSWL1 ,EP , GRND2 , GRND2 )
 COVAL(IMSWL1 ,TEM1, GRND2 ,500. )
 COVAL(IMSWL1 ,T3 , GRND4 ,500. )
 
 PATCH(IMSWL2 ,NWALL , 1, 20, 21, 21, 1, 1, 1, 1)
 COVAL(IMSWL2 ,U1 , GRND2 ,0. )
 COVAL(IMSWL2 ,KE , GRND2 , GRND2 )
 COVAL(IMSWL2 ,EP , GRND2 , GRND2 )
 COVAL(IMSWL2 ,TEM1, GRND2 ,400. )
 COVAL(IMSWL2 ,T3 , GRND4 ,400. )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 250 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 SELREF = T
 RESFAC =1.0E-06
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;LITER(U1)=10
 LITER(V1)=10 ;LITER(KE)=20
 LITER(EP)=20 ;LITER(TEM1)=20
 LITER(LTLS)=20 ;LITER(T3)=20
 ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-03
 ENDIT(V1)=1.0E-03 ;ENDIT(KE)=1.0E-03
 ENDIT(EP)=1.0E-03 ;ENDIT(TEM1)=1.0E-03
 ENDIT(LTLS)=1.0E-03 ;ENDIT(T3)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,1.)
 RELAX(U1,FALSDT,1.)
 RELAX(V1,FALSDT,1.)
 RELAX(KE,LINRLX,0.5)
 RELAX(EP,LINRLX,0.5)
 RELAX(ENUT,LINRLX,1.)
 RELAX(GEN1,LINRLX,1.)
 RELAX(QRY,LINRLX,1.)
 RELAX(QRX,LINRLX,1.)
 RELAX(TDIF,LINRLX,1.)
 RELAX(HTCO,LINRLX,1.)
 RELAX(STAN,LINRLX,1.)
 RELAX(KOND,LINRLX,1.)
 RELAX(SPH1,LINRLX,1.)
 RELAX(PRPS,LINRLX,1.)
 RELAX(TEM1,LINRLX,0.5)
 RELAX(LTLS,FALSDT,1.0E+09)
 RELAX(WDIS,LINRLX,1.)
 RELAX(WGAP,LINRLX,1.)
 RELAX(T3,LINRLX,0.5)
 RELAX(SCAT,LINRLX,1.)
 RELAX(EMIS,LINRLX,1.)
 KELIN = 0
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(P1)=1.0E+10 ;VARMIN(P1)=-1.0E+10
 VARMAX(U1)=1.0E+06 ;VARMIN(U1)=-1.0E+06
 VARMAX(V1)=1.0E+06 ;VARMIN(V1)=-1.0E+06
 VARMAX(KE)=1.0E+10 ;VARMIN(KE)=1.0E-10
 VARMAX(EP)=1.0E+10 ;VARMIN(EP)=1.0E-10
 VARMAX(ENUT)=1.0E+10 ;VARMIN(ENUT)=-1.0E+10
 VARMAX(GEN1)=1.0E+10 ;VARMIN(GEN1)=-1.0E+10
 VARMAX(QRY)=1.0E+10 ;VARMIN(QRY)=-1.0E+10
 VARMAX(QRX)=1.0E+10 ;VARMIN(QRX)=-1.0E+10
 VARMAX(TDIF)=1.0E+10 ;VARMIN(TDIF)=-1.0E+10
 VARMAX(HTCO)=1.0E+10 ;VARMIN(HTCO)=-1.0E+10
 VARMAX(STAN)=1.0E+10 ;VARMIN(STAN)=-1.0E+10
 VARMAX(KOND)=1.0E+10 ;VARMIN(KOND)=-1.0E+10
 VARMAX(SPH1)=1.0E+10 ;VARMIN(SPH1)=-1.0E+10
 VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10
 VARMAX(TEM1)=1.0E+10 ;VARMIN(TEM1)=-1.0E+10
 VARMAX(LTLS)=1.0E+10 ;VARMIN(LTLS)=-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)=1.0E+10 ;VARMIN(T3)=-1.0E+10
 VARMAX(SCAT)=1.0E+10 ;VARMIN(SCAT)=-1.0E+10
 VARMAX(EMIS)=1.0E+10 ;VARMIN(EMIS)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 GENK = T
 PARSOL = F
 ISG62 = 1
 SPEDAT(SET,STORED,TDIF,C,=T3-TEM1!ZSLFIN)
 SPEDAT(SET,DOMAIN,PHASE_1_MAT,I,0)
 SPEDAT(SET,EMISSIVITY,OFIMSWL1,R,0.9)
 SPEDAT(SET,EMISSIVITY,OFIMSWL2,R,0.9)
 SPEDAT(SET,GXMONI,PLOTALL,L,T)
 SPEDAT(SET,MATERIAL,111,L,T)
 SPEDAT(SET,MATERIAL,112,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(U1,Y,N,Y,Y,Y,Y)
 OUTPUT(V1,Y,N,Y,Y,Y,Y)
 OUTPUT(KE,Y,N,Y,Y,Y,Y)
 OUTPUT(EP,Y,N,Y,Y,Y,Y)
 OUTPUT(ENUT,Y,N,Y,N,N,N)
 OUTPUT(GEN1,Y,N,Y,N,N,N)
 OUTPUT(QRY,Y,N,Y,N,N,N)
 OUTPUT(QRX,Y,N,Y,N,N,N)
 OUTPUT(TDIF,Y,N,Y,N,N,N)
 OUTPUT(HTCO,Y,N,Y,N,N,N)
 OUTPUT(STAN,Y,N,Y,N,N,N)
 OUTPUT(KOND,Y,N,Y,N,N,N)
 OUTPUT(SPH1,Y,N,Y,N,N,N)
 OUTPUT(PRPS,Y,N,Y,N,N,N)
 OUTPUT(TEM1,Y,N,Y,Y,Y,Y)
 OUTPUT(LTLS,Y,N,Y,Y,Y,Y)
 OUTPUT(WDIS,Y,N,Y,N,N,N)
 OUTPUT(WGAP,Y,N,Y,N,N,N)
 OUTPUT(T3,Y,N,Y,Y,Y,Y)
 OUTPUT(SCAT,Y,N,Y,N,N,N)
 OUTPUT(EMIS,Y,N,Y,N,N,N)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 11 ;IYMON = 11 ;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