TALK=T;RUN(1,1)
   PHOTON USE
   p





   view z
   gr ou z 1
   msg secondary-flow velocity vectors
   set vec comp;u1 v1 0.
   set vec ref;1.E-2
   vec z 1 sh
   pause
   msg Press  and then  to END
   pause

   ENDUSE
  DISPLAY
  The case considered is three-dimensional fully-developed,
  turbulent flow and heat transfer of an incompressible,
  constant-property fluid in a rectangular duct of aspect ratio
  alfa=1.0, where alfa=height/width. The calculations are performed
  for a Reynolds number of 5.E4, a Prandtl number of 3.0 and a
  constant temperature boundary condition is applied on all four
  sides of the duct. The solution exploits symmetry by performing
  the calculation over one quadrant of the duct cross section only.
  The flow Reynolds number is based on the hydraulic diameter of
  the duct. The RSTM calculations are made with one of two variants,
  namely: the IPM pressure-strain model (IRSMHM=0) or the QIM
  pressure-strain model (IRSMHM=2). A transport model (IRSMSM=2) is
  employed for closure of the turbulent heat-flux components.
  ENDDIS
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(RSTM_3D DVLPD DUCT FLOW/HEAT TRANS :T608)
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 14
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 25
 XULAST =1.
 XFRAC(1)=0.073752 ;XFRAC(4)=0.223574
 XFRAC(7)=0.349826 ;XFRAC(10)=0.465344
 XFRAC(13)=0.574022 ;XFRAC(16)=0.677751
 XFRAC(19)=0.777637 ;XFRAC(22)=0.874404
 XFRAC(25)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 25
 YVLAST =1.
 YFRAC(1)=0.073752 ;YFRAC(4)=0.223574
 YFRAC(7)=0.349826 ;YFRAC(10)=0.465344
 YFRAC(13)=0.574022 ;YFRAC(16)=0.677751
 YFRAC(19)=0.777637 ;YFRAC(22)=0.874404
 YFRAC(25)=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(7)=W1
 NAME(12)=KE ;NAME(13)=EP
 NAME(14)=H1 ;NAME(141)=VTRS
 NAME(142)=UTRS ;NAME(143)=U2RS
 NAME(144)=V2RS ;NAME(145)=W2RS
 NAME(146)=UVRS ;NAME(147)=UWRS
 NAME(148)=VWRS ;NAME(149)=LEN1
 NAME(150)=ENUT
    * 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(W1,Y,Y,N,N,N,Y)
 SOLUTN(KE,Y,N,N,N,N,N)
 SOLUTN(EP,Y,Y,N,N,N,N)
 SOLUTN(H1,Y,Y,N,N,N,Y)
 SOLUTN(VTRS,Y,Y,N,N,N,N)
 SOLUTN(UTRS,Y,Y,N,N,N,N)
 SOLUTN(U2RS,Y,Y,N,N,N,N)
 SOLUTN(V2RS,Y,Y,N,N,N,N)
 SOLUTN(W2RS,Y,Y,N,N,N,N)
 SOLUTN(UVRS,Y,Y,N,N,N,N)
 SOLUTN(UWRS,Y,Y,N,N,N,N)
 SOLUTN(VWRS,Y,Y,N,N,N,N)
 SOLUTN(LEN1,Y,N,N,N,N,Y)
 SOLUTN(ENUT,Y,N,N,N,N,Y)
 VIST = 150
 LEN1 = 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,N,Y,Y,Y,Y,Y)
 TERMS(EP,Y,Y,Y,Y,N,Y)
 TERMS(H1,N,Y,Y,Y,Y,Y)
 TERMS(VTRS,N,Y,Y,Y,N,Y)
 TERMS(UTRS,N,Y,Y,Y,Y,Y)
 TERMS(U2RS,N,Y,Y,Y,N,Y)
 TERMS(V2RS,N,Y,Y,Y,Y,Y)
 TERMS(W2RS,N,Y,Y,Y,N,Y)
 TERMS(UVRS,N,Y,Y,Y,Y,Y)
 TERMS(UWRS,N,Y,Y,Y,N,Y)
 TERMS(VWRS,N,Y,Y,Y,Y,Y)
 DIFCUT =0.5 ;ZDIFAC =1.
 GALA = F ;ADDDIF = F
 NEWENT = F
 UDIFF = T
 UCONNE = T
 USOURC = 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. ;TMP1 =0. ;EL1 = GRND
 TSURR =0. ;TEMP0 =0. ;PRESS0 =0.
 DVO1DT =0. ;DRH1DP =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 EL1A =0. ;EL1B =0. ;EL1C =0.
 ENUL =4.0E-05 ;ENUT = GRND
 ENUTA =0. ;ENUTB =0. ;ENUTC =0.
 IENUTA = 0
 PRNDTL(U1)=1. ;PRNDTL(V1)=1.
 PRNDTL(W1)=1. ;PRNDTL(EP)=1.
 PRNDTL(H1)=3. ;PRNDTL(VTRS)=1.
 PRNDTL(UTRS)=1. ;PRNDTL(U2RS)=1.
 PRNDTL(V2RS)=1. ;PRNDTL(W2RS)=1.
 PRNDTL(UVRS)=1. ;PRNDTL(UWRS)=1.
 PRNDTL(VWRS)=1.
 PRT(U1)=1. ;PRT(V1)=1.
 PRT(W1)=1. ;PRT(EP)=1.314
 PRT(H1)=1. ;PRT(VTRS)=1.
 PRT(UTRS)=1. ;PRT(U2RS)=1.
 PRT(V2RS)=1. ;PRT(W2RS)=1.
 PRT(UVRS)=1. ;PRT(UWRS)=1.
 PRT(VWRS)=1.
 CP1 =1. ;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.
 FIINIT(KE)=5.232592E-03 ;FIINIT(EP)=3.454938E-04
 FIINIT(H1)=5. ;FIINIT(VTRS)=1.0E-10
 FIINIT(UTRS)=1.0E-10 ;FIINIT(U2RS)=3.488394E-03
 FIINIT(V2RS)=3.488394E-03 ;FIINIT(W2RS)=3.488394E-03
 FIINIT(UVRS)=1.0E-10 ;FIINIT(UWRS)=1.569778E-03
 FIINIT(VWRS)=1.569778E-03 ;FIINIT(LEN1)=1.0E-10
 FIINIT(ENUT)=1.0E-10
   No PATCHes yet used for this Group
 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(WALLT ,NWALL , 1, 25, 25, 25, 1, 1, 1, 1)
 COVAL(WALLT ,U1 , GRND2 ,0. )
 COVAL(WALLT ,W1 , GRND2 ,0. )
 COVAL(WALLT ,EP , GRND2 , GRND2 )
 COVAL(WALLT ,H1 , GRND2 ,10. )
 
 PATCH(WALLS ,EWALL , 25, 25, 1, 25, 1, 1, 1, 1)
 COVAL(WALLS ,V1 , GRND2 ,0. )
 COVAL(WALLS ,W1 , GRND2 ,0. )
 COVAL(WALLS ,EP , GRND2 , GRND2 )
 COVAL(WALLS ,H1 , GRND2 ,10. )
 
 PATCH(WDMPN03 ,PHASEM, 1, 25, 1, 25, 1, 1, 1, 1)
 COVAL(WDMPN03 ,VTRS, FIXFLU , GRND1 )
 COVAL(WDMPN03 ,UTRS, FIXFLU , GRND1 )
 COVAL(WDMPN03 ,U2RS, FIXFLU , GRND1 )
 COVAL(WDMPN03 ,V2RS, FIXFLU , GRND1 )
 COVAL(WDMPN03 ,W2RS, FIXFLU , GRND1 )
 COVAL(WDMPN03 ,UVRS, FIXFLU , GRND1 )
 COVAL(WDMPN03 ,UWRS, FIXFLU , GRND1 )
 COVAL(WDMPN03 ,VWRS, FIXFLU , GRND1 )
 
 PATCH(WDMPE04 ,PHASEM, 1, 25, 1, 25, 1, 1, 1, 1)
 COVAL(WDMPE04 ,VTRS, FIXFLU , GRND1 )
 COVAL(WDMPE04 ,UTRS, FIXFLU , GRND1 )
 COVAL(WDMPE04 ,U2RS, FIXFLU , GRND1 )
 COVAL(WDMPE04 ,V2RS, FIXFLU , GRND1 )
 COVAL(WDMPE04 ,W2RS, FIXFLU , GRND1 )
 COVAL(WDMPE04 ,UVRS, FIXFLU , GRND1 )
 COVAL(WDMPE04 ,UWRS, FIXFLU , GRND1 )
 COVAL(WDMPE04 ,VWRS, FIXFLU , GRND1 )
 
 PATCH(GP12CONH,CELL , 1, 25, 1, 25, 1, 1, 1, 1)
 COVAL(GP12CONH,U1 ,0. ,0. )
 COVAL(GP12CONH,V1 ,0. ,0. )
 COVAL(GP12CONH,W1 ,0. ,0. )
 COVAL(GP12CONH,EP ,0. ,0. )
 COVAL(GP12CONH,H1 ,0. ,0. )
 COVAL(GP12CONH,VTRS,0. ,0. )
 COVAL(GP12CONH,UTRS,0. ,0. )
 COVAL(GP12CONH,U2RS,0. ,0. )
 COVAL(GP12CONH,V2RS,0. ,0. )
 COVAL(GP12CONH,W2RS,0. ,0. )
 COVAL(GP12CONH,UVRS,0. ,0. )
 COVAL(GP12CONH,UWRS,0. ,0. )
 COVAL(GP12CONH,VWRS,0. ,0. )
 
 PATCH(RELIEF ,CELL , 12, 12, 12, 12, 1, 1, 1, 1)
 COVAL(RELIEF ,P1 ,1. ,0. )
 COVAL(RELIEF ,H1 ,0. , SAME )
 
 PATCH(FDFW1DP ,VOLUME, 1, 25, 1, 25, 1, 1, 1, 1)
 COVAL(FDFW1DP ,W1 ,1. , GRND1 )
 
 PATCH(SMPLS ,SOUTH , 1, 25, 1, 1, 1, 1, 1, 1)
 COVAL(SMPLS ,VTRS, GRND1 ,0. )
 COVAL(SMPLS ,VWRS, GRND1 ,0. )
 
 PATCH(SMPLW ,WEST , 1, 1, 1, 25, 1, 1, 1, 1)
 COVAL(SMPLW ,UTRS, GRND1 ,0. )
 COVAL(SMPLW ,UWRS, GRND1 ,0. )
 
 PATCH(FDFCWT ,PHASEM, 1, 25, 1, 25, 1, 1, 1, 1)
 COVAL(FDFCWT ,H1 ,0.013667 ,10. )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 120 ;ISWC1 = 1
 LITHYD = 6 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 SELREF = T
 RESFAC =1.0E-05
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;LITER(U1)=10
 LITER(V1)=10 ;LITER(W1)=2
 LITER(EP)=20 ;LITER(H1)=5
 LITER(VTRS)=20 ;LITER(UTRS)=20
 LITER(U2RS)=20 ;LITER(V2RS)=20
 LITER(W2RS)=20 ;LITER(UVRS)=20
 LITER(UWRS)=20 ;LITER(VWRS)=20
 ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-03
 ENDIT(V1)=1.0E-03 ;ENDIT(W1)=1.0E-03
 ENDIT(EP)=1.0E-03 ;ENDIT(H1)=1.0E-03
 ENDIT(VTRS)=1.0E-03 ;ENDIT(UTRS)=1.0E-03
 ENDIT(U2RS)=1.0E-03 ;ENDIT(V2RS)=1.0E-03
 ENDIT(W2RS)=1.0E-03 ;ENDIT(UVRS)=1.0E-03
 ENDIT(UWRS)=1.0E-03 ;ENDIT(VWRS)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,1.)
 RELAX(U1,FALSDT,4.)
 RELAX(V1,FALSDT,4.)
 RELAX(W1,FALSDT,4.)
 RELAX(KE,LINRLX,1.)
 RELAX(EP,FALSDT,0.04)
 RELAX(H1,FALSDT,5.)
 RELAX(VTRS,FALSDT,0.05)
 RELAX(UTRS,FALSDT,0.05)
 RELAX(U2RS,FALSDT,0.04)
 RELAX(V2RS,FALSDT,0.04)
 RELAX(W2RS,FALSDT,0.04)
 RELAX(UVRS,FALSDT,0.04)
 RELAX(UWRS,FALSDT,0.04)
 RELAX(VWRS,FALSDT,0.04)
 RELAX(LEN1,LINRLX,1.)
 RELAX(ENUT,LINRLX,1.)
 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(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(VTRS)=1.0E+10 ;VARMIN(VTRS)=-1.0E+10
 VARMAX(UTRS)=1.0E+10 ;VARMIN(UTRS)=-1.0E+10
 VARMAX(U2RS)=1.0E+10 ;VARMIN(U2RS)=-1.0E+10
 VARMAX(V2RS)=1.0E+10 ;VARMIN(V2RS)=-1.0E+10
 VARMAX(W2RS)=1.0E+10 ;VARMIN(W2RS)=-1.0E+10
 VARMAX(UVRS)=1.0E+10 ;VARMIN(UVRS)=-1.0E+10
 VARMAX(UWRS)=1.0E+10 ;VARMIN(UWRS)=-1.0E+10
 VARMAX(VWRS)=1.0E+10 ;VARMIN(VWRS)=-1.0E+10
 VARMAX(LEN1)=1.0E+10 ;VARMIN(LEN1)=-1.0E+10
 VARMAX(ENUT)=1.0E+10 ;VARMIN(ENUT)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 GENK = T
 RSTM = T
 FDFSOL = T
 PARSOL = F
 IRSMSM = 2
 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(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(KE,Y,N,Y,N,N,N)
 OUTPUT(EP,Y,N,Y,Y,Y,Y)
 OUTPUT(H1,Y,N,Y,Y,Y,Y)
 OUTPUT(VTRS,Y,N,Y,Y,Y,Y)
 OUTPUT(UTRS,Y,N,Y,Y,Y,Y)
 OUTPUT(U2RS,Y,N,Y,Y,Y,Y)
 OUTPUT(V2RS,Y,N,Y,Y,Y,Y)
 OUTPUT(W2RS,Y,N,Y,Y,Y,Y)
 OUTPUT(UVRS,Y,N,Y,Y,Y,Y)
 OUTPUT(UWRS,Y,N,Y,Y,Y,Y)
 OUTPUT(VWRS,Y,N,Y,Y,Y,Y)
 OUTPUT(LEN1,Y,N,Y,N,N,N)
 OUTPUT(ENUT,Y,N,Y,N,N,N)
 WALPRN = T
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 23 ;IYMON = 23 ;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 = 3 ;IXPRF = 1 ;IXPRL = 10000
 NYPRIN = 3 ;IYPRF = 1 ;IYPRL = 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
   No PATCHes yet used for this Group
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
STOP