TALK=T;RUN(1,1)
  PHOTON USE
  p



  msg Press  after each pause
  gr ou x 1
  msg first-fluid velocity components
  set vec com
  u1 cv1 sw1
  vec x 1 sh
  pause
  vec off
  red
  msg second-fluid velocity components
  set vec com
  2u dv2 fw2
  vec x 1 sh
  pause;vec off;red
  msg first-fluid concentration contours
  con ar1 x 1 fi;0.01
  pause
  msg second-fluid concentration contours
  con br2 x 1 fi;0.01
  msg            -
  msg Press e to END
  enduse
  DISPLAY
  TWO-FLUID MODEL OF JETS MIXING IN A DUCT
  2-dimensional (y-z), Cartesian, steady, two-phase, elliptic

  This is an example of the application of the two-fluid model of
  turbulence to non-reacting, turbulent flow in a duct, as
  illustrated:
  ////////////////////////////////////////////////
  Inlet                                       Exit
  --------> W2                         ---------->
  ////////////
         ---------->                    ------->
             /////////////////////////////////////

  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. It is postulated that only fluid 2 enters
  the duct at the inlet, and that it is converted into fluid 1 there
  by entrainment. The boundary condition employed here is an extreme
  one to emphasise the role of inter-fluid transport of mass and
  momentum.
  enddis
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(Mixing in a duct; Two-Fluid Model   :W97)
 
 ************************************************************
 ************************************************************
 
 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
   Method of pairs used for grid setting.
 YFRAC(4)=0.044446
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 30
 ZWLAST =1.
   Method of pairs used for grid setting.
 ZFRAC(2)=0.0254
 ************************************************************
  Group 6. Body-Fitted Coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS = F
 EQUVEL = F
 NAME(1)=P1 ;NAME(3)=U1
 NAME(4)=2U ;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(U1,Y,Y,N,N,N,Y)
 SOLUTN(2U,Y,Y,N,N,N,Y)
 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(U1,Y,Y,Y,Y,Y,Y)
 TERMS(2U,Y,Y,Y,Y,N,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 =0.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(U1)=-2.022E+04 ;PHINT(2U)=-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
 PRNDTL(U1)=1. ;PRNDTL(2U)=1.
 PRNDTL(CV1)=1. ;PRNDTL(DV2)=1.
 PRNDTL(SW1)=1. ;PRNDTL(FW2)=1.
 PRNDTL(AR1)=1. ;PRNDTL(BR2)=1.
 PRT(U1)=1. ;PRT(2U)=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(U1)=1.
 CINT(2U)=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(U1)=-2.022E+04
 PHINT(2U)=-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(U1)=1.0E-10
 FIINIT(2U)=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 ,U1 ,0. ,0. )
 COVAL(INLET ,2U ,0. ,0. )
 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 ,0.182 )
 COVAL(INLET ,BR2 , FIXFLU ,18.018002 )
 
 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,U1 , GRND2 ,0. )
 COVAL(NORTHWAL,SW1 ,1. ,0. )
 COVAL(NORTHWAL,FW2 ,1. ,0. )
 
 PATCH(SOUTHWAL,SWALL , 1, 1, 1, 1, 7, 30, 1, 1)
 COVAL(SOUTHWAL,U1 , GRND2 ,0. )
 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 )
 
 PATCH(STEPIN ,HIGH , 1, 1, 1, 15, 7, 7, 1, 1)
 COVAL(STEPIN ,U1 ,0. ,18.200001 )
 COVAL(STEPIN ,2U ,0. ,18.200001 )
 COVAL(STEPIN ,AR1 , FIXFLU ,9.009001 )
 COVAL(STEPIN ,BR2 , FIXFLU ,0.091 )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 75 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 ISWR1 = 1 ;ISWR2 = 10000
 SELREF = T
 RESFAC =1.0E-02
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;LITER(U1)=10
 LITER(2U)=10 ;LITER(CV1)=10
 LITER(DV2)=10 ;LITER(SW1)=10
 LITER(FW2)=10 ;LITER(AR1)=1
 LITER(BR2)=1
 ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-03
 ENDIT(2U)=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(U1,FALSDT,1.)
 RELAX(2U,FALSDT,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(U1)=1.0E+06 ;VARMIN(U1)=-1.0E+06
 VARMAX(2U)=1.0E+06 ;VARMIN(2U)=-1.0E+06
 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(U1,Y,N,Y,Y,Y,Y)
 OUTPUT(2U,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 = 6 ;IYPRF = 1 ;IYPRL = 10000
 NZPRIN = 6 ;IZPRF = 1 ;IZPRL = 10000
 XZPR = F ;YZPR = F
 IPLTF = 1 ;IPLTL = -1 ;NPLT = 1
 ISWPRF = 1 ;ISWPRL = 100000
 ITABL = 1 ;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. )
 
 PATCH(MAP ,CONTUR, 1, 1, 1, 30, 1, 30, 1, 1)
 PLOT(MAP ,U1 ,0. ,0. )
 PLOT(MAP ,SW1 ,0. ,10. )
 PLOT(MAP ,AR1 ,0. ,10. )
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
STOP