TALK=T;RUN(1,1) DISPLAY Numerical Schemes validation example: 2-d x-y, Cartesian, steady, elliptic simulation The problem considered is turbulent flow over a backward facing step, as studied experimentally W.D.Moss et al (1st Symp. on Turb. Shear Flows, Univ. Park, Penn., USA, Vol.II, p13.1, 1977). The Reynolds number based on step height H is 5E4 and the expansion ratio is 1.1. The inlet is specified as a uniform inflow located 12H upstream of the step. The outlet plane is located 30H downstream of the step. This Q1 uses quadratic-upwind differencing for the velocities, and Koren's bounded scheme for the turbulence variables. ENDDIS PHOTON USE P 0.20443E+04 0.15633E+04 CR gr ou z 1;use patgeo;msg vectors;vec z 1 sh msg pressand then to end pause ENDUSE ************************************************************ Group 1. Run Title and Number ************************************************************ ************************************************************ TEXT(YX TURBULENT BACKWARD-FACING-STEP FLOW ) ************************************************************ ************************************************************ IRUNN = 1 ;LIBREF = 14 ************************************************************ Group 2. Time dependence STEADY = T ************************************************************ Group 3. X-Direction Grid Spacing CARTES = T NX = 65 XULAST =3.192 XFRAC(1)=0.016667 ;XFRAC(2)=0.033333 XFRAC(3)=0.05 ;XFRAC(4)=0.066667 XFRAC(5)=0.083333 ;XFRAC(6)=0.1 XFRAC(7)=0.116667 ;XFRAC(8)=0.133333 XFRAC(9)=0.15 ;XFRAC(10)=0.166667 XFRAC(11)=0.181905 ;XFRAC(12)=0.196643 XFRAC(13)=0.210837 ;XFRAC(14)=0.224434 XFRAC(15)=0.237366 ;XFRAC(16)=0.24954 XFRAC(17)=0.260827 ;XFRAC(18)=0.271023 XFRAC(19)=0.279748 ;XFRAC(20)=0.285714 XFRAC(21)=0.289734 ;XFRAC(22)=0.294949 XFRAC(23)=0.300737 ;XFRAC(24)=0.306931 XFRAC(25)=0.313446 ;XFRAC(26)=0.320228 XFRAC(27)=0.327241 ;XFRAC(28)=0.334457 XFRAC(29)=0.341857 ;XFRAC(30)=0.349424 XFRAC(31)=0.357144 ;XFRAC(32)=0.365005 XFRAC(33)=0.372999 ;XFRAC(34)=0.381117 XFRAC(35)=0.389351 ;XFRAC(36)=0.397697 XFRAC(37)=0.406147 ;XFRAC(38)=0.414697 XFRAC(39)=0.423343 ;XFRAC(40)=0.432081 XFRAC(41)=0.440906 ;XFRAC(42)=0.449816 XFRAC(43)=0.458807 ;XFRAC(44)=0.467877 XFRAC(45)=0.477022 ;XFRAC(46)=0.486241 XFRAC(47)=0.495532 ;XFRAC(48)=0.504891 XFRAC(49)=0.514318 ;XFRAC(50)=0.523809 XFRAC(51)=0.534556 ;XFRAC(52)=0.552169 XFRAC(53)=0.573839 ;XFRAC(54)=0.59865 XFRAC(55)=0.626094 ;XFRAC(56)=0.655837 XFRAC(57)=0.687638 ;XFRAC(58)=0.721315 XFRAC(59)=0.756722 ;XFRAC(60)=0.793741 XFRAC(61)=0.832272 ;XFRAC(62)=0.872232 XFRAC(63)=0.913548 ;XFRAC(64)=0.956156 XFRAC(65)=1. ************************************************************ Group 4. Y-Direction Grid Spacing NY = 30 YVLAST =0.838 YFRAC(1)=5.596011E-03 ;YFRAC(2)=0.013779 YFRAC(3)=0.023342 ;YFRAC(4)=0.033928 YFRAC(5)=0.045346 ;YFRAC(6)=0.056764 YFRAC(7)=0.06735 ;YFRAC(8)=0.076913 YFRAC(9)=0.085096 ;YFRAC(10)=0.090692 YFRAC(11)=0.096414 ;YFRAC(12)=0.103838 YFRAC(13)=0.112077 ;YFRAC(14)=0.120895 YFRAC(15)=0.130168 ;YFRAC(16)=0.139823 YFRAC(17)=0.149806 ;YFRAC(18)=0.160079 YFRAC(19)=0.170613 ;YFRAC(20)=0.181384 YFRAC(21)=0.207271 ;YFRAC(22)=0.254603 YFRAC(23)=0.315897 ;YFRAC(24)=0.38848 YFRAC(25)=0.470809 ;YFRAC(26)=0.561843 YFRAC(27)=0.660816 ;YFRAC(28)=0.767138 YFRAC(29)=0.880331 ;YFRAC(30)=1. ************************************************************ Group 5. Z-Direction Grid Spacing PARAB = F NZ = 1 ZWLAST =1.0E-02 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(148)=PRPS 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,N) SOLUTN(V1,Y,Y,N,N,N,N) 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(ENUT,Y,N,N,N,N,Y) VIST = 150 PRPS = 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(V1,Y,Y,Y,Y,Y,Y) TERMS(KE,N,Y,Y,Y,Y,N) TERMS(EP,N,Y,Y,Y,Y,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.2 ;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.6E-05 ;ENUT = GRND3 ENUTA =0. ;ENUTB =0. ;ENUTC =0. IENUTA = 0 PRNDTL(U1)=1. ;PRNDTL(V1)=1. PRNDTL(KE)=1. ;PRNDTL(EP)=1. PRT(U1)=1. ;PRT(V1)=1. PRT(KE)=1. ;PRT(EP)=1.314 CP1 =1. ;CP2 =1. ************************************************************ Group 10.Inter-Phase Transfer Processes ************************************************************ Group 11.Initial field variables (PHIs) FIINIT(P1)=1.3E-04 ;FIINIT(U1)=10.526317 FIINIT(V1)=1.0E-10 ;FIINIT(KE)=5.540167E-04 FIINIT(EP)=3.124096E-05 ;FIINIT(PRPS)=-1. FIINIT(ENUT)=1.0E-10 PATCH(STEP ,INIVAL, 1, 20, 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(KESOURCE,PHASEM, 0, 0, 0, 0, 0, 0, 1, 1) COVAL(KESOURCE,KE , GRND4 , GRND4 ) COVAL(KESOURCE,EP , GRND4 , GRND4 ) PATCH(HOCS ,CELL , 0, 0, 0, 0, 0, 0, 1, 1) COVAL(HOCS ,U1 , FIXFLU , GRND1 ) COVAL(HOCS ,V1 , FIXFLU , GRND1 ) COVAL(HOCS ,KE , FIXFLU , GRND2 ) COVAL(HOCS ,EP , FIXFLU , GRND2 ) PATCH(IN1 ,WEST , 1, 1, 11, 30, 1, 1, 1, 1) COVAL(IN1 ,P1 , FIXFLU ,12.63158 ) COVAL(IN1 ,U1 ,0. ,10.526317 ) COVAL(IN1 ,V1 ,0. ,0. ) COVAL(IN1 ,KE ,0. ,5.540167E-04 ) COVAL(IN1 ,EP ,0. ,3.124096E-05 ) PATCH(TWALL ,NWALL , 1, 65, 30, 30, 1, 1, 1, 1) COVAL(TWALL ,U1 , GRND2 ,0. ) COVAL(TWALL ,KE , GRND2 , GRND2 ) COVAL(TWALL ,EP , GRND2 , GRND2 ) PATCH(BWALL ,SWALL , 21, 65, 1, 1, 1, 1, 1, 1) COVAL(BWALL ,U1 , GRND2 ,0. ) COVAL(BWALL ,KE , GRND2 , GRND2 ) COVAL(BWALL ,EP , GRND2 , GRND2 ) PATCH(OUT ,EAST , 65, 65, 1, 30, 1, 1, 1, 1) COVAL(OUT ,P1 ,10. ,0. ) COVAL(OUT ,KE ,0. , SAME ) COVAL(OUT ,EP ,0. , SAME ) PATCH(STEP-WW ,WWALL , 21, 21, 1, 10, 1, 1, 1, 1) COVAL(STEP-WW ,V1 , GRND2 ,0. ) COVAL(STEP-WW ,KE , GRND2 , GRND2 ) COVAL(STEP-WW ,EP , GRND2 , GRND2 ) PATCH(STEP-SW ,SWALL , 1, 20, 11, 11, 1, 1, 1, 1) COVAL(STEP-SW ,U1 , GRND2 ,0. ) COVAL(STEP-SW ,KE , GRND2 , GRND2 ) COVAL(STEP-SW ,EP , GRND2 , GRND2 ) 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-05 ************************************************************ Group 16. Terminate Iterations LITER(P1)=20 ;LITER(U1)=10 LITER(V1)=10 ;LITER(KE)=10 LITER(EP)=10 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 ************************************************************ Group 17. Relaxation RELAX(P1,LINRLX,0.8) RELAX(U1,FALSDT,4.665231E-04) RELAX(V1,FALSDT,4.665231E-04) RELAX(KE,FALSDT,4.665231E-04) RELAX(EP,FALSDT,4.665231E-04) RELAX(PRPS,LINRLX,1.) RELAX(ENUT,LINRLX,0.6) 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(ENUT)=1.0E+10 ;VARMIN(ENUT)=-1.0E+10 ************************************************************ Group 19. Data transmitted to GROUND GENK = T PARSOL = F ISG62 = 1 CSG3 ='CNGR' SPEDAT(SET,SCHEME,INLCS003,I,4) SPEDAT(SET,SCHEME,INLCS005,I,4) SPEDAT(SET,SCHEME,INLCS012,I,7) SPEDAT(SET,SCHEME,INLCS013,I,7) 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(ENUT,Y,N,Y,N,N,N) ************************************************************ Group 22. Monitor Print-Out IXMON = 35 ;IYMON = 5 ;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 = 50 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