TALK=T;RUN(1,1)
  DISPLAY
   This case  concerns 2D  incompressible, laminar/turbulent
   flow over back-facing step.  Geometry of the problem  was
   taken from GAMM-workshop 1984 (Re=50, 150, 500). A  fully
   developed parabolic laminar flow profile is prescribed at
   the inflow.

   Computational domain comprises fine grid, which is embedded
   after the step. Sizes (NXFG, NYFG) and refinement ratios
   (IFCX, IFCY) of the fine grid may be modified:
    
            NXFG                                
               NYFG                             
             
   Simulation of the turbulent (LTURB=T) flow can be carried
   out with either the Lam-Bremhorst low-Re extension of the
   Chen-Kim  K-E model (LTWOL=F)  or the 2-layer  low-Re K-E
   model (LTWOL=T).

   User can  use higher  order convective  schemes (MINMOD-,
   SUPER-BB-, SMART- or QUICK-scheme) by setting appropriate
   name of the scheme for solved variable.
  ----------------------------------------------------------
  ENDDIS
  PHOTON USE
   p ; ; ; ; ;

   msg Computational Domain:
   mgrid 1 k 1
   mgrid 2 k 1 col 2
   msg Press Any Key to Continue...
   pause
   cl
   set vec av off
   msg Velocity Vectors:
   mvec 1 k 1 sh
   mvec 2 k 1 sh
   msg Press Any Key to Continue...
   pause
   cl
   msg Contours of Pressure:
   mcon 1 p1 k 1 fi
   0.01
   mcon 2 p1 k 1 fi
   0.01
   pause
   cl
   msg Contours of U1-velocity:
   mcon 1 u1 k 1 fi
   0.01
   mcon 2 u1 k 1 fi
   0.01
   msg Press E  to exit PHOTON ...
   pause
  ENDUSE
  SCHMBEGIN
      VARNAM UC1 SCHEME MINMOD
      VARNAM VC1 SCHEME MINMOD
      VARNAM KE  SCHEME MINMOD
      VARNAM EP  SCHEME MINMOD
  SCHMEND
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(MB-FGE: 2D Flow Over Back-Step (2L K-E).)
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 150
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 47
 XULAST =1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 16
 YVLAST =1.
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 1
 ZWLAST =0.1
 ************************************************************
  Group 6. Body-Fitted Coordinates
 BFC = T ;NONORT = F
 NUMBLK = 2
 NCRT = -1
 RSTGEO = F ;SAVGEO = F
 UUP = F ;VUP = F ;WUP = F
 NGEOM =CHAM
 NAMXYZ =CHAM
 ANGMIN =20.
 DOMAIN(   1,  48,   1,  17,   1,   2)
    * Set fixed sub-domain
 FIXDOM(   1,   0,   0,   0,   0,   0,   0)
 FIXDOM(   2,   0,   0,   0,   0,   0,   0)
 FIXDOM(   3,   0,   0,   0,   0,   0,   0)
 FIXDOM(   4,   0,   0,   0,   0,   0,   0)
 FIXDOM(   5,   0,   0,   0,   0,   0,   0)
 FIXDOM(   6,   0,   0,   0,   0,   0,   0)
 FIXDOM(   7,   0,   0,   0,   0,   0,   0)
 FIXDOM(   8,   0,   0,   0,   0,   0,   0)
 FIXDOM(   9,   0,   0,   0,   0,   0,   0)
 FIXDOM(  10,   0,   0,   0,   0,   0,   0)
 LIJ = F ;LJK = T ;LIK = F
 CCM = T
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS = T
 NAME(1)=P1 ;NAME(3)=U1
 NAME(5)=V1 ;NAME(12)=KE
 NAME(13)=EP ;NAME(139)=PRPS
 NAME(140)=VC1 ;NAME(141)=UC1
 NAME(142)=LTLS ;NAME(143)=WDIS
 NAME(144)=LEN1 ;NAME(145)=ENUT
 NAME(146)=GEN1 ;NAME(147)=WCRT
 NAME(148)=VCRT ;NAME(149)=UCRT
    * 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(PRPS,Y,N,N,N,N,N)
 SOLUTN(VC1,Y,Y,Y,N,N,Y)
 SOLUTN(UC1,Y,Y,Y,N,N,Y)
 SOLUTN(LTLS,Y,Y,Y,N,N,Y)
 SOLUTN(WDIS,Y,N,N,N,N,N)
 SOLUTN(LEN1,Y,N,N,N,N,Y)
 SOLUTN(ENUT,Y,N,N,N,N,Y)
 SOLUTN(GEN1,Y,N,N,N,N,Y)
 SOLUTN(WCRT,Y,N,N,N,N,N)
 SOLUTN(VCRT,Y,N,N,N,N,N)
 SOLUTN(UCRT,Y,N,N,N,N,N)
 VIST = 145
 LEN1 = 144
 PRPS = 139
 ************************************************************
  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,N,N,N,N,N,N)
 TERMS(V1,N,N,N,N,N,N)
 TERMS(KE,N,Y,Y,Y,Y,N)
 TERMS(EP,N,Y,Y,Y,Y,N)
 TERMS(VC1,N,Y,Y,Y,Y,Y)
 TERMS(UC1,N,Y,Y,Y,N,Y)
 TERMS(LTLS,N,N,Y,N,Y,Y)
 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. ;TMP1 =0. ;EL1 = GRND4
 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 =1.111111E-05 ;ENUT = GRND3
 ENUTA =0. ;ENUTB =0. ;ENUTC =0.
 IENUTA = 8
 PRNDTL(KE)=1. ;PRNDTL(EP)=1.
 PRNDTL(VC1)=1. ;PRNDTL(UC1)=1.
 PRNDTL(LTLS)=1.
 PRT(KE)=1. ;PRT(EP)=1.314
 PRT(VC1)=1. ;PRT(UC1)=1.
 PRT(LTLS)=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.0E-10
 FIINIT(V1)=1.0E-10 ;FIINIT(KE)=2.5E-03
 FIINIT(EP)=4.56389E-04 ;FIINIT(PRPS)=-1.
 FIINIT(VC1)=1.0E-05 ;FIINIT(UC1)=1.
 FIINIT(LTLS)=1.0E-10 ;FIINIT(WDIS)=1.0E-02
 FIINIT(LEN1)=1.0E-10 ;FIINIT(ENUT)=1.0E-03
 FIINIT(GEN1)=1.0E-10 ;FIINIT(WCRT)=1.0E-10
 FIINIT(VCRT)=1.0E-10 ;FIINIT(UCRT)=1.0E-10
 
 PATCH(STEP ,INIVAL, 1, 6, 1, 4, 1, 1, 1, 1)
 INIT(STEP ,PRPS,0. ,199. )
 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(MBD1 ,CELL , 1, 22, 1, 12, 1, 1, 1, 1)
 
 PATCH(MBD2 ,CELL , 24, 47, 1, 16, 1, 1, 1, 1)
 
 PATCH(MBL1.2 ,VOLUME, 7, 14, 1, 8, 1, 1, 1, 1)
 
 PATCH(MBL2.1 ,VOLUME, 24, 47, 1, 16, 1, 1, 1, 1)
 
 PATCH(KESOURCE,PHASEM, 0, 0, 0, 0, 0, 0, 1, 1)
 COVAL(KESOURCE,KE , GRND4 , GRND4 )
 COVAL(KESOURCE,EP , GRND4 , GRND4 )
 
 PATCH(INL5 ,WEST , 1, 1, 5, 5, 1, 1, 1, 1)
 COVAL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VC1 , GRND2 ,0. )
 COVAL(WW1 ,UC1 , GRND2 ,0. )
 COVAL(WW1 ,LTLS,1. ,0. )
 
 PATCH(WS3 ,SWALL , 24, 47, 1, 1, 1, 1, 1, 1)
 COVAL(WS3 ,KE ,1. ,0. )
 COVAL(WS3 ,VC1 , GRND2 ,0. )
 COVAL(WS3 ,UC1 , GRND2 ,0. )
 COVAL(WS3 ,LTLS,1. ,0. )
 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(KE)=20
 LITER(EP)=20 ;LITER(VC1)=20
 LITER(UC1)=20 ;LITER(LTLS)=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(VC1)=1.0E-03
 ENDIT(UC1)=1.0E-03 ;ENDIT(LTLS)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,0.5)
 RELAX(U1,FALSDT,1.)
 RELAX(V1,FALSDT,1.)
 RELAX(KE,LINRLX,0.5)
 RELAX(EP,LINRLX,0.1)
 RELAX(PRPS,LINRLX,1.)
 RELAX(VC1,FALSDT,0.468085)
 RELAX(UC1,FALSDT,0.468085)
 RELAX(LTLS,FALSDT,1.0E+09)
 RELAX(WDIS,LINRLX,1.)
 RELAX(LEN1,LINRLX,1.)
 RELAX(ENUT,LINRLX,0.1)
 RELAX(GEN1,LINRLX,1.)
 RELAX(WCRT,LINRLX,1.)
 RELAX(VCRT,LINRLX,1.)
 RELAX(UCRT,LINRLX,1.)
 KELIN = 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(KE)=1.0E+10 ;VARMIN(KE)=1.0E-10
 VARMAX(EP)=1.0E+10 ;VARMIN(EP)=1.0E-10
 VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10
 VARMAX(VC1)=1.0E+10 ;VARMIN(VC1)=-1.0E+10
 VARMAX(UC1)=1.0E+10 ;VARMIN(UC1)=-1.0E+10
 VARMAX(LTLS)=1.0E+10 ;VARMIN(LTLS)=-1.0E+10
 VARMAX(WDIS)=1.0E+10 ;VARMIN(WDIS)=-1.0E+10
 VARMAX(LEN1)=1.0E+10 ;VARMIN(LEN1)=-1.0E+10
 VARMAX(ENUT)=1.0E+10 ;VARMIN(ENUT)=-1.0E+10
 VARMAX(GEN1)=1.0E+10 ;VARMIN(GEN1)=-1.0E+10
 VARMAX(WCRT)=1.0E+10 ;VARMIN(WCRT)=-1.0E+10
 VARMAX(VCRT)=1.0E+10 ;VARMIN(VCRT)=-1.0E+10
 VARMAX(UCRT)=1.0E+10 ;VARMIN(UCRT)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 GENK = T
 PARSOL = F
 CONWIZ = T
 LSG7 = T
 IENUTA = 8
 ISG62 = 1
 CSG3    ='LCRU'
 SPEDAT(SET,GXMONI,PLOTALL,L,T)
 SPEDAT(SET,MATERIAL,199,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(PRPS,Y,N,Y,N,N,N)
 OUTPUT(VC1,Y,N,Y,Y,Y,Y)
 OUTPUT(UC1,Y,N,Y,Y,Y,Y)
 OUTPUT(LTLS,Y,N,Y,Y,Y,Y)
 OUTPUT(WDIS,Y,N,Y,N,N,N)
 OUTPUT(LEN1,Y,N,Y,N,N,N)
 OUTPUT(ENUT,Y,N,Y,N,N,N)
 OUTPUT(GEN1,Y,N,Y,N,N,N)
 OUTPUT(WCRT,Y,N,Y,N,N,N)
 OUTPUT(VCRT,Y,N,Y,N,N,N)
 OUTPUT(UCRT,Y,N,Y,N,N,N)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 36 ;IYMON = 9 ;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