TALK=T;RUN(1,1)
  DISPLAY
  The case considered is the simulation of a turbulent neutral
  atmospheric boundary layer using the standard k-e model
  and fully-rough logarithmic wall functions. The height of the
  solution domain is below 150m, and so the flow can be
  considered as a constant stress layer. In this region the
  velocity and turbulence variables are given by:

      u/u*=ln(z/z0)/K    k=u*^2/cmucd**0.5   enut=K*z*u*
      e=u*^3/(K*z)   or  w=sqrt(k)/([K*z*cmucd]**0.25)

  where u*=friction velocity, K=0.41, cmucd=0.09 and z0 is the
  roughness height. A calculation is made using a reference wind
  speed of 4m/s at a reference height of Zr=100m. The wind enters
  from the west boundary over terrain with an aerodynamic
  roughness height z0=0.3m. The domain height is set equal to
  the reference height, and the flow exits the solution domain
  at the east boundary which is located 2.*Zr downstream of the
  inlet. Under these conditions, the friction velocity
  u*=0.282m/s. The inlet profiles correspond to a fully-developed
  neutral atmospheric boundary. The calculation demonstrates that
  PHOENICS preserves these inlet profiles and returns a uniform
  pressure field. The case is also simulated by using the
  Realisable k-e model and the Wilcox-Kolmogorov k-w model.
  ENDDIS
  PHOTON USE
   p



   up z
   gr y 1
   con p1 y 1 fi;.1;pa
   con u1 y 1 fi;.1;pa
   con ke y 1 fi;.1;pa
   con enut y 1 fi;.1;pa
   con ep y 1 fi;.1;pa
   con udis y 1 fi;.1;pa
   con kdis y 1 fi;.1;pa
  ENDUSE
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(2D KE ATMOSPHERIC BOUNDARY LAYER: T306  )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 14
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 100
 XULAST =200.
 XFRAC(1)=1.0E-02 ;XFRAC(2)=0.02
 XFRAC(3)=0.03 ;XFRAC(4)=0.04
 XFRAC(5)=0.05 ;XFRAC(6)=0.06
 XFRAC(7)=0.07 ;XFRAC(8)=0.08
 XFRAC(9)=0.09 ;X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.8
 XFRAC(81)=0.81 ;XFRAC(82)=0.82
 XFRAC(83)=0.83 ;XFRAC(84)=0.84
 XFRAC(85)=0.85 ;XFRAC(86)=0.86
 XFRAC(87)=0.87 ;XFRAC(88)=0.88
 XFRAC(89)=0.89 ;XFRAC(90)=0.9
 XFRAC(91)=0.91 ;XFRAC(92)=0.92
 XFRAC(93)=0.93 ;XFRAC(94)=0.94
 XFRAC(95)=0.95 ;XFRAC(96)=0.96
 XFRAC(97)=0.97 ;XFRAC(98)=0.98
 XFRAC(99)=0.99 ;XFRAC(100)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 1
 YVLAST =100.
 YFRAC(1)=1.
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 50
 ZWLAST =100.
 ZFRAC(1)=0.012 ;ZFRAC(2)=0.01562
 ZFRAC(3)=0.019456 ;ZFRAC(4)=0.023523
 ZFRAC(5)=0.027834 ;ZFRAC(6)=0.032404
 ZFRAC(7)=0.037248 ;ZFRAC(8)=0.042382
 ZFRAC(9)=0.047825 ;ZFRAC(10)=0.053594
 ZFRAC(11)=0.059709 ;ZFRAC(12)=0.066191
 ZFRAC(13)=0.073063 ;ZFRAC(14)=0.080346
 ZFRAC(15)=0.088066 ;ZFRAC(16)=0.09625
 ZFRAC(17)=0.104924 ;ZFRAC(18)=0.114119
 ZFRAC(19)=0.123866 ;ZFRAC(20)=0.134198
 ZFRAC(21)=0.145149 ;ZFRAC(22)=0.156758
 ZFRAC(23)=0.169063 ;ZFRAC(24)=0.182106
 ZFRAC(25)=0.195932 ;ZFRAC(26)=0.210588
 ZFRAC(27)=0.226123 ;ZFRAC(28)=0.24259
 ZFRAC(29)=0.260045 ;ZFRAC(30)=0.278547
 ZFRAC(31)=0.298159 ;ZFRAC(32)=0.318948
 ZFRAC(33)=0.340985 ;ZFRAC(34)=0.364343
 ZFRAC(35)=0.389104 ;ZFRAC(36)=0.415349
 ZFRAC(37)=0.44317 ;ZFRAC(38)=0.47266
 ZFRAC(39)=0.503919 ;ZFRAC(40)=0.537054
 ZFRAC(41)=0.572177 ;ZFRAC(42)=0.609407
 ZFRAC(43)=0.648871 ;ZFRAC(44)=0.690702
 ZFRAC(45)=0.735044 ;ZFRAC(46)=0.782046
 ZFRAC(47)=0.831869 ;ZFRAC(48)=0.88468
 ZFRAC(49)=0.940661 ;ZFRAC(50)=1.
 ************************************************************
  Group 6. Body-Fitted Coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS = T
 NAME(1)=P1 ;NAME(3)=U1
 NAME(7)=W1 ;NAME(12)=KE
 NAME(13)=EP ;NAME(16)=C1
 NAME(142)=KDIS ;NAME(143)=UDIS
 NAME(144)=EPIN ;NAME(145)=KEIN
 NAME(146)=UIN ;NAME(147)=GEN1
 NAME(148)=LEN1 ;NAME(149)=STRS
 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,Y)
 SOLUTN(U1,Y,Y,N,N,N,N)
 SOLUTN(W1,Y,Y,N,N,N,N)
 SOLUTN(KE,Y,Y,N,N,N,N)
 SOLUTN(EP,Y,Y,N,N,N,N)
 SOLUTN(C1,Y,Y,Y,N,N,Y)
 SOLUTN(KDIS,Y,N,N,N,N,Y)
 SOLUTN(UDIS,Y,N,N,N,N,Y)
 SOLUTN(EPIN,Y,N,N,N,N,Y)
 SOLUTN(KEIN,Y,N,N,N,N,Y)
 SOLUTN(UIN,Y,N,N,N,N,Y)
 SOLUTN(GEN1,Y,N,N,N,N,Y)
 SOLUTN(LEN1,Y,N,N,N,N,Y)
 SOLUTN(STRS,Y,N,N,N,N,Y)
 SOLUTN(ENUT,Y,N,N,N,N,Y)
 VIST = 150
 LEN1 = 148
 ************************************************************
  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(W1,Y,Y,Y,Y,Y,Y)
 TERMS(KE,N,Y,Y,Y,Y,N)
 TERMS(EP,N,Y,Y,Y,Y,N)
 TERMS(C1,N,Y,Y,Y,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.18 ;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.0E-05 ;ENUT = GRND3
 ENUTA =0. ;ENUTB =0.
 ENUTC =0.
 IENUTA = 0
 PRNDTL(U1)=1. ;PRNDTL(W1)=1.
 PRNDTL(KE)=1. ;PRNDTL(EP)=1.
 PRNDTL(C1)=1.
 PRT(U1)=1. ;PRT(W1)=1.
 PRT(KE)=1. ;PRT(EP)=1.314
 PRT(C1)=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(W1)=1.0E-10 ;FIINIT(KE)=1.0E-10
 FIINIT(EP)=1.0E-10 ;FIINIT(C1)=1.0E-10
 FIINIT(KDIS)=1.0E-10 ;FIINIT(UDIS)=1.0E-10
 FIINIT(EPIN)=1.0E-10 ;FIINIT(KEIN)=1.0E-10
 FIINIT(UIN)=1.0E-10 ;FIINIT(GEN1)=1.0E-10
 FIINIT(LEN1)=1.0E-10 ;FIINIT(STRS)=1.0E-10
 FIINIT(ENUT)=1.0E-10
 
 PATCH(INITBL ,INIVAL, 1, 100, 1, 1, 1, 50, 1, 1)
 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,EP , GRND4 , GRND4 )
 
 PATCH(INBL ,WEST , 1, 1, 1, 1, 1, 50, 1, 1)
 COVAL(INBL ,P1 ,In-Form:source - see Grp 19)
 COVAL(INBL ,U1 ,In-Form:source - see Grp 19)
 COVAL(INBL ,KE ,0. ,0.26567 )
 COVAL(INBL ,EP ,In-Form:source - see Grp 19)
 
 PATCH(PEAST ,EAST , 100, 100, 1, 1, 1, 50, 1, 1)
 COVAL(PEAST ,P1 ,1000. ,0. )
 
 PATCH(SKY ,HIGH , 1, 100, 1, 1, 50, 50, 1, 1)
 COVAL(SKY ,P1 ,1000. ,0. )
 COVAL(SKY ,U1 ,0. ,4. )
 COVAL(SKY ,KE ,0. ,0.26567 )
 COVAL(SKY ,EP ,0. ,5.487967E-04 )
 
 PATCH(SKYD ,HIGH , 1, 100, 1, 1, 50, 50, 1, 1)
 COVAL(SKYD ,U1 ,In-Form:source - see Grp 19)
 COVAL(SKYD ,KE ,In-Form:source - see Grp 19)
 COVAL(SKYD ,EP ,In-Form:source - see Grp 19)
 
 PATCH(FRIC ,LWALL , 1, 100, 1, 1, 1, 1, 1, 1)
 COVAL(FRIC ,U1 , GRND5 ,0. )
 COVAL(FRIC ,KE , GRND5 , GRND5 )
 COVAL(FRIC ,EP , GRND5 , GRND5 )
 COVAL(FRIC ,C1 , GRND5 ,1. )
 XCYCLE = F
 WALLA =0.3 ;WALLB =0.
 EGWF = T
 WALLCO = GRND5
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 500 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 SELREF = T
 RESFAC =1.0E-04
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=50 ;LITER(U1)=10
 LITER(W1)=10 ;LITER(KE)=20
 LITER(EP)=20 ;LITER(C1)=20
 ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-03
 ENDIT(W1)=1.0E-03 ;ENDIT(KE)=1.0E-03
 ENDIT(EP)=1.0E-03 ;ENDIT(C1)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,1.)
 RELAX(U1,FALSDT,50.)
 RELAX(W1,FALSDT,50.)
 RELAX(KE,LINRLX,0.5)
 RELAX(EP,LINRLX,0.5)
 RELAX(C1,LINRLX,0.5)
 RELAX(KDIS,LINRLX,1.)
 RELAX(UDIS,LINRLX,1.)
 RELAX(EPIN,LINRLX,1.)
 RELAX(KEIN,LINRLX,1.)
 RELAX(UIN,LINRLX,1.)
 RELAX(GEN1,LINRLX,1.)
 RELAX(LEN1,LINRLX,1.)
 RELAX(STRS,LINRLX,1.)
 RELAX(ENUT,LINRLX,1.)
 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(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(C1)=1.0E+10 ;VARMIN(C1)=-1.0E+10
 VARMAX(KDIS)=1.0E+10 ;VARMIN(KDIS)=-1.0E+10
 VARMAX(UDIS)=1.0E+10 ;VARMIN(UDIS)=-1.0E+10
 VARMAX(EPIN)=1.0E+10 ;VARMIN(EPIN)=-1.0E+10
 VARMAX(KEIN)=1.0E+10 ;VARMIN(KEIN)=-1.0E+10
 VARMAX(UIN)=1.0E+10 ;VARMIN(UIN)=-1.0E+10
 VARMAX(GEN1)=1.0E+10 ;VARMIN(GEN1)=-1.0E+10
 VARMAX(LEN1)=1.0E+10 ;VARMIN(LEN1)=-1.0E+10
 VARMAX(STRS)=1.0E+10 ;VARMIN(STRS)=-1.0E+10
 VARMAX(ENUT)=1.0E+10 ;VARMIN(ENUT)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 GENK = T
 PARSOL = F
 ISG62 = 1
 SPEDAT(SET,STORED,UIN,C,=(0.282314*LOGE(ZG/0.3)/0.41)!ZSLSTR)
 SPEDAT(SET,STORED,KEIN,C,=0.26567!ZSLSTR)
 SPEDAT(SET,STORED,EPIN,C,=(0.05488/ZG)!ZSLSTR)
 SPEDAT(SET,STORED,UDIS,C,=100.*(U1/UIN-1.0)!IF(IX.LT.100)!ZSLFIN)
 SPEDAT(SET,STORED,KDIS,C,=100.*(KE/KEIN-1.0)!ZSLFIN)
 SPEDAT(SET,INITIAL,U1!INITBL,C,=0.282314*LOGE(ZG/0.3)/0.41)
 SPEDAT(SET,INITIAL,KE!INITBL,C,=0.26567)
 SPEDAT(SET,INITIAL,EP!INITBL,C,=0.05488/ZG)
 SPEDAT(SET,SOURCE,R1!INBL,C,=COVAL(2.0E-10&RHO1*UIN))
 SPEDAT(SET,SOURCE,U1!INBL,C,=COVAL(0.&UIN))
 SPEDAT(SET,SOURCE,EP!INBL,C,=COVAL(0.&EPIN))
 SPEDAT(SET,SOURCE,U1!SKYD,C,=COVAL(13.65833/(0.5*DZW)&4.))
 SPEDAT(SET,SOURCE,KE!SKYD,C,=COVAL(13.65833/(1.*0.5*DZW)&0.26567))
 SPEDAT(SET,SOURCE,EP!SKYD,C,=COVAL(13.65833/(1.314*0.5*DZW)&5.487$)
 SPEDAT(SET,SOURCE,EP!SKYD,C,967E-04))
 ************************************************************
  Group 20. Preliminary Printout
 DISTIL = T ;NULLPR = F
 NDST = 0
 DSTTOL =1.0E-02
 EX(P1)=2.251E-03 ;EX(U1)=2.758
 EX(W1)=6.918E-04 ;EX(KE)=0.2663
 EX(EP)=8.082E-03 ;EX(C1)=0.08385
 EX(KDIS)=0.3454 ;EX(UDIS)=0.2488
 EX(EPIN)=7.922E-03 ;EX(KEIN)=0.2657
 EX(UIN)=2.755 ;EX(GEN1)=0.02854
 EX(LEN1)=12.06 ;EX(STRS)=1.568E-03
 EX(ENUT)=3.409
 ************************************************************
  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(W1,Y,N,Y,Y,Y,Y)
 OUTPUT(KE,Y,N,Y,Y,Y,Y)
 OUTPUT(EP,Y,N,Y,Y,Y,Y)
 OUTPUT(C1,Y,N,Y,Y,Y,Y)
 OUTPUT(KDIS,Y,N,Y,N,N,N)
 OUTPUT(UDIS,Y,N,Y,N,N,N)
 OUTPUT(EPIN,Y,N,Y,N,N,N)
 OUTPUT(KEIN,Y,N,Y,N,N,N)
 OUTPUT(UIN,Y,N,Y,N,N,N)
 OUTPUT(GEN1,Y,N,Y,N,N,N)
 OUTPUT(LEN1,Y,N,Y,N,N,N)
 OUTPUT(STRS,Y,N,Y,N,N,N)
 OUTPUT(ENUT,Y,N,Y,N,N,N)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 11 ;IYMON = 1 ;IZMON = 11
 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
 NZPRIN = -1 ;IZPRF = 1 ;IZPRL = 10000
 XZPR = F ;YZPR = F
 IPLTF = 1 ;IPLTL = 500 ;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