TALK=T;RUN(1,1) DISPLAY This is an example of the application of the two-fluid model of turbulence to non-reacting, turbulent flow over a backward-facing step, as illustrated: //////////////////////////////////////////////// Inlet Exit --------> W2 ----------> //////////// / Recirculation / <---- -------> ///////////////////////////////////// The geometry considered has a expansion ratio of 1.5 and an exit width of 3h, where h is the step height. The calculations are started at x=-4h and terminated at x=16h. The flow is incompressible. In the present calculations, the fluid 1 is defined as that which moves away from the stepped wall and fluid 2 as that moves towards it respectively. ENDDIS ************************************************************ Group 1. Run Title and Number ************************************************************ ************************************************************ TEXT(Backward-Facing Step;2-Fluid Model: 976 ) ************************************************************ ************************************************************ IRUNN = 1 ;LIBREF = 14 ************************************************************ Group 2. Time dependence STEADY = T ************************************************************ Group 3. X-Direction Grid Spacing CARTES = T NX = 1 XULAST =1. XFRAC(1)=1. ************************************************************ Group 4. Y-Direction Grid Spacing NY = 30 YVLAST =0.1143 YFRAC(1)=0.022222 ;YFRAC(3)=0.066667 YFRAC(5)=0.111111 ;YFRAC(7)=0.155556 YFRAC(9)=0.2 ;YFRAC(11)=0.244444 YFRAC(13)=0.288889 ;YFRAC(15)=0.333333 YFRAC(17)=0.422222 ;YFRAC(19)=0.511111 YFRAC(21)=0.6 ;YFRAC(23)=0.688889 YFRAC(25)=0.777778 ;YFRAC(27)=0.866667 YFRAC(29)=0.955555 ************************************************************ Group 5. Z-Direction Grid Spacing PARAB = F NZ = 30 ZWLAST =0.762 ZFRAC(1)=0.033333 ;ZFRAC(2)=0.066667 ZFRAC(3)=0.1 ;ZFRAC(4)=0.133333 ZFRAC(5)=0.166667 ;ZFRAC(6)=0.2 ZFRAC(7)=0.233333 ;ZFRAC(8)=0.266667 ZFRAC(9)=0.3 ;ZFRAC(10)=0.333333 ZFRAC(11)=0.366667 ;ZFRAC(12)=0.4 ZFRAC(13)=0.433333 ;ZFRAC(14)=0.466667 ZFRAC(15)=0.5 ;ZFRAC(16)=0.533333 ZFRAC(17)=0.566667 ;ZFRAC(18)=0.6 ZFRAC(19)=0.633333 ;ZFRAC(20)=0.666667 ZFRAC(21)=0.7 ;ZFRAC(22)=0.733333 ZFRAC(23)=0.766667 ;ZFRAC(24)=0.8 ZFRAC(25)=0.833333 ;ZFRAC(26)=0.866667 ZFRAC(27)=0.9 ;ZFRAC(28)=0.933333 ZFRAC(29)=0.966667 ;ZFRAC(30)=1. ************************************************************ Group 6. Body-Fitted Coordinates ************************************************************ Group 7. Variables: STOREd,SOLVEd,NAMEd ONEPHS = F EQUVEL = F NAME(1)=P1 ;NAME(5)=CV1 NAME(6)=DV2 ;NAME(7)=SW1 NAME(8)=FW2 ;NAME(9)=AR1 NAME(10)=BR2 ;NAME(22)=MDOT NAME(23)=LEN ;NAME(24)=VIS NAME(149)=PRPS * 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(CV1,Y,Y,N,N,N,Y) SOLUTN(DV2,Y,Y,N,N,N,Y) SOLUTN(SW1,Y,Y,N,N,N,Y) SOLUTN(FW2,Y,Y,N,N,N,Y) SOLUTN(AR1,Y,Y,N,N,N,Y) SOLUTN(BR2,Y,Y,N,N,N,Y) SOLUTN(MDOT,Y,N,N,N,N,N) SOLUTN(LEN,Y,N,N,N,N,N) SOLUTN(VIS,Y,N,N,N,N,N) SOLUTN(PRPS,Y,N,N,N,N,N) VIST = 24 INTMDT = 22 LEN1 = 23 PRPS = 149 ************************************************************ 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(CV1,Y,Y,Y,Y,Y,Y) TERMS(DV2,Y,Y,Y,Y,N,Y) TERMS(SW1,Y,Y,Y,Y,Y,Y) TERMS(FW2,Y,Y,Y,Y,N,Y) TERMS(AR1,Y,Y,Y,Y,Y,Y) TERMS(BR2,Y,Y,Y,Y,N,Y) DIFCUT =0.5 ;ZDIFAC =1. GALA = F ;ADDDIF = F NEWENT = T EQDVDP = F 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 = GRND9 TSURR =0. ;TEMP0 =0. ;PRESS0 =0. DVO1DT =0. ;DRH1DP =0. EMISS =0. ;SCATT =0. RADIA =0. ;RADIB =0. EL1A =0. ;EL1B =0. ;EL1C =0. RHO2 =1. ;TMP2 =0. ;EL2 =0. DVO2DT =0. ;DRH2DP =0. ENUL =1.0E-06 ;ENUT = GRND4 ENUTA =1. ;ENUTB =0. ;ENUTC =0. IENUTA = 0 PHINT(CV1)=-2.022E+04 ;PHINT(DV2)=-2.022E+04 PHINT(SW1)=-2.022E+04 ;PHINT(FW2)=-2.022E+04 PHINT(AR1)=-2.022E+04 ;PHINT(BR2)=-2.022E+04 PRNDTL(CV1)=1. ;PRNDTL(DV2)=1. PRNDTL(SW1)=1. ;PRNDTL(FW2)=1. PRNDTL(AR1)=1. ;PRNDTL(BR2)=1. PRT(CV1)=1. ;PRT(DV2)=1. PRT(SW1)=1. ;PRT(FW2)=1. PRT(AR1)=1. ;PRT(BR2)=1. CP1 =1. ;CP2 =1. ************************************************************ Group 10.Inter-Phase Transfer Processes CFIPS = GRND4 RLOLIM =0. ;CMDOT = GRND1 CFIPA =0. ;CFIPB =1. CFIPC =0.05 ;CFIPD =-1. CMDTA =10. ;CMDTB =0.5 CMDTC =0. ;CMDTD =0. CINT(P1)=1. ;CINT(CV1)=1. CINT(DV2)=1. ;CINT(SW1)=1. CINT(FW2)=1. ;CINT(AR1)=1. CINT(BR2)=1. PHINT(P1)=-2.022E+04 ;PHINT(CV1)=-2.022E+04 PHINT(DV2)=-2.022E+04 ;PHINT(SW1)=-2.022E+04 PHINT(FW2)=-2.022E+04 ;PHINT(AR1)=-2.022E+04 PHINT(BR2)=-2.022E+04 ************************************************************ Group 11.Initial field variables (PHIs) FIINIT(P1)=1.0E-10 ;FIINIT(CV1)=1.0E-10 FIINIT(DV2)=1.0E-10 ;FIINIT(SW1)=18.200001 FIINIT(FW2)=18.200001 ;FIINIT(AR1)=0.5 FIINIT(BR2)=0.5 ;FIINIT(MDOT)=1.0E-10 FIINIT(LEN)=1.0E-10 ;FIINIT(VIS)=1.0E-10 FIINIT(PRPS)=-1. PATCH(CMP0 ,INIVAL, 1, 1, 1, 15, 1, 6, 1, 1) INIT(CMP0 ,PRPS,0. ,198. ) 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(INLET ,LOW , 1, 1, 16, 30, 1, 1, 1, 1) COVAL(INLET ,CV1 ,0. ,0. ) COVAL(INLET ,DV2 ,0. ,0. ) COVAL(INLET ,SW1 ,0. ,18.200001 ) COVAL(INLET ,FW2 ,0. ,18.200001 ) COVAL(INLET ,AR1 , FIXFLU ,9.1 ) COVAL(INLET ,BR2 , FIXFLU ,9.1 ) PATCH(OUTLET ,HIGH , 1, 1, 1, 30, 30, 30, 1, 1) COVAL(OUTLET ,CV1 ,0. ,0. ) COVAL(OUTLET ,DV2 ,0. ,0. ) COVAL(OUTLET ,SW1 ,0. ,0. ) COVAL(OUTLET ,FW2 ,0. ,0. ) COVAL(OUTLET ,AR1 ,1.0E+05 ,0. ) COVAL(OUTLET ,BR2 ,1.0E+05 ,0. ) PATCH(NORTHWAL,NWALL , 1, 1, 30, 30, 1, 30, 1, 1) COVAL(NORTHWAL,SW1 ,1. ,0. ) COVAL(NORTHWAL,FW2 ,1. ,0. ) PATCH(SOUTHWAL,SWALL , 1, 1, 1, 1, 7, 30, 1, 1) COVAL(SOUTHWAL,SW1 ,1. ,0. ) COVAL(SOUTHWAL,FW2 ,1. ,0. ) PATCH(SHSO ,CELL , 1, 1, 1, 30, 1, 30, 1, 1) COVAL(SHSO ,CV1 , FIXFLU , GRND5 ) COVAL(SHSO ,DV2 , FIXFLU , GRND5 ) 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 ISWR1 = 1 ;ISWR2 = 10000 SELREF = T RESFAC =1.0E-05 ************************************************************ Group 16. Terminate Iterations LITER(P1)=20 ;LITER(CV1)=10 LITER(DV2)=10 ;LITER(SW1)=10 LITER(FW2)=10 ;LITER(AR1)=1 LITER(BR2)=1 ENDIT(P1)=1.0E-03 ;ENDIT(CV1)=1.0E-03 ENDIT(DV2)=1.0E-03 ;ENDIT(SW1)=1.0E-03 ENDIT(FW2)=1.0E-03 ;ENDIT(AR1)=1.0E-03 ENDIT(BR2)=1.0E-03 ************************************************************ Group 17. Relaxation RELAX(P1,LINRLX,1.) RELAX(CV1,FALSDT,1.0E-04) RELAX(DV2,FALSDT,1.0E-04) RELAX(SW1,FALSDT,1.0E-03) RELAX(FW2,FALSDT,1.0E-03) RELAX(AR1,LINRLX,0.25) RELAX(BR2,LINRLX,0.25) RELAX(MDOT,LINRLX,0.5) RELAX(LEN,LINRLX,1.) RELAX(VIS,LINRLX,1.) RELAX(PRPS,LINRLX,1.) OVRRLX =0. EXPERT = F ;NNORSL = F ************************************************************ Group 18. Limits VARMAX(P1)=1.0E+10 ;VARMIN(P1)=-1.0E+10 VARMAX(CV1)=1.0E+06 ;VARMIN(CV1)=-1.0E+06 VARMAX(DV2)=1.0E+06 ;VARMIN(DV2)=-1.0E+06 VARMAX(SW1)=1.0E+06 ;VARMIN(SW1)=-1.0E+06 VARMAX(FW2)=1.0E+06 ;VARMIN(FW2)=-1.0E+06 VARMAX(AR1)=1. ;VARMIN(AR1)=1.0E-06 VARMAX(BR2)=1. ;VARMIN(BR2)=1.0E-06 VARMAX(MDOT)=1.0E+10 ;VARMIN(MDOT)=-1.0E+10 VARMAX(LEN)=1.0E+10 ;VARMIN(LEN)=-1.0E+10 VARMAX(VIS)=1.0E+10 ;VARMIN(VIS)=-1.0E+10 VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10 ************************************************************ Group 19. Data transmitted to GROUND PARSOL = F ISG62 = 1 SHSOA =1. SPEDAT(SET,GXMONI,PLOTALL,L,T) SPEDAT(SET,MATERIAL,198,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(CV1,Y,N,Y,Y,Y,Y) OUTPUT(DV2,Y,N,Y,Y,Y,Y) OUTPUT(SW1,Y,N,Y,Y,Y,Y) OUTPUT(FW2,Y,N,Y,Y,Y,Y) OUTPUT(AR1,N,N,N,N,N,N) OUTPUT(BR2,Y,N,Y,Y,Y,Y) OUTPUT(MDOT,Y,Y,Y,Y,Y,Y) OUTPUT(LEN,N,N,Y,Y,N,N) OUTPUT(VIS,N,N,Y,Y,N,N) OUTPUT(PRPS,Y,N,Y,N,N,N) ************************************************************ Group 22. Monitor Print-Out IXMON = 1 ;IYMON = 13 ;IZMON = 8 NPRMON = 100000 ;NPRMNT = 1 ;TSTSWP = 1 UWATCH = T ;USTEER = T HIGHLO = F ************************************************************ Group 23.Field Print-Out & Plot Control NPRINT = 100000 ;NUMCLS = 5 NYPRIN = 2 ;IYPRF = 1 ;IYPRL = 10000 NZPRIN = -1 ;IZPRF = 1 ;IZPRL = 10000 XZPR = F ;YZPR = F IPLTF = 1 ;IPLTL = 1000 ;NPLT = 2 ISWPRF = 1 ;ISWPRL = 100000 ITABL = 3 ;IPROF = 1 ABSIZ =0.5 ;ORSIZ =0.4 NTZPRF = 1 ;NCOLPF = 50 ICHR = 2 ;NCOLCO = 45 ;NROWCO = 20 PATCH(LPRO1 ,PROFIL, 1, 1, 1, 1, 6, 30, 1, 1) PLOT(LPRO1 ,P1 ,0. ,0. ) PATCH(LPRO2 ,PROFIL, 1, 1, 30, 30, 6, 30, 1, 1) PLOT(LPRO2 ,P1 ,0. ,0. ) PATCH(WPRO ,PROFIL, 1, 1, 1, 30, 8, 8, 1, 1) PLOT(WPRO ,CV1 ,0.1 ,0.1 ) PLOT(WPRO ,DV2 ,0.1 ,0.1 ) PLOT(WPRO ,SW1 ,1. ,1. ) PLOT(WPRO ,FW2 ,1. ,1. ) ************************************************************ Group 24. Dumps For Restarts SAVE = T ;NOWIPE = F NSAVE =CHAM STOP