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



  gr ou z 1;gr ou z 1 x 1 5 y 1 10
  vec z 1 sh
  msg            Velocity distribution
  msg  Press Enter to continue
  pause
  vec off;red
  con h1 z 1 fil;.01
  msg            Temperature contours
  msg  Press Enter to continue
  pause
  con off;red
  con p1 z 1 sh;int 20
  msg            Pressure contours
  msg Press Enter to end
  ENDUSE
  DISPLAY
   Laminar mixed convection in a vertical channel
   with a backstep: a benchmark study of K-12 Aerospace
   Heat Transfer Committee of the Heat Transfer division
   of ASME.

   This case shows how to use plant to introduce the influence
   of buoyancy forces and non-uniform inlet velocity profile.
  ENDDIS
    PLANTBEGIN
     ** Parabolic profile of streamwise velocity
PATCH(INLET,WEST,1,1,11,20,1,1,1,1)
   VAL=1.0*3./2.*(1.-(3.-2.*YG2D)**2)
COVAL(INLET,P1,FIXFLU,GRND)
   VAL=3./2.*(1.-(3.-2.*YG2D)**2)
COVAL(INLET,U1,ONLYMS,GRND)
COVAL(INLET,H1,ONLYMS, 0.000E+00)
     **  Buoyancy forces
PATCH(BUGR,VOLUME,1,NX,1,NY,1,1,1,1)
    VAL=0.1*H1
COVAL(BUGR,U1,FIXFLU,GRND)
    PLANTEND
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(BENCHMARK  CASE OF MIXED CONVECTION:130 )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 130
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 35
 XULAST =1.
 XFRAC(1)=1. ;XFRAC(2)=2.
 XFRAC(3)=3. ;XFRAC(4)=4.
 XFRAC(5)=5. ;XFRAC(6)=6.
 XFRAC(7)=7. ;XFRAC(8)=8.
 XFRAC(9)=9. ;XFRAC(10)=10.
 XFRAC(11)=11. ;XFRAC(12)=12.
 XFRAC(13)=13. ;XFRAC(14)=14.
 XFRAC(15)=15. ;XFRAC(16)=16.
 XFRAC(17)=17. ;XFRAC(18)=18.
 XFRAC(19)=19. ;XFRAC(20)=20.
 XFRAC(21)=21. ;XFRAC(22)=22.
 XFRAC(23)=23. ;XFRAC(24)=24.
 XFRAC(25)=25. ;XFRAC(26)=26.
 XFRAC(27)=27. ;XFRAC(28)=28.
 XFRAC(29)=29. ;XFRAC(30)=30.
 XFRAC(31)=31. ;XFRAC(32)=32.
 XFRAC(33)=33. ;XFRAC(34)=34.
 XFRAC(35)=35.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 20
 YVLAST =1.
 YFRAC(1)=0.1 ;YFRAC(2)=0.2
 YFRAC(3)=0.3 ;YFRAC(4)=0.4
 YFRAC(5)=0.5 ;YFRAC(6)=0.6
 YFRAC(7)=0.7 ;YFRAC(8)=0.8
 YFRAC(9)=0.9 ;YFRAC(10)=1.
 YFRAC(11)=1.1 ;YFRAC(12)=1.2
 YFRAC(13)=1.3 ;YFRAC(14)=1.4
 YFRAC(15)=1.5 ;YFRAC(16)=1.6
 YFRAC(17)=1.7 ;YFRAC(18)=1.8
 YFRAC(19)=1.9 ;YFRAC(20)=2.
 ************************************************************
  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(14)=H1
 NAME(149)=PRPS
    * 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,N)
 SOLUTN(U1,Y,Y,N,N,N,Y)
 SOLUTN(V1,Y,Y,N,N,N,Y)
 SOLUTN(H1,Y,N,N,N,N,Y)
 SOLUTN(PRPS,Y,N,N,N,N,Y)
 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)
 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. ;TMP1 =0.
 EL1 =0.
 TSURR =0. ;TEMP0 =0.
 PRESS0 =0.
 DVO1DT =0. ;DRH1DP =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 ENUL =1.0E-02 ;ENUT =0.
 PRNDTL(U1)=1. ;PRNDTL(V1)=1.
 PRT(U1)=1. ;PRT(V1)=1.
 CP1 =1. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(P1)=1.3E-04 ;FIINIT(U1)=1.
 FIINIT(V1)=1.0E-10 ;FIINIT(H1)=0.5
 FIINIT(PRPS)=-1.
 
 PATCH(CMP0 ,INIVAL, 1, 5, 1, 10, 1, 1, 1, 1)
 INIT(CMP0 ,PRPS,0. ,198. )
 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(SHOWINL ,WEST , 1, 1, 11, 20, 1, 1, 1, 1)
 
 PATCH(INLET ,WEST , 1, 1, 11, 20, 1, 1, 1, 1)
 COVAL(INLET ,P1 , FIXFLU , GRND )
 COVAL(INLET ,U1 ,0. , GRND )
 COVAL(INLET ,H1 ,0. ,0. )
 
 PATCH(BUGR ,VOLUME, 1, 35, 1, 20, 1, 1, 1, 1)
 COVAL(BUGR ,U1 , FIXFLU , GRND )
 
 PATCH(OUTLET ,EAST , 35, 35, 1, 20, 1, 1, 1, 1)
 COVAL(OUTLET ,P1 ,1000. ,0. )
 
 PATCH(TOPWALL ,NWALL , 1, 35, 20, 20, 1, 1, 1, 1)
 COVAL(TOPWALL ,U1 ,1. ,0. )
 COVAL(TOPWALL ,H1 ,1.428571 ,0. )
 
 PATCH(BOTWALL ,SWALL , 6, 35, 1, 1, 1, 1, 1, 1)
 COVAL(BOTWALL ,U1 ,1. ,0. )
 COVAL(BOTWALL ,H1 ,1.428571 ,1. )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 65 ;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
 ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-06
 ENDIT(V1)=1.0E-06
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,0.5)
 RELAX(U1,FALSDT,10.)
 RELAX(V1,FALSDT,10.)
 RELAX(H1,LINRLX,1.)
 RELAX(PRPS,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(H1)=1.0E+10 ;VARMIN(H1)=-1.0E+10
 VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 NAMSAT =MOSG
 PARSOL = F
 ISG62 = 1
 SPEDAT(SET,MATERIAL,198,L,T)
 ************************************************************
  Group 20. Preliminary Printout
 DISTIL = T ;NULLPR = F
 NDST = 0
 DSTTOL =1.0E-02
 EX(P1)=0.1666 ;EX(U1)=0.5044
 EX(V1)=0.0116 ;EX(H1)=0.2395
 EX(PRPS)=15.07
 ************************************************************
  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,Y,Y,Y,Y,Y)
 OUTPUT(U1,Y,Y,Y,Y,Y,Y)
 OUTPUT(V1,Y,Y,Y,Y,Y,Y)
 OUTPUT(H1,Y,N,Y,N,N,N)
 OUTPUT(PRPS,Y,N,Y,N,N,N)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 7 ;IYMON = 8 ;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