```
TALK=T;RUN(1,1)
DISPLAY
IMMERSOL  2D radiative heat exchange in a duct flow with
fixed wall temperatures.

Laminar or turbulent; H1 - T3 solved. Two solid plates (might
be of different materials) in the middle. The emissivities of
the duct walls, and of each solid can be set to different values.

Chemical reaction in the gas is simulated by the SCRS model.

ENDDIS
PHOTON USE
p ; ; ; ; ;

msg Computational Domain:
gr k 1
use patgeo
msg Press Any Key to Continue...
pause
cl
set vec av off
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 TMP1:
con tmp1 k 1 fi;0.005
pause
cl
msg Contours of T3:
con t3 k 1 fi;0.005
msg Press E  to exit PHOTON ...
ENDUSE
************************************************************
Group 1. Run Title and Number
************************************************************
************************************************************

TEXT(2D radiative heat exchange, + SCRS  :211)

************************************************************
************************************************************

IRUNN = 1 ;LIBREF = 211
************************************************************
Group 2. Time dependence
************************************************************
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.32
YFRAC(1)=0.0625 ;YFRAC(2)=0.125
YFRAC(3)=0.1875 ;YFRAC(4)=0.25
YFRAC(5)=0.3125 ;YFRAC(6)=0.322917
YFRAC(7)=0.333333 ;YFRAC(8)=0.34375
YFRAC(9)=0.40625 ;YFRAC(10)=0.46875
YFRAC(11)=0.53125 ;YFRAC(12)=0.59375
YFRAC(13)=0.65625 ;YFRAC(14)=0.666667
YFRAC(15)=0.677083 ;YFRAC(16)=0.6875
YFRAC(17)=0.75 ;YFRAC(18)=0.8125
YFRAC(19)=0.875 ;YFRAC(20)=0.9375
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(14)=H1
NAME(16)=MIXF ;NAME(132)=ENUT
NAME(133)=GEN1 ;NAME(134)=QRY
NAME(135)=QRX ;NAME(136)=DEN1
NAME(137)=KOND ;NAME(138)=SPH1
NAME(139)=H0_1 ;NAME(140)=TMP1
NAME(141)=PROD ;NAME(142)=OXID
NAME(143)=PRPS ;NAME(144)=FUEL
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(H1,Y,Y,N,N,N,Y)
SOLUTN(MIXF,Y,Y,N,N,N,Y)
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(DEN1,Y,N,N,N,N,Y)
SOLUTN(KOND,Y,N,N,N,N,Y)
SOLUTN(SPH1,Y,N,N,N,N,Y)
SOLUTN(H0_1,Y,N,N,N,N,Y)
SOLUTN(TMP1,Y,N,N,N,N,Y)
SOLUTN(PROD,Y,N,N,N,N,Y)
SOLUTN(OXID,Y,N,N,N,N,Y)
SOLUTN(PRPS,Y,N,N,N,N,Y)
SOLUTN(FUEL,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)
DEN1 = 136
VIST = 132
TEMP1 = 140
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(H1,N,Y,Y,N,Y,N)
TERMS(MIXF,N,Y,Y,Y,Y,Y)
TERMS(FUEL,N,Y,Y,Y,Y,Y)
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
NEWRH1 = T
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 = GRND6 ;TMP1 = GRND8
EL1 = GRND4
TSURR =0. ;TEMP0 =0.
PRESS0 =1.0E+05
DVO1DT =3.41E-03 ;DRH1DP =0.
RHO1A =16. ;RHO1B =29.
RHO1C =28.
TMP1A =0. ;TMP1B =0.
TMP1C =0.
TMP2A =0.054825 ;TMP2B =4.9E+07
TMP2C =0.
EMISS =1. ;SCATT =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(H1)=-0.0258 ;PRNDTL(MIXF)=1.
PRNDTL(FUEL)=1. ;PRNDTL(LTLS)=1.
PRNDTL(T3)=-0.0258
PRT(U1)=1. ;PRT(V1)=1.
PRT(KE)=1. ;PRT(EP)=1.314
PRT(H1)=1. ;PRT(MIXF)=1.
PRT(FUEL)=1. ;PRT(LTLS)=1.
PRT(T3)=1.
CP1 = GRND10 ;CP2 =1.
CP1A =3800. ;CP1B =1005.
CP1C =1005. ;CP1D =0.
************************************************************
Group 10.Inter-Phase Transfer Processes
************************************************************
Group 11.Initial field variables (PHIs)
FIINIT(P1)=1.0E-10 ;FIINIT(U1)=10.
FIINIT(V1)=1.0E-10 ;FIINIT(KE)=11.25
FIINIT(EP)=71.755058 ;FIINIT(H1)=2.987904E+06
FIINIT(MIXF)=0.054825 ;FIINIT(ENUT)=1.0E-10
FIINIT(GEN1)=1.0E-10 ;FIINIT(QRY)=1.0E-10
FIINIT(QRX)=1.0E-10 ;FIINIT(DEN1)=1.0E-10
FIINIT(KOND)=1.0E-10 ;FIINIT(SPH1)=1.0E-10
FIINIT(H0_1)=1.0E-10 ;FIINIT(TMP1)=1.0E-10
FIINIT(PROD)=1.0E-10 ;FIINIT(OXID)=1.0E-10
FIINIT(PRPS)=-1. ;FIINIT(FUEL)=0.054825
FIINIT(LTLS)=1.0E-10 ;FIINIT(WDIS)=0.1
FIINIT(WGAP)=1.0E-10 ;FIINIT(T3)=1.0E-10
FIINIT(SCAT)=0. ;FIINIT(EMIS)=1.

PATCH(PLT1 ,INIVAL, 6, 15, 6, 8, 1, 1, 1, 1)
INIT(PLT1 ,H1 ,0. ,6.78E+04 )
INIT(PLT1 ,PRPS,0. ,111. )
INIT(PLT1 ,EMIS,0. ,0.8 )

PATCH(PLT2 ,INIVAL, 6, 15, 14, 16, 1, 1, 1, 1)
INIT(PLT2 ,H1 ,0. ,1.419E+05 )
INIT(PLT2 ,PRPS,0. ,112. )
INIT(PLT2 ,EMIS,0. ,0.1 )
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 ,11.626974 )
COVAL(IN1 ,U1 ,0. ,10. )
COVAL(IN1 ,V1 ,0. ,0. )
COVAL(IN1 ,KE ,0. ,11.25 )
COVAL(IN1 ,EP ,0. ,71.755058 )
COVAL(IN1 ,H1 ,0. ,2.987904E+06 )
COVAL(IN1 ,MIXF,0. ,0.054825 )
COVAL(IN1 ,FUEL,0. ,0.054825 )

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 ,H1 , GRND2 , GRND4 )
COVAL(IMSWL1 ,T3 , GRND4 ,1000. )

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 ,H1 , GRND2 , GRND4 )
COVAL(IMSWL2 ,T3 , GRND4 ,1000. )

PATCH(CHSOTB ,PHASEM, 1, 20, 1, 21, 1, 1, 1, 1)
COVAL(CHSOTB ,FUEL, GRND9 , GRND9 )
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-04
************************************************************
Group 16. Terminate Iterations
LITER(P1)=20 ;LITER(U1)=10
LITER(V1)=10 ;LITER(KE)=20
LITER(EP)=20 ;LITER(H1)=20
LITER(MIXF)=20 ;LITER(FUEL)=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(H1)=1.0E-03
ENDIT(MIXF)=1.0E-03 ;ENDIT(FUEL)=1.0E-03
ENDIT(LTLS)=1.0E-03 ;ENDIT(T3)=1.0E-03
************************************************************
Group 17. Relaxation
RELAX(P1,LINRLX,0.1)
RELAX(U1,FALSDT,1.)
RELAX(V1,FALSDT,1.)
RELAX(KE,LINRLX,0.5)
RELAX(EP,LINRLX,0.5)
RELAX(H1,FALSDT,1.0E+09)
RELAX(MIXF,FALSDT,1.0E+09)
RELAX(ENUT,LINRLX,1.)
RELAX(GEN1,LINRLX,1.)
RELAX(QRY,LINRLX,1.)
RELAX(QRX,LINRLX,1.)
RELAX(DEN1,LINRLX,1.)
RELAX(KOND,LINRLX,1.)
RELAX(SPH1,LINRLX,1.)
RELAX(H0_1,LINRLX,1.)
RELAX(TMP1,LINRLX,0.05)
RELAX(PROD,LINRLX,1.)
RELAX(OXID,LINRLX,1.)
RELAX(PRPS,LINRLX,1.)
RELAX(FUEL,FALSDT,1.0E+09)
RELAX(LTLS,FALSDT,1.0E+09)
RELAX(WDIS,LINRLX,1.)
RELAX(WGAP,LINRLX,1.)
RELAX(T3,LINRLX,0.05)
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)=-9.999E+04
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(H1)=1.0E+10 ;VARMIN(H1)=-1.0E+10
VARMAX(MIXF)=1.0E+10 ;VARMIN(MIXF)=-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(DEN1)=1.0E+10 ;VARMIN(DEN1)=-1.0E+10
VARMAX(KOND)=1.0E+10 ;VARMIN(KOND)=-1.0E+10
VARMAX(SPH1)=1.0E+10 ;VARMIN(SPH1)=-1.0E+10
VARMAX(H0_1)=1.0E+10 ;VARMIN(H0_1)=-1.0E+10
VARMAX(TMP1)=3000. ;VARMIN(TMP1)=300.
VARMAX(PROD)=1.0E+10 ;VARMIN(PROD)=-1.0E+10
VARMAX(OXID)=1.0E+10 ;VARMIN(OXID)=-1.0E+10
VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10
VARMAX(FUEL)=1.0E+10 ;VARMIN(FUEL)=-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)=3000. ;VARMIN(T3)=300.
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
CHSOA =0.054825 ;CHSOB =1.
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(H1,Y,N,Y,Y,Y,Y)
OUTPUT(MIXF,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(DEN1,Y,N,Y,N,N,N)
OUTPUT(KOND,Y,N,Y,N,N,N)
OUTPUT(SPH1,Y,N,Y,N,N,N)
OUTPUT(H0_1,Y,N,Y,N,N,N)
OUTPUT(TMP1,Y,N,Y,N,N,N)
OUTPUT(PROD,Y,N,Y,N,N,N)
OUTPUT(OXID,Y,N,Y,N,N,N)
OUTPUT(PRPS,Y,N,Y,N,N,N)
OUTPUT(FUEL,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
```