```
TALK=T;RUN(1,1)
DISPLAY
This simulation  concerns incompressible, turbulent flow
over a backward-facing step in a two-dimensional closed
channel, as described fully in library case T103.

For this case, the standard form of the k-e turbulence model is
known to underpredict the reattachment length XR by about 14%.
Calculations may be made with the high-Re form of the standard
k-e model or the 2-scale k-e model, which is selected by putting
TSKE=T.
ENDDIS
photon use
p

msg longitudinal velocity profiles and vectors
con u1 z 1 fi;0.001
vec z 1
msg
msg Press e to END
enduse
************************************************************
Group 1. Run Title and Number
************************************************************
************************************************************

TEXT(2S K-E MODEL_BKWRD FACING STEP Y-X :T405)

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

IRUNN = 1 ;LIBREF = 14
************************************************************
Group 2. Time dependence
STEADY = T
************************************************************
Group 3. X-Direction Grid Spacing
CARTES = T
NX = 25
XULAST =0.762
XFRAC(1)=0.04 ;XFRAC(2)=0.08
XFRAC(3)=0.12 ;XFRAC(4)=0.16
XFRAC(5)=0.2 ;XFRAC(6)=0.229645
XFRAC(7)=0.263546 ;XFRAC(8)=0.299264
XFRAC(9)=0.336214 ;XFRAC(10)=0.37411
XFRAC(11)=0.412776 ;XFRAC(12)=0.452095
XFRAC(13)=0.491982 ;XFRAC(14)=0.532371
XFRAC(15)=0.573213 ;XFRAC(16)=0.614466
XFRAC(17)=0.656096 ;XFRAC(18)=0.698075
XFRAC(19)=0.740378 ;XFRAC(20)=0.782985
XFRAC(21)=0.825877 ;XFRAC(22)=0.869038
XFRAC(23)=0.912454 ;XFRAC(24)=0.956112
XFRAC(25)=1.
************************************************************
Group 4. Y-Direction Grid Spacing
NY = 20
YVLAST =0.1143
YFRAC(1)=0.020568 ;YFRAC(2)=0.050644
YFRAC(3)=0.085792 ;YFRAC(4)=0.1247
YFRAC(5)=0.166667 ;YFRAC(6)=0.208634
YFRAC(7)=0.247542 ;YFRAC(8)=0.282689
YFRAC(9)=0.312766 ;YFRAC(10)=0.333333
YFRAC(11)=0.368354 ;YFRAC(12)=0.425753
YFRAC(13)=0.496372 ;YFRAC(14)=0.577229
YFRAC(15)=0.666667 ;YFRAC(16)=0.756104
YFRAC(17)=0.836961 ;YFRAC(18)=0.907581
YFRAC(19)=0.964979 ;YFRAC(20)=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(145)=PRPS
NAME(147)=KP ;NAME(148)=ET
NAME(149)=KT ;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,Y,N,N,N)
SOLUTN(U1,Y,Y,N,N,N,Y)
SOLUTN(V1,Y,Y,N,N,N,Y)
SOLUTN(KE,Y,N,N,N,N,N)
SOLUTN(EP,Y,Y,N,N,N,N)
SOLUTN(PRPS,Y,N,N,N,N,N)
SOLUTN(KP,Y,Y,N,N,N,N)
SOLUTN(ET,Y,Y,N,N,N,N)
SOLUTN(KT,Y,Y,N,N,N,N)
SOLUTN(ENUT,Y,N,N,N,N,Y)
VIST = 150
PRPS = 145
************************************************************
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(EP,N,Y,Y,Y,Y,N)
TERMS(KP,N,Y,Y,Y,Y,N)
TERMS(ET,N,Y,Y,Y,Y,N)
TERMS(KT,N,Y,Y,Y,Y,N)
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.100667E-05 ;ENUT = GRND5
ENUTA =0. ;ENUTB =0.
ENUTC =0.
IENUTA = 7
PRNDTL(U1)=1. ;PRNDTL(V1)=1.
PRNDTL(EP)=1. ;PRNDTL(KP)=1.
PRNDTL(ET)=1. ;PRNDTL(KT)=1.
PRT(U1)=1. ;PRT(V1)=1.
PRT(EP)=1.15 ;PRT(KP)=1.15
PRT(ET)=0.75 ;PRT(KT)=0.75
CP1 =1. ;CP2 =1.
************************************************************
Group 10.Inter-Phase Transfer Processes
************************************************************
Group 11.Initial field variables (PHIs)
FIINIT(P1)=1.3E-04 ;FIINIT(U1)=0.013
FIINIT(V1)=0.013 ;FIINIT(KE)=0.7605
FIINIT(EP)=31.777433 ;FIINIT(PRPS)=-1.
FIINIT(KP)=0.6084 ;FIINIT(ET)=31.777433
FIINIT(KT)=0.1521 ;FIINIT(ENUT)=0.0182

PATCH(STEP ,INIVAL, 1, 5, 1, 10, 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(TSKESO ,PHASEM, 0, 0, 0, 0, 0, 0, 1, 1)
COVAL(TSKESO ,EP , GRND5 , GRND5 )
COVAL(TSKESO ,KP , GRND5 , GRND5 )
COVAL(TSKESO ,ET , GRND5 , GRND5 )
COVAL(TSKESO ,KT , GRND5 , GRND5 )

PATCH(INLET ,WEST , 1, 1, 11, 20, 1, 1, 1, 1)
COVAL(INLET ,P1 , FIXFLU ,13. )
COVAL(INLET ,U1 ,0. ,13. )
COVAL(INLET ,V1 ,0. ,0. )
COVAL(INLET ,EP ,0. ,31.777433 )
COVAL(INLET ,KP ,0. ,0.6084 )
COVAL(INLET ,ET ,0. ,31.777433 )
COVAL(INLET ,KT ,0. ,0.1521 )

PATCH(OUTLET ,EAST , 25, 25, 1, 20, 1, 1, 1, 1)
COVAL(OUTLET ,P1 ,1.0E+05 ,0. )
COVAL(OUTLET ,U1 ,0. ,0. )
COVAL(OUTLET ,V1 ,0. ,0. )
COVAL(OUTLET ,EP ,0. ,0. )
COVAL(OUTLET ,KP ,0. ,0. )
COVAL(OUTLET ,ET ,0. ,0. )
COVAL(OUTLET ,KT ,0. ,0. )

PATCH(WFNN ,NWALL , 1, 25, 20, 20, 1, 1, 1, 1)
COVAL(WFNN ,U1 , GRND2 ,0. )
COVAL(WFNN ,EP , GRND2 , GRND2 )
COVAL(WFNN ,KP , GRND2 , GRND2 )
COVAL(WFNN ,ET , GRND2 , GRND2 )
COVAL(WFNN ,KT , GRND2 , GRND2 )

PATCH(WFNS ,SWALL , 6, 25, 1, 1, 1, 1, 1, 1)
COVAL(WFNS ,U1 , GRND2 ,0. )
COVAL(WFNS ,EP , GRND2 , GRND2 )
COVAL(WFNS ,KP , GRND2 , GRND2 )
COVAL(WFNS ,ET , GRND2 , GRND2 )
COVAL(WFNS ,KT , GRND2 , GRND2 )

PATCH(STEP-WW ,WWALL , 6, 6, 1, 10, 1, 1, 1, 1)
COVAL(STEP-WW ,V1 , GRND2 ,0. )
COVAL(STEP-WW ,EP , GRND2 , GRND2 )
COVAL(STEP-WW ,KP , GRND2 , GRND2 )
COVAL(STEP-WW ,ET , GRND2 , GRND2 )
COVAL(STEP-WW ,KT , GRND2 , GRND2 )

PATCH(STEP-SW ,SWALL , 1, 5, 11, 11, 1, 1, 1, 1)
COVAL(STEP-SW ,U1 , GRND2 ,0. )
COVAL(STEP-SW ,EP , GRND2 , GRND2 )
COVAL(STEP-SW ,KP , GRND2 , GRND2 )
COVAL(STEP-SW ,ET , GRND2 , GRND2 )
COVAL(STEP-SW ,KT , GRND2 , GRND2 )
XCYCLE = F
EGWF = T
WALLCO = GRND2
************************************************************
Group 14. Downstream Pressure For PARAB
************************************************************
Group 15. Terminate Sweeps
LSWEEP = 100 ;ISWC1 = 1
LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
SELREF = T
RESFAC =0.1
************************************************************
Group 16. Terminate Iterations
LITER(P1)=20 ;LITER(U1)=10
LITER(V1)=10 ;LITER(EP)=5
LITER(KP)=5 ;LITER(ET)=5
LITER(KT)=5
ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-03
ENDIT(V1)=1.0E-03 ;ENDIT(EP)=1.0E-03
ENDIT(KP)=1.0E-03 ;ENDIT(ET)=1.0E-03
ENDIT(KT)=1.0E-03
************************************************************
Group 17. Relaxation
RELAX(P1,LINRLX,1.)
RELAX(U1,FALSDT,0.058615)
RELAX(V1,FALSDT,0.058615)
RELAX(KE,LINRLX,1.)
RELAX(EP,LINRLX,0.5)
RELAX(PRPS,LINRLX,1.)
RELAX(KP,LINRLX,0.5)
RELAX(ET,LINRLX,0.5)
RELAX(KT,LINRLX,0.5)
RELAX(ENUT,LINRLX,0.5)
KELIN = 0
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(KP)=1.0E+10 ;VARMIN(KP)=1.0E-10
VARMAX(ET)=1.0E+10 ;VARMIN(ET)=1.0E-10
VARMAX(KT)=1.0E+10 ;VARMIN(KT)=1.0E-10
VARMAX(ENUT)=1.0E+10 ;VARMIN(ENUT)=-1.0E+10
************************************************************
Group 19. Data transmitted to GROUND
GENK = T
YPLS = T
PARSOL = F
IENUTA = 7
ISG62 = 1
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(KP,Y,N,Y,Y,Y,Y)
OUTPUT(ET,Y,N,Y,Y,Y,Y)
OUTPUT(KT,Y,N,Y,Y,Y,Y)
OUTPUT(ENUT,Y,N,Y,N,N,N)
************************************************************
Group 22. Monitor Print-Out
IXMON = 7 ;IYMON = 8 ;IZMON = 1
NPRMON = 100 ;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 = 10
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
```