TALK=T;RUN(1,1)
  DISPLAY


   This case is based on a 3D calculation of the turbulent
   flow over a car geometry, as defined for WUA-95.

   Here, the flow on a 2D cross-section on the symmetry plane
   is considered.

   The flow can be solved with the GCV solver, or with the
   standard staggered solver.

   The Q1 contains PHOTON instructions.


  ENDDIS
  PHOTON USE
    p







    up z
    vi -y
    GR OU X 1; GR OU X M; GR OU Y 1; GR OU Y M
    * CAR
    GR OU X 39 Y  1  1 Z 9 20 COL  2
    GR OU X 19 Y  1  1 Z 9 20 COL  2
    GR OU Y  2 X 19 38 Z 9 20 COL  2
    GR OU Y  1 X 19 38 Z 9 20 COL  2
    * WH
    GR OU Z  9 X 19 38 Y 1  1 COL  3
    * WL
    GR OU Z 21 X 19 38 Y 1  1 COL  4
    * WW
    GR OU X 39 Y  1  1 Z 9 20 COL  5
    * WE
    GR OU X 19 Y  1  1 Z 9 20 COL  6
    * INL
    GR OU X  1 Y  1  1 Z 1 40 COL  7
    * OUT1
    GR OU X 69 Y  1  1 Z 1 40 COL  8
    * OUT2
    GR OU Z 41 X  1 68 Y 1  1 COL  9
    * WG
    GR OU Z  1 X  1 68 Y 1  1 COL 10
    msg The geometry
    msg Press RETURN for the velocity vectors
    pause
    vec y 1 sh
    msg Press RETURN for the Pressure Contours
    pause
    con p1 y 1 fi
    .001
    msg Press RETURN for a close up of the car
    pause
    mag gr 4
     0.12881E+04 0.14134E+04 CR
    gr y 1
    msg Press RETURN for contours of turbulent viscosity
    pause
    con cl;red
    con enut y 1 fi
    .001
    msg Press E then RETURN to finish
  ENDUSE
  
