TALK=T;RUN(1,1)
  AUTOPLOT USE
  file
  phi 5

  da 1
  p1 x 1 119

  da 1
  gasu x 1 119

  da 1
  r1   x 1 119

  screen
  pl 1 ; colour3 1 1
  msg pressure profile
  msg press  to continue
  pause
  screen
  pl 2 ; colour8 2 2
  msg gas velocity
  msg press  to continue
  pause
  screen
  pl 3  ;scale y 0 1;coloure 3 3
  msg gas volume fraction
  msg press e to END
  enduse
  DISPLAY
    NUMERICAL BENCHMARK PROBLEM 1.1:  CONVERGENT-DIVERGENT NOZZLE
    Two fluids flow through a convergent-divergent nozzle. The
    lighter one is a compressible gas; the second one, which is
    in much smaller volumetric concentration, is incompressible.
    The density ratio is such that the pressure gradients which
    accelerate the gas have less effect upon the motion of the
    heavier fluid; but the latter is nevertheless also
    accelerated by the drag exerted upon it by the gas.

    The task is to predict the distributions of pressure, volume
    fraction and velocity along the duct, under various
    conditions.
  ENDDIS
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(CF=1.E7 RHO2=10. POUT=3.0 :         W871)
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 870
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 120
 XULAST =1.
   Method of pairs used for grid setting.
 XFRAC(2)=8.333334E-03
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 1
 YVLAST =1.
 YFRAC(1)=1.
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 1
 ZWLAST =1.
 ZFRAC(1)=1.
 ************************************************************
  Group 6. Body-Fitted Coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS = F
 EQUVEL = F
 NAME(1)=P1 ;NAME(3)=GASU
 NAME(4)=SOLU ;NAME(9)=R1
 NAME(10)=R2 ;NAME(149)=DEN1
 NAME(150)=EPOR
    * 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,N,N,N,Y)
 SOLUTN(GASU,Y,Y,N,N,N,Y)
 SOLUTN(SOLU,Y,Y,N,N,N,Y)
 SOLUTN(R1,Y,Y,N,N,N,Y)
 SOLUTN(R2,Y,Y,N,N,N,Y)
 SOLUTN(DEN1,Y,N,N,N,N,Y)
 SOLUTN(EPOR,Y,N,N,N,N,Y)
 DEN1 = 149
 EPOR = 150 ;HPOR = 0 ;NPOR = 0 ;VPOR = 0
 ************************************************************
  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(GASU,Y,Y,N,Y,Y,Y)
 TERMS(SOLU,Y,Y,N,Y,N,Y)
 TERMS(R1,Y,Y,N,Y,Y,Y)
 TERMS(R2,Y,Y,N,Y,N,Y)
 DIFCUT =0.5 ;ZDIFAC =1.
 GALA = F ;ADDDIF = F
 NEWRH1 = 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 = GRND3 ;TMP1 =0. ;EL1 =0.
 TSURR =0. ;TEMP0 =0. ;PRESS0 =1.
 DVO1DT =0. ;DRH1DP = GRND3
 RHO1A =1. ;RHO1B =0.714 ;RHO1C =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 RHO2 =10. ;TMP2 =0. ;EL2 =0.
 DVO2DT =0. ;DRH2DP =0.
 ENUL =0. ;ENUT =0.
 PHINT(GASU)=-2.022E+04 ;PHINT(SOLU)=-2.022E+04
 PHINT(R1)=-2.022E+04 ;PHINT(R2)=-2.022E+04
 CP1 =1. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 CFIPS =1.0E+07
 RLOLIM =0. ;CMDOT =0.
 CINT(P1)=1. ;CINT(GASU)=1.
 CINT(SOLU)=1. ;CINT(R1)=1.
 CINT(R2)=1.
 PHINT(P1)=-2.022E+04 ;PHINT(GASU)=-2.022E+04
 PHINT(SOLU)=-2.022E+04 ;PHINT(R1)=-2.022E+04
 PHINT(R2)=-2.022E+04
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(P1)=3. ;FIINIT(GASU)=0.5
 FIINIT(SOLU)=0.5 ;FIINIT(R1)=0.9
 FIINIT(R2)=0.1 ;FIINIT(DEN1)=3.
 FIINIT(EPOR)=1.
 
 PATCH(CONVERGE,LINVLX, 30, 120, 1, 1, 1, 1, 1, 1)
 INIT(CONVERGE,EPOR,-2. ,0. )
 
 PATCH(DIVERGE ,LINVLX, 60, 120, 1, 1, 1, 1, 1, 1)
 INIT(DIVERGE ,EPOR,3. ,0. )
 INIADD = T
 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 ,WEST , 1, 1, 1, 1, 1, 1, 1, 1)
 COVAL(INLET ,GASU,0. ,0.5 )
 COVAL(INLET ,SOLU,0. ,0.5 )
 COVAL(INLET ,R1 , FIXFLU ,1.5 )
 COVAL(INLET ,R2 , FIXFLU ,0.5 )
 
 PATCH(OUTLET ,CELL , 120, 120, 1, 1, 1, 1, 1, 1)
 COVAL(OUTLET ,GASU,0. ,0. )
 COVAL(OUTLET ,SOLU,0. ,0. )
 COVAL(OUTLET ,R1 ,1000. ,3. )
 COVAL(OUTLET ,R2 ,1.0E+04 ,3. )
 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
 ISWR1 = 1 ;ISWR2 = 10000
 SELREF = T
 RESFAC =1.0E-05
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;LITER(GASU)=10
 LITER(SOLU)=10 ;LITER(R1)=1
 LITER(R2)=1
 ENDIT(P1)=1.0E-03 ;ENDIT(GASU)=1.0E-03
 ENDIT(SOLU)=1.0E-03 ;ENDIT(R1)=1.0E-03
 ENDIT(R2)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,1.)
 RELAX(GASU,FALSDT,1.)
 RELAX(SOLU,FALSDT,1.)
 RELAX(R1,LINRLX,0.3)
 RELAX(R2,LINRLX,0.3)
 RELAX(DEN1,LINRLX,1.)
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(P1)=1.0E+10 ;VARMIN(P1)=-1.0E+10
 VARMAX(GASU)=1.0E+06 ;VARMIN(GASU)=-1.0E+06
 VARMAX(SOLU)=1.0E+06 ;VARMIN(SOLU)=-1.0E+06
 VARMAX(R1)=1. ;VARMIN(R1)=1.0E-06
 VARMAX(R2)=1. ;VARMIN(R2)=1.0E-06
 VARMAX(DEN1)=1.0E+10 ;VARMIN(DEN1)=-1.0E+10
 VARMAX(EPOR)=1.0E+10 ;VARMIN(EPOR)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 PARSOL = F
 ISG62 = 1
 SPEDAT(SET,GXMONI,PLOTALL,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(GASU,Y,N,Y,Y,Y,Y)
 OUTPUT(SOLU,Y,N,Y,Y,Y,Y)
 OUTPUT(R1,N,N,N,N,N,N)
 OUTPUT(R2,Y,N,Y,Y,Y,Y)
 OUTPUT(DEN1,Y,N,Y,N,N,N)
 OUTPUT(EPOR,Y,N,Y,N,N,N)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 60 ;IYMON = 1 ;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 = 6 ;IXPRF = 1 ;IXPRL = 10000
 IPLTF = 3 ;IPLTL = 200 ;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
 
 PATCH(LONGPLOT,PROFIL, 1, 120, 1, 1, 1, 1, 1, 1)
 PLOT(LONGPLOT,P1 ,0. ,0. )
 PLOT(LONGPLOT,GASU,-1. ,-1. )
 PLOT(LONGPLOT,SOLU,-1. ,-1. )
 PLOT(LONGPLOT,R2 ,0. ,0. )
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
STOP