TALK=T;RUN( 1, 1) ************************************************************ Q1 created by VDI menu, Version 2017, Date 01/09/17 CPVNAM=VDI; SPPNAM=Core ************************************************************ Echo DISPLAY / USE settings DISPLAY The case considered is the simulation of the constant-stress- layer region of a 2d turbulent neutral atmospheric boundary layer using the standard k-e model and fully-rough logarithmic wall functions. In this region the velocity and turbulence variables are given by: u/utau=ln(z/z0)/K ; k=utau^2/sqrt(cmucd) e=utau^3/(K*z) ; enut=K*z*utau where utau=friction velocity, K=0.41, cmucd=0.09 and z0 is the roughness height. A calculation is made using the following wind inlet-profile data set by the wind object: Wind reference speed: Ur=5m/s at a reference height Zr=10m, wind direction from the west, and terrain roughness height z0=0.03 m. The friction velocity is given by utau=Ur*K/ln(zr/z0)=0.353m/s and so the shear_stress/density=0.125 m^2/s^2. The wind object is used which sets the wind inlet profiles, a fixed-pressure condition at the downstream boundary, and a constant shear- stress condition at the sky boundary via an entrainment and diffusive boundary condition. The height(z) of the solution domain is 100m, and the domain length is 200m(x). The wind enters from the west boundary, and leaves via the east boundary. The flow is 2d, although the simulation is 3d. The calculation demonstrates that PHOENICS preserves the wind inlet profiles and returns what is an essentially uniform pressure field. ENDDIS save1begin The inlet velocity and turbulence log-law profiles aren't preserved exactly because a spike in the k profile is produced at the second cell from the wall, which originates from the standard discretisation practices employed for the turbulence production rate Pk in the turbulence transport equations and the vertical diffusion terms in the axial momentum equation (see library case T306 for more details). save1end ************************************************************ IRUNN = 1 ;LIBREF = 312 ************************************************************ Group 1. Run Title TEXT(T701: 2D Z-Y ABL WIND FLOW - k-e model ) ************************************************************ Group 2. Transience STEADY = T ************************************************************ Groups 3, 4, 5 Grid Information * Overall number of cells, RSET(M,NX,NY,NZ,tolerance) RSET(M,30,5,30) ************************************************************ Group 6. Body-Fitted coordinates ************************************************************ Group 7. Variables: STOREd,SOLVEd,NAMEd * Non-default variable names NAME(138)=EVDS ;NAME(139)=EVIN NAME(140)=KDIS ;NAME(141)=UDIS NAME(142)=EPIN ;NAME(143)=KEIN NAME(144)=UIN ;NAME(145)=VABS NAME(146)=STRS ;NAME(147)=EPKE NAME(148)=DEN1 ;NAME(149)=EL1 NAME(150) =ENUT * Solved variables list SOLVE(P1,U1,V1,W1) * Stored variables list STORE(ENUT,EL1,DEN1,EPKE,STRS,VABS,UIN,KEIN) STORE(EPIN,UDIS,KDIS,EVIN,EVDS) * Additional solver options SOLUTN(P1,Y,Y,Y,N,N,Y) TURMOD(KEMODL) ************************************************************ Echo save-block settings for Group 7 save7begin REAL(VKC,XLEN,REFH,zdz0) REAL(USTAR,USTAR2,Z0,UIN) REAL(KCNS,USTAR3,EPCON) UIN =5.0 ! reference velocity REFH=10. ! reference height Z0=0.03 ! roughness height VKC=0.41 ! von karman's constant ZDZ0=REFH/Z0 USTAR=UIN*VKC/LOG(zdz0) ! friction velocity USTAR USTAR2=USTAR*USTAR;KCNS=USTAR2/0.3;USTAR3=USTAR2*USTAR KCNS EPCON=USTAR3/VKC *** store fully-developed boundary-layer values (stored of UIN is (:ustar:*loge(ZG/:Z0:)/:vkc:)!zslstr) (stored of KEIN is :kcns:!zslstr) (stored of EPIN is (:epcon:/ZG)!zslstr) (stored of EVIN is :vkc:*:ustar:*ZG!zslstr) (stored of OMIN is :epcon:/(ZG*0.09*:kcns:)!zslstr) ** discrepancy with log-law values (stored of UDIS is 100.*(U1/UIN-1.0) with IF(IX.LT.NX)) (stored of KDIS is 100.*(KE/KEIN-1.0)) (stored of EVDS is 100.*(ENUT/EVIN-1.0)) save7end ************************************************************ Group 8. Terms & Devices ************************************************************ Group 9. Properties PRESS0 =1.01325E+05 ;TEMP0 =273. * Domain material index is 0 signifying: * Air at 20 deg C, 1 atm, treated as incompressible SETPRPS(1, 0) DVO1DT =3.41E-03 PRT(EP)=1.314 ************************************************************ Group 10.Inter-Phase Transfer Processes ************************************************************ Group 11.Initialise Var/Porosity Fields FIINIT(P1)=0. No PATCHes used for this Group INIADD = F ************************************************************ Group 12. Convection and diffusion adjustments No PATCHes used for this Group ************************************************************ Group 13. Boundary & Special Sources No PATCHes used for this Group BUOYD =1.189 BUOYE =20. EGWF = T ************************************************************ Group 14. Downstream Pressure For PARAB ************************************************************ Group 15. Terminate Sweeps LSWEEP = 200 RESFAC =1.0E-05 ************************************************************ Group 16. Terminate Iterations LITER(P1)=200 ************************************************************ Group 17. Relaxation RELAX(P1 ,LINRLX,1. ) RELAX(KE ,LINRLX,0.5 ) RELAX(EP ,LINRLX,0.5 ) KELIN = 3 ************************************************************ Group 18. Limits ************************************************************ Group 19. EARTH Calls To GROUND Station GENK = T PARSOL = F ISG62 = 1 SPEDAT(SET,GXMONI,PLOTALL,L,T) SPEDAT(SET,MAXINC,KE,R,0.025) ************************************************************ Group 20. Preliminary Printout DISTIL = T ;NULLPR = F NDST = 0 DSTTOL =1.0E-02 EX(U1 )=5.847E+00 EX(W1 )=1.334E-04 EX(KE )=4.177E-01 EX(KEIN)=4.151E-01 EX(UIN )=5.846E+00 EX(VABS)=5.847E+00 EX(STRS)=3.890E-03 EX(DEN1)=1.189E+00 EX(P1 )=2.413E-04 EX(V1 )=2.340E-04 EX(EP )=1.171E-02 EX(EVDS)=1.165E+00 EX(EVIN)=5.531E+00 EX(KDIS)=1.121E+00 EX(UDIS)=2.025E-01 EX(EPIN)=1.141E-02 EX(EPKE)=2.806E-02 EX(EL1 )=1.571E+01 EX(ENUT)=5.547E+00 ************************************************************ Group 21. Print-out of Variables ************************************************************ Group 22. Monitor Print-Out IXMON = 23 ;IYMON = 1 ;IZMON = 5 NPRMON = 100000 NPRMNT = 1 TSTSWP = -1 ************************************************************ Group 23.Field Print-Out & Plot Control NPRINT = 100000 ISWPRF = 1 ;ISWPRL = 100000 No PATCHes used for this Group ************************************************************ Group 24. Dumps For Restarts ************************************************************ ************************************************************ GVIEW(P,0.,-1.,0.) GVIEW(UP,0.,0.,1.) GVIEW(DEPTH,3.0E+04) GVIEW(VDIS,109.981827) GVIEW(CENTRE,100.,25.,50.) > DOM, SIZE, 2.000000E+02, 5.000000E+01, 1.000000E+02 > DOM, MONIT, 1.500000E+02, 5.000000E+00, 7.402118E+00 > DOM, SCALE, 1.000000E+00, 1.000000E+00, 1.000000E+00 > DOM, INCREMENT, 1.000000E-02, 1.000000E-02, 1.000000E-02 > GRID, RSET_X_1, 30, 1.000000E+00,G > GRID, RSET_Y_1, 5, 1.000000E+00 > GRID, RSET_Z_1, 30, 1.050000E+00,G > DOM, INI_AMB, YES > DOM, INI_BUOY, YES > OBJ, NAME, WIND1 > OBJ, POSITION, 0.000000E+00, 0.000000E+00, 0.000000E+00 > OBJ, SIZE, TO_END, TO_END, TO_END > OBJ, DOMCLIP, NO > OBJ, GEOMETRY, windgr > OBJ, ROTATION24, 7 > OBJ, VISIBLE, NO > OBJ, TYPE, WIND > OBJ, WIREFRAME, YES > OBJ, PRESSURE, 1.01325E+05 > OBJ, COEFFICIENT, 1.0E+04 > OBJ, VELOCITY, 5. > OBJ, WIND_DIR, 270. > OBJ, AXIS_DIR, 0. > OBJ, PROFILE, Logarithmic > OBJ, REF_HEIGHT, 10. > OBJ, RGHNS_HEIGHT,0.03 > OBJ, UP-DIR, Z > OBJ, SKY, YES > OBJ, GROUND, YES > OBJ, GROUND-TEMP, ADIABATIC STOP