TALK=T;RUN(1,1)
  DISPLAY
  The problem is the same as library case 230; but the 2-eqn
  k-omega model is used, the variable being OMEG, which is
  defined as KE/EPS, i.e. the frequency of the turbulence.
  ENDDIS
  PHOTON USE
  AUTOPLOT
    file
    phi 5

    d 1 ke;d 1 anke; Col3 1;blb4 2; Redr
    msg spatial decay of turbulence energy
    msg Press e to END
    text
    1
    3
    Predictions
     0.97408E+03 0.14786E+04 CR
    text
    1

    Analytical solution
     0.96768E+03 0.13548E+04 CR
    ENDUSE
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(X-Spatial Decay Of Turbu, K-Omega       )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 14
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 40
 XULAST =1.
 XFRAC(1)=0.025 ;XFRAC(3)=0.075
 XFRAC(5)=0.125 ;XFRAC(7)=0.175
 XFRAC(9)=0.225 ;XFRAC(11)=0.275
 XFRAC(13)=0.325 ;XFRAC(15)=0.375
 XFRAC(17)=0.425 ;XFRAC(19)=0.475
 XFRAC(21)=0.525 ;XFRAC(23)=0.575
 XFRAC(25)=0.625 ;XFRAC(27)=0.675
 XFRAC(29)=0.725 ;XFRAC(31)=0.775
 XFRAC(33)=0.825 ;XFRAC(35)=0.875
 XFRAC(37)=0.925 ;XFRAC(39)=0.975
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 1
 YVLAST =1.
 YFRAC(1)=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(3)=U1 ;NAME(12)=KE
 NAME(13)=EP ;NAME(148)=ANKE
 NAME(149)=OMEG ;NAME(150)=VIST
    * Y in SOLUTN argument list denotes:
    * 1-stored 2-solved 3-whole-field
    * 4-point-by-point 5-explicit 6-harmonic averaging 
 SOLUTN(U1,Y,N,N,N,N,Y)
 SOLUTN(KE,Y,Y,N,N,N,N)
 SOLUTN(EP,Y,N,N,N,N,Y)
 SOLUTN(ANKE,Y,N,N,N,N,Y)
 SOLUTN(OMEG,Y,Y,N,N,N,N)
 SOLUTN(VIST,Y,N,N,N,N,Y)
 VIST = 150
 ************************************************************
  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(KE,N,Y,N,N,N,N)
 TERMS(OMEG,N,Y,N,N,N,N)
 DIFCUT =0. ;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 = GRND5
 TSURR =0. ;TEMP0 =0.
 PRESS0 =0.
 DVO1DT =0. ;DRH1DP =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 EL1A =0.6 ;EL1B =0.
 EL1C =0.
 ENUL =5.0E-06 ;ENUT = GRND7
 ENUTA =0. ;ENUTB =0.
 ENUTC =0.
 IENUTA = 10
 CP1 =1. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(U1)=10. ;FIINIT(KE)=1.
 FIINIT(EP)=1.0E-10 ;FIINIT(ANKE)=1.0E-10
 FIINIT(OMEG)=83.333328 ;FIINIT(VIST)=1.0E-10
 
 PATCH(IN1 ,INIVAL, 1, 1, 1, 1, 1, 1, 1, 1)
 INIT(IN1 ,ANKE,0. ,0.990705 )
 
 PATCH(IN2 ,INIVAL, 2, 2, 1, 1, 1, 1, 1, 1)
 INIT(IN2 ,ANKE,0. ,0.972582 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INIVAL, 17, 17, 1, 1, 1, 1, 1, 1)
 INIT(IN17 ,ANKE,0. ,0.759383 )
 
 PATCH(IN18 ,INIVAL, 18, 18, 1, 1, 1, 1, 1, 1)
 INIT(IN18 ,ANKE,0. ,0.748216 )
 
 PATCH(IN19 ,INIVAL, 19, 19, 1, 1, 1, 1, 1, 1)
 INIT(IN19 ,ANKE,0. ,0.737346 )
 
 PATCH(IN20 ,INIVAL, 20, 20, 1, 1, 1, 1, 1, 1)
 INIT(IN20 ,ANKE,0. ,0.726762 )
 
 PATCH(IN21 ,INIVAL, 21, 21, 1, 1, 1, 1, 1, 1)
 INIT(IN21 ,ANKE,0. ,0.716453 )
 
 PATCH(IN22 ,INIVAL, 22, 22, 1, 1, 1, 1, 1, 1)
 INIT(IN22 ,ANKE,0. ,0.70641 )
 
 PATCH(IN23 ,INIVAL, 23, 23, 1, 1, 1, 1, 1, 1)
 INIT(IN23 ,ANKE,0. ,0.696621 )
 
 PATCH(IN24 ,INIVAL, 24, 24, 1, 1, 1, 1, 1, 1)
 INIT(IN24 ,ANKE,0. ,0.687078 )
 
 PATCH(IN25 ,INIVAL, 25, 25, 1, 1, 1, 1, 1, 1)
 INIT(IN25 ,ANKE,0. ,0.677773 )
 
 PATCH(IN26 ,INIVAL, 26, 26, 1, 1, 1, 1, 1, 1)
 INIT(IN26 ,ANKE,0. ,0.668695 )
 
 PATCH(IN27 ,INIVAL, 27, 27, 1, 1, 1, 1, 1, 1)
 INIT(IN27 ,ANKE,0. ,0.659838 )
 
 PATCH(IN28 ,INIVAL, 28, 28, 1, 1, 1, 1, 1, 1)
 INIT(IN28 ,ANKE,0. ,0.651194 )
 
 PATCH(IN29 ,INIVAL, 29, 29, 1, 1, 1, 1, 1, 1)
 INIT(IN29 ,ANKE,0. ,0.642756 )
 
 PATCH(IN30 ,INIVAL, 30, 30, 1, 1, 1, 1, 1, 1)
 INIT(IN30 ,ANKE,0. ,0.634515 )
 
 PATCH(IN31 ,INIVAL, 31, 31, 1, 1, 1, 1, 1, 1)
 INIT(IN31 ,ANKE,0. ,0.626466 )
 
 PATCH(IN32 ,INIVAL, 32, 32, 1, 1, 1, 1, 1, 1)
 INIT(IN32 ,ANKE,0. ,0.618603 )
 
 PATCH(IN33 ,INIVAL, 33, 33, 1, 1, 1, 1, 1, 1)
 INIT(IN33 ,ANKE,0. ,0.610918 )
 
 PATCH(IN34 ,INIVAL, 34, 34, 1, 1, 1, 1, 1, 1)
 INIT(IN34 ,ANKE,0. ,0.603407 )
 
 PATCH(IN35 ,INIVAL, 35, 35, 1, 1, 1, 1, 1, 1)
 INIT(IN35 ,ANKE,0. ,0.596063 )
 
 PATCH(IN36 ,INIVAL, 36, 36, 1, 1, 1, 1, 1, 1)
 INIT(IN36 ,ANKE,0. ,0.588882 )
 
 PATCH(IN37 ,INIVAL, 37, 37, 1, 1, 1, 1, 1, 1)
 INIT(IN37 ,ANKE,0. ,0.581858 )
 
 PATCH(IN38 ,INIVAL, 38, 38, 1, 1, 1, 1, 1, 1)
 INIT(IN38 ,ANKE,0. ,0.574985 )
 
 PATCH(IN39 ,INIVAL, 39, 39, 1, 1, 1, 1, 1, 1)
 INIT(IN39 ,ANKE,0. ,0.56826 )
 
 PATCH(IN40 ,INIVAL, 40, 40, 1, 1, 1, 1, 1, 1)
 INIT(IN40 ,ANKE,0. ,0.561678 )
 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(KESOURCE,PHASEM, 0, 0, 0, 0, 0, 0, 1, 1)
 COVAL(KESOURCE,KE , GRND4 , GRND4 )
 COVAL(KESOURCE,OMEG, GRND4 , GRND4 )
 
 PATCH(INLET ,WEST , 1, 1, 1, 1, 1, 1, 1, 1)
 COVAL(INLET ,KE ,10. ,1. )
 COVAL(INLET ,OMEG,10. ,83.333328 )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 10 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 SELREF = T
 RESFAC =1.0E-04
 ************************************************************
  Group 16. Terminate Iterations
 LITER(KE)=20 ;LITER(OMEG)=20
 ENDIT(KE)=1.0E-03 ;ENDIT(OMEG)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(U1,LINRLX,1.)
 RELAX(KE,LINRLX,0.5)
 RELAX(EP,LINRLX,1.)
 RELAX(ANKE,LINRLX,1.)
 RELAX(OMEG,FALSDT,1.0E+09)
 RELAX(VIST,LINRLX,1.)
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(U1)=1.0E+06 ;VARMIN(U1)=-1.0E+06
 VARMAX(KE)=1.0E+10 ;VARMIN(KE)=1.0E-10
 VARMAX(EP)=1.0E+10 ;VARMIN(EP)=1.0E-10
 VARMAX(ANKE)=1.0E+10 ;VARMIN(ANKE)=-1.0E+10
 VARMAX(OMEG)=1.0E+10 ;VARMIN(OMEG)=1.0E-10
 VARMAX(VIST)=1.0E+10 ;VARMIN(VIST)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 GENK = T
 PARSOL = F
 IENUTA = 10
 ISG62 = 1
 ************************************************************
  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(U1,N,N,N,N,N,N)
 OUTPUT(KE,Y,N,Y,Y,Y,Y)
 OUTPUT(EP,Y,N,Y,N,N,N)
 OUTPUT(ANKE,Y,N,Y,N,N,N)
 OUTPUT(OMEG,Y,N,Y,Y,Y,Y)
 OUTPUT(VIST,N,N,N,N,N,N)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 40 ;IYMON = 1 ;IZMON = 1
 NPRMON = 100000 ;NPRMNT = 1 ;TSTSWP = 5
 UWATCH = T ;USTEER = T
 HIGHLO = F
 ************************************************************
  Group 23.Field Print-Out & Plot Control
 NPRINT = 100000 ;NUMCLS = 5
 NXPRIN = 2 ;IXPRF = 1 ;IXPRL = 10000
 IPLTF = 1 ;IPLTL = -1 ;NPLT = -1
 ISWPRF = 1 ;ISWPRL = 100000
 ITABL = 1 ;IPROF = 1
 ABSIZ =0.5 ;ORSIZ =0.4
 NTZPRF = 1 ;NCOLPF = 50
 ICHR = 2 ;NCOLCO = 45 ;NROWCO = 20
 
 PATCH(PROFILE ,PROFIL, 1, 40, 1, 1, 1, 1, 1, 1)
 PLOT(PROFILE ,KE ,0. ,1. )
 PLOT(PROFILE ,OMEG,0. ,166.666656 )
 PLOT(PROFILE ,VIST,0. ,0. )
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
STOP