************************************************************ Group 1. Run Title and Number ************************************************************ ************************************************************ TEXT( CAR body - Staggered Solver ) ************************************************************ ************************************************************ IRUNN = 1 ;LIBREF = 14 ************************************************************ Group 2. Time dependence STEADY = T ************************************************************ Group 3. X-Direction Grid Spacing CARTES = T NX = 68 XULAST =1. ************************************************************ Group 4. Y-Direction Grid Spacing NY = 1 YVLAST =1. ************************************************************ Group 5. Z-Direction Grid Spacing PARAB = F NZ = 40 ZWLAST =1. ************************************************************ Group 6. Body-Fitted Coordinates BFC = T ;NONORT = T NCRT = -1 RSTGEO = F ;SAVGEO = F UUP = F ;VUP = F ;WUP = F NGEOM =CHAM NAMXYZ =CHAM ANGMIN =20. DOMAIN( 39, 69, 1, 1, 21, 41) * Set fixed sub-domain FIXDOM( 1, 0, 0, 0, 0, 0, 0) FIXDOM( 2, 0, 0, 0, 0, 0, 0) FIXDOM( 3, 0, 0, 0, 0, 0, 0) FIXDOM( 4, 0, 0, 0, 0, 0, 0) FIXDOM( 5, 0, 0, 0, 0, 0, 0) FIXDOM( 6, 0, 0, 0, 0, 0, 0) FIXDOM( 7, 0, 0, 0, 0, 0, 0) FIXDOM( 8, 0, 0, 0, 0, 0, 0) FIXDOM( 9, 0, 0, 0, 0, 0, 0) FIXDOM( 10, 0, 0, 0, 0, 0, 0) LIJ = F ;LJK = T ;LIK = F IMON = 54 ;JMON = 1 ;KMON = 31 ************************************************************ Group 7. Variables: STOREd,SOLVEd,NAMEd ONEPHS = T NAME(1)=P1 ;NAME(3)=U1 NAME(7)=W1 ;NAME(12)=KE NAME(13)=EP ;NAME(141)=PRPS NAME(142)=EPKE ;NAME(143)=EPOR NAME(144)=HPOR ;NAME(146)=GENK NAME(147)=ENUT ;NAME(148)=WCRT NAME(149)=VCRT ;NAME(150)=UCRT * 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,Y) SOLUTN(W1,Y,Y,N,N,N,Y) 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(EPKE,Y,N,N,N,N,N) SOLUTN(EPOR,Y,N,N,N,N,N) SOLUTN(HPOR,Y,N,N,N,N,N) SOLUTN(GENK,Y,N,N,N,N,Y) SOLUTN(ENUT,Y,N,N,N,N,Y) SOLUTN(WCRT,Y,N,N,N,N,N) SOLUTN(VCRT,Y,N,N,N,N,N) SOLUTN(UCRT,Y,N,N,N,N,N) VIST = 147 EPOR = 143 ;HPOR = 144 ;NPOR = 0 ;VPOR = 0 PRPS = 141 ************************************************************ 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) 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.189 ;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.534091E-05 ;ENUT = GRND3 ENUTA =0. ;ENUTB =0. ;ENUTC =0. IENUTA = 0 PRNDTL(U1)=1. ;PRNDTL(W1)=1. PRNDTL(KE)=1. ;PRNDTL(EP)=1. PRT(U1)=1. ;PRT(W1)=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.0E-10 ;FIINIT(U1)=0. FIINIT(W1)=0. ;FIINIT(KE)=6.25 FIINIT(EP)=5721.791992 ;FIINIT(PRPS)=-1. FIINIT(EPKE)=1.0E-10 ;FIINIT(EPOR)=1. FIINIT(HPOR)=1. ;FIINIT(GENK)=1.0E-10 FIINIT(ENUT)=1.0E-10 ;FIINIT(WCRT)=1.0E-10 FIINIT(VCRT)=1.0E-10 ;FIINIT(UCRT)=1.0E-10 PATCH(CAR ,INIVAL, 19, 38, 1, 1, 9, 20, 1, 1) INIT(CAR ,PRPS,0. ,199. ) PATCH(WH ,INIVAL, 19, 38, 1, 1, 8, 8, 1, 1) INIT(WH ,W1 ,0. ,0. ) INIT(WH ,HPOR,0. ,0. ) PATCH(WL ,INIVAL, 19, 38, 1, 1, 20, 20, 1, 1) INIT(WL ,W1 ,0. ,0. ) INIT(WL ,HPOR,0. ,0. ) PATCH(WW ,INIVAL, 38, 38, 1, 1, 9, 20, 1, 1) INIT(WW ,U1 ,0. ,0. ) INIT(WW ,EPOR,0. ,0. ) PATCH(WE ,INIVAL, 18, 18, 1, 1, 9, 20, 1, 1) INIT(WE ,U1 ,0. ,0. ) INIT(WE ,EPOR,0. ,0. ) 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(WG ,LWALL , 1, 68, 1, 1, 1, 1, 1, 1) COVAL(WG ,U1 , GRND2 ,0. ) COVAL(WG ,KE , GRND2 , GRND2 ) COVAL(WG ,EP , GRND2 , GRND2 ) PATCH(WH-HW ,HWALL , 19, 38, 1, 1, 8, 8, 1, 1) COVAL(WH-HW ,U1 , GRND2 ,0. ) COVAL(WH-HW ,KE , GRND2 , GRND2 ) COVAL(WH-HW ,EP , GRND2 , GRND2 ) PATCH(WH-LW ,LWALL , 19, 38, 1, 1, 9, 9, 1, 1) COVAL(WH-LW ,U1 , GRND2 ,0. ) COVAL(WH-LW ,KE , GRND2 , GRND2 ) COVAL(WH-LW ,EP , GRND2 , GRND2 ) PATCH(WL-HW ,HWALL , 19, 38, 1, 1, 20, 20, 1, 1) COVAL(WL-HW ,U1 , GRND2 ,0. ) COVAL(WL-HW ,KE , GRND2 , GRND2 ) COVAL(WL-HW ,EP , GRND2 , GRND2 ) PATCH(WL-LW ,LWALL , 19, 38, 1, 1, 21, 21, 1, 1) COVAL(WL-LW ,U1 , GRND2 ,0. ) COVAL(WL-LW ,KE , GRND2 , GRND2 ) COVAL(WL-LW ,EP , GRND2 , GRND2 ) PATCH(WW-EW ,EWALL , 38, 38, 1, 1, 9, 20, 1, 1) COVAL(WW-EW ,W1 , GRND2 ,0. ) COVAL(WW-EW ,KE , GRND2 , GRND2 ) COVAL(WW-EW ,EP , GRND2 , GRND2 ) PATCH(WW-WW ,WWALL , 39, 39, 1, 1, 9, 20, 1, 1) COVAL(WW-WW ,W1 , GRND2 ,0. ) COVAL(WW-WW ,KE , GRND2 , GRND2 ) COVAL(WW-WW ,EP , GRND2 , GRND2 ) PATCH(WE-EW ,EWALL , 18, 18, 1, 1, 9, 20, 1, 1) COVAL(WE-EW ,W1 , GRND2 ,0. ) COVAL(WE-EW ,KE , GRND2 , GRND2 ) COVAL(WE-EW ,EP , GRND2 , GRND2 ) PATCH(WE-WW ,WWALL , 19, 19, 1, 1, 9, 20, 1, 1) COVAL(WE-WW ,W1 , GRND2 ,0. ) COVAL(WE-WW ,KE , GRND2 , GRND2 ) COVAL(WE-WW ,EP , GRND2 , GRND2 ) PATCH(INL ,WEST , 1, 1, 1, 1, 1, 40, 1, 1) COVAL(INL ,P1 , FIXFLU ,59.450001 ) COVAL(INL ,U1 ,0. ,50. ) COVAL(INL ,W1 ,0. ,0. ) COVAL(INL ,KE ,0. ,6.25 ) COVAL(INL ,EP ,0. ,5721.791992 ) PATCH(OUT1 ,EAST , 68, 68, 1, 1, 1, 40, 1, 1) COVAL(OUT1 ,P1 ,1000. ,0. ) COVAL(OUT1 ,KE ,0. ,6.25 ) COVAL(OUT1 ,EP ,0. ,5721.791992 ) PATCH(OUT2 ,HIGH , 1, 68, 1, 1, 40, 40, 1, 1) COVAL(OUT2 ,P1 ,1000. ,0. ) COVAL(OUT2 ,KE ,0. ,6.25 ) COVAL(OUT2 ,EP ,0. ,5721.791992 ) XCYCLE = F EGWF = T WALLCO = GRND2 ************************************************************ Group 14. Downstream Pressure For PARAB ************************************************************ Group 15. Terminate Sweeps LSWEEP = 300 ;ISWC1 = 1 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1 SELREF = T RESFAC =1.0E-03 ************************************************************ Group 16. Terminate Iterations LITER(P1)=20 ;LITER(U1)=10 LITER(W1)=10 ;LITER(KE)=20 LITER(EP)=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 ************************************************************ Group 17. Relaxation RELAX(P1,LINRLX,0.2) RELAX(U1,FALSDT,1.35E-03) RELAX(W1,FALSDT,1.35E-03) RELAX(KE,LINRLX,0.5) RELAX(EP,LINRLX,0.5) RELAX(PRPS,LINRLX,1.) RELAX(EPKE,LINRLX,1.) RELAX(GENK,LINRLX,1.) RELAX(ENUT,LINRLX,1.) RELAX(WCRT,LINRLX,1.) RELAX(VCRT,LINRLX,1.) RELAX(UCRT,LINRLX,1.) KELIN = 3 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(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10 VARMAX(EPKE)=1.0E+10 ;VARMIN(EPKE)=-1.0E+10 VARMAX(EPOR)=1.0E+10 ;VARMIN(EPOR)=-1.0E+10 VARMAX(HPOR)=1.0E+10 ;VARMIN(HPOR)=-1.0E+10 VARMAX(GENK)=1.0E+10 ;VARMIN(GENK)=-1.0E+10 VARMAX(ENUT)=1.0E+10 ;VARMIN(ENUT)=-1.0E+10 VARMAX(WCRT)=1.0E+10 ;VARMIN(WCRT)=-1.0E+10 VARMAX(VCRT)=1.0E+10 ;VARMIN(VCRT)=-1.0E+10 VARMAX(UCRT)=1.0E+10 ;VARMIN(UCRT)=-1.0E+10 ************************************************************ Group 19. Data transmitted to GROUND GENK = T SYMBFC = T PARSOL = F ISG62 = 1 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(W1,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(EPKE,Y,N,Y,N,N,N) OUTPUT(EPOR,Y,N,Y,N,N,N) OUTPUT(HPOR,Y,N,Y,N,N,N) OUTPUT(GENK,Y,N,Y,N,N,N) OUTPUT(ENUT,Y,N,Y,N,N,N) OUTPUT(WCRT,Y,N,Y,N,N,N) OUTPUT(VCRT,Y,N,Y,N,N,N) OUTPUT(UCRT,Y,N,Y,N,N,N) ************************************************************ Group 22. Monitor Print-Out IXMON = 66 ;IYMON = 1 ;IZMON = 10 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 = -1 ;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