TALK=T;RUN(1,1)
  DISPLAY

  A volumetric heat source which varies with axial position, z, is
  applied by In-Form to a poorly-conducting long rod held at right
  angles to a cold air stream.

  Inspection of the temperature and velocity fields shows that
  the former is independent of z but the latter depends on z
  strongly as a result of the heat-source distribution

  In-Form is also used to calculate the average Nusselt number and
  to print it in a special INFOROUT file.

  The air flow is laminar. The Reynolds number equals 26.
  The Prandtl number equals 0.71

  Nusselt number calculated by the formula for flow  at right angles
  to a cylinder according to the textbook formula:
         Nu = 0.3*Re^0.6*Pr^1/3
  equals 1.9.
  ENDDIS
  PHOTON USE
  p;;;

  vi 1 2 2
  msg x-direction-velocity contours at low and high z
  con u1 z 1 fi;0.001
  con u1 z m fi;0.001
  pause
  msg temperature contours at low and high z
  con tem1 z 1 fi;0.001
  con tem1 z m fi;0.001
  pause
  ENDUSE
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(Non-uniform heat source in vr-object    )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 0
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 80
 XULAST =0.2
 XFRAC(1)=0.0125 ;XFRAC(2)=0.025
 XFRAC(3)=0.0375 ;XFRAC(4)=0.05
 XFRAC(5)=0.0625 ;XFRAC(6)=0.075
 XFRAC(7)=0.0875 ;XFRAC(8)=0.1
 XFRAC(9)=0.1125 ;XFRAC(10)=0.125
 XFRAC(11)=0.1375 ;XFRAC(12)=0.15
 XFRAC(13)=0.1625 ;XFRAC(14)=0.175
 XFRAC(15)=0.1875 ;XFRAC(16)=0.2
 XFRAC(17)=0.2125 ;XFRAC(18)=0.225
 XFRAC(19)=0.2375 ;XFRAC(20)=0.25
 XFRAC(21)=0.2625 ;XFRAC(22)=0.275
 XFRAC(23)=0.2875 ;XFRAC(24)=0.3
 XFRAC(25)=0.3125 ;XFRAC(26)=0.325
 XFRAC(27)=0.3375 ;XFRAC(28)=0.35
 XFRAC(29)=0.3625 ;XFRAC(30)=0.375
 XFRAC(31)=0.3875 ;XFRAC(32)=0.4
 XFRAC(33)=0.4125 ;XFRAC(34)=0.425
 XFRAC(35)=0.4375 ;XFRAC(36)=0.45
 XFRAC(37)=0.4625 ;XFRAC(38)=0.475
 XFRAC(39)=0.4875 ;XFRAC(40)=0.5
 XFRAC(41)=0.5125 ;XFRAC(42)=0.525
 XFRAC(43)=0.5375 ;XFRAC(44)=0.55
 XFRAC(45)=0.5625 ;XFRAC(46)=0.575
 XFRAC(47)=0.5875 ;XFRAC(48)=0.6
 XFRAC(49)=0.6125 ;XFRAC(50)=0.625
 XFRAC(51)=0.6375 ;XFRAC(52)=0.65
 XFRAC(53)=0.6625 ;XFRAC(54)=0.675
 XFRAC(55)=0.6875 ;XFRAC(56)=0.7
 XFRAC(57)=0.7125 ;XFRAC(58)=0.725
 XFRAC(59)=0.7375 ;XFRAC(60)=0.75
 XFRAC(61)=0.7625 ;XFRAC(62)=0.775
 XFRAC(63)=0.7875 ;XFRAC(64)=0.8
 XFRAC(65)=0.8125 ;XFRAC(66)=0.825
 XFRAC(67)=0.8375 ;XFRAC(68)=0.85
 XFRAC(69)=0.8625 ;XFRAC(70)=0.875
 XFRAC(71)=0.8875 ;XFRAC(72)=0.9
 XFRAC(73)=0.9125 ;XFRAC(74)=0.925
 XFRAC(75)=0.9375 ;XFRAC(76)=0.95
 XFRAC(77)=0.9625 ;XFRAC(78)=0.975
 XFRAC(79)=0.9875 ;XFRAC(80)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 40
 YVLAST =0.1
 YFRAC(1)=0.025 ;YFRAC(2)=0.05
 YFRAC(3)=0.075 ;YFRAC(4)=0.1
 YFRAC(5)=0.125 ;YFRAC(6)=0.15
 YFRAC(7)=0.175 ;YFRAC(8)=0.2
 YFRAC(9)=0.225 ;YFRAC(10)=0.25
 YFRAC(11)=0.275 ;YFRAC(12)=0.3
 YFRAC(13)=0.325 ;YFRAC(14)=0.35
 YFRAC(15)=0.375 ;YFRAC(16)=0.4
 YFRAC(17)=0.425 ;YFRAC(18)=0.45
 YFRAC(19)=0.475 ;YFRAC(20)=0.5
 YFRAC(21)=0.525 ;YFRAC(22)=0.55
 YFRAC(23)=0.575 ;YFRAC(24)=0.6
 YFRAC(25)=0.625 ;YFRAC(26)=0.65
 YFRAC(27)=0.675 ;YFRAC(28)=0.7
 YFRAC(29)=0.725 ;YFRAC(30)=0.75
 YFRAC(31)=0.775 ;YFRAC(32)=0.8
 YFRAC(33)=0.825 ;YFRAC(34)=0.85
 YFRAC(35)=0.875 ;YFRAC(36)=0.9
 YFRAC(37)=0.925 ;YFRAC(38)=0.95
 YFRAC(39)=0.975 ;YFRAC(40)=1.
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 5
 ZWLAST =0.1
 ZFRAC(1)=0.2 ;ZFRAC(2)=0.4
 ZFRAC(3)=0.6 ;ZFRAC(4)=0.8
 ZFRAC(5)=1.
 ************************************************************
  Group 6. Body-Fitted Coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS = T
 NAME(1)=P1 ;NAME(3)=U1
 NAME(5)=V1 ;NAME(7)=W1
 NAME(144)=DEN1 ;NAME(145)=ENUL
 NAME(146)=KOND ;NAME(147)=CP1
 NAME(148)=PRAN ;NAME(149)=PRPS
 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(P1,Y,Y,Y,N,N,Y)
 SOLUTN(U1,Y,Y,N,N,N,Y)
 SOLUTN(V1,Y,Y,N,N,N,Y)
 SOLUTN(W1,Y,Y,N,N,N,Y)
 SOLUTN(DEN1,Y,N,N,N,N,Y)
 SOLUTN(ENUL,Y,N,N,N,N,Y)
 SOLUTN(KOND,Y,N,N,N,N,Y)
 SOLUTN(CP1,Y,N,N,N,N,Y)
 SOLUTN(PRAN,Y,N,N,N,N,Y)
 SOLUTN(PRPS,Y,N,N,N,N,Y)
 SOLUTN(TEM1,Y,Y,Y,N,N,Y)
 DEN1 = 144
 VISL = 145
 PRPS = 149
 ************************************************************
  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(W1,Y,Y,Y,Y,Y,Y)
 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 =273. ;PRESS0 =1.0E+05
 DVO1DT =3.41E-03 ;DRH1DP =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 ENUL =1.544E-05 ;ENUT =0.
 PRNDTL(U1)=1. ;PRNDTL(V1)=1.
 PRNDTL(W1)=1. ;PRNDTL(TEM1)=-0.0258
 PRT(U1)=1. ;PRT(V1)=1.
 PRT(W1)=1. ;PRT(TEM1)=1.
 CP1 =1005. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(P1)=1.0E-10 ;FIINIT(U1)=1.0E-10
 FIINIT(V1)=1.0E-10 ;FIINIT(W1)=1.0E-10
 FIINIT(DEN1)=1.0E-10 ;FIINIT(ENUL)=1.0E-10
 FIINIT(KOND)=1.0E-10 ;FIINIT(CP1)=1.0E-10
 FIINIT(PRAN)=1.0E-10 ;FIINIT(PRPS)=-1.
 FIINIT(TEM1)=18.
 
 PATCH(^OB3 ,INIVAL, 3, 0, 0, 0, 0, 0, 1, 1)
 INIT(^OB3 ,PRPS,0. ,109. )
 INIT(^OB3 ,TEM1,In-Form:initial value - G19)
 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 ,WEST , 1, 1, 1, 40, 1, 5, 1, 1)
 COVAL(OB1 ,P1 ,In-Form:source - see Grp 19)
 COVAL(OB1 ,U1 ,In-Form:source - see Grp 19)
 COVAL(OB1 ,TEM1,In-Form:source - see Grp 19)
 
 PATCH(OB2 ,EAST , 80, 80, 1, 40, 1, 5, 1, 1)
 COVAL(OB2 ,P1 ,1000. ,0. )
 COVAL(OB2 ,U1 ,0. ,0. )
 COVAL(OB2 ,V1 ,0. ,0. )
 COVAL(OB2 ,W1 ,0. ,0. )
 COVAL(OB2 ,TEM1,0. , SAME )
 
 PATCH(^OD3 ,CELL , 3, 18, 0, 0, 0, 0, 1, 1)
 COVAL(^OD3 ,TEM1,In-Form:source - see Grp 19)
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 200 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 SELREF = T
 RESFAC =1.0E-03
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;LITER(U1)=10
 LITER(V1)=10 ;LITER(W1)=10
 LITER(TEM1)=20
 ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-03
 ENDIT(V1)=1.0E-03 ;ENDIT(W1)=1.0E-03
 ENDIT(TEM1)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,1.)
 RELAX(U1,FALSDT,1.)
 RELAX(V1,FALSDT,1.)
 RELAX(W1,FALSDT,1.)
 RELAX(DEN1,LINRLX,1.)
 RELAX(ENUL,LINRLX,1.)
 RELAX(KOND,LINRLX,1.)
 RELAX(CP1,LINRLX,1.)
 RELAX(PRAN,LINRLX,1.)
 RELAX(PRPS,LINRLX,1.)
 RELAX(TEM1,FALSDT,1.0E+09)
 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(W1)=1.0E+06 ;VARMIN(W1)=-1.0E+06
 VARMAX(DEN1)=1.0E+10 ;VARMIN(DEN1)=-1.0E+10
 VARMAX(ENUL)=1.0E+10 ;VARMIN(ENUL)=-1.0E+10
 VARMAX(KOND)=1.0E+10 ;VARMIN(KOND)=-1.0E+10
 VARMAX(CP1)=1.0E+10 ;VARMIN(CP1)=-1.0E+10
 VARMAX(PRAN)=1.0E+10 ;VARMIN(PRAN)=-1.0E+10
 VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10
 VARMAX(TEM1)=3000. ;VARMIN(TEM1)=-204.75
 ************************************************************
  Group 19. Data transmitted to GROUND
 PARSOL = F
 CONWIZ = T
 ISG62 = 1
 SPEDAT(SET,DOMAIN,PHASE_1_MAT,I,0)
 SPEDAT(SET,MAKE,STSL,C,=0.)
 SPEDAT(SET,STORED,STSL,C,=SUM(TEM1)!SWPFIN!IF(PRPS.EQ.109))
 SPEDAT(SET,MAKE,SNSL,C,=0.)
 SPEDAT(SET,STORED,SNSL,C,=SUM(1)!SWPFIN!IF(PRPS.EQ.109))
 SPEDAT(SET,MAKE,AVTS,C,=0.)
 SPEDAT(SET,STORED,AVTS,C,=STSL/SNSL!SWPFIN)
 SPEDAT(SET,MAKE,VOLS,C,=0.)
 SPEDAT(SET,STORED,VOLS,C,=SUM(VOL)!SWPFIN!IF(PRPS.EQ.109))
 SPEDAT(SET,MAKE,NUSS,C,=0.)
 SPEDAT(SET,STORED,NUSS,C,=5000.*VOLS*0.04/(0.0258*(AVTS-18.)*0.01$)
 SPEDAT(SET,STORED,NUSS,C,2566)!SWPFIN)
 SPEDAT(SET,PRINT,SOLID_TEMP_SUM,C,=STSL)
 SPEDAT(SET,PRINT,SOLID_NUMBER_SU,C,=SNSL)
 SPEDAT(SET,PRINT,AVERAG_SOL_TEMP,C,=AVTS)
 SPEDAT(SET,PRINT,TOTAL_SOLID_VOL,C,=VOLS)
 SPEDAT(SET,PRINT,AVERAGE_NUSSELT,C,=NUSS)
 SPEDAT(SET,STORED,PRAN,C,=CP1*DEN1*ENUL/KOND!IMAT<100!ZSLFIN)
 SPEDAT(SET,GXMONI,PLOTALL,L,T)
 SPEDAT(SET,OBJNAM,!OB1,C,INLET)
 SPEDAT(SET,OBJTYP,!OB1,C,INLET)
 SPEDAT(SET,SOURCE,R1!INLET,C,=RHO1*1.0E-02!VOLU)
 SPEDAT(SET,SOURCE,U1!INLET,C,=1.0E-02!ONLYMS)
 SPEDAT(SET,SOURCE,TEM1!INLET,C,=18.!ONLYMS)
 SPEDAT(SET,OBJNAM,!OB2,C,OUTLET)
 SPEDAT(SET,OBJTYP,!OB2,C,OUTLET)
 SPEDAT(SET,ARATIO,!OB2,R,1.)
 SPEDAT(SET,OBJNAM,^OB3,C,ROD)
 SPEDAT(SET,OBJTYP,^OB3,C,BLOCKAGE)
 SPEDAT(SET,ROD,MATERIAL,R,109.)
 SPEDAT(SET,OBJNAM,^OD3,C,ROD)
 SPEDAT(SET,OBJTYP,^OD3,C,BLOCKAGE)
 SPEDAT(SET,SOURCE,TEM1!ROD,C,=1.E+5*ZG!VOLU)
 SPEDAT(SET,INITIAL,TEM1!ROD,C,=18.)
 SPEDAT(SET,FACETDAT,NUMOBJ,I,3)
 SPEDAT(SET,MATERIAL,109,L,T)
 ************************************************************
  Group 20. Preliminary Printout
 DISTIL = T ;NULLPR = F
 NDST = 0
 DSTTOL =1.0E-02
 EX(P1)=4.223E-05 ;EX(U1)=0.01004
 EX(V1)=1.25E-03 ;EX(W1)=5.888E-07
 EX(DEN1)=55.310001 ;EX(ENUL)=0.02051
 EX(KOND)=0.03217 ;EX(CP1)=1022.
 EX(PRAN)=0.6784 ;EX(PRPS)=6.535
 EX(TEM1)=24.309999
 ************************************************************
  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(W1,Y,N,Y,Y,Y,Y)
 OUTPUT(DEN1,Y,N,Y,N,N,N)
 OUTPUT(ENUL,Y,N,Y,N,N,N)
 OUTPUT(KOND,Y,N,Y,N,N,N)
 OUTPUT(CP1,Y,N,Y,N,N,N)
 OUTPUT(PRAN,Y,N,Y,N,N,N)
 OUTPUT(PRPS,Y,N,Y,N,N,N)
 OUTPUT(TEM1,Y,N,Y,Y,Y,Y)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 29 ;IYMON = 20 ;IZMON = 3
 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
 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