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




  view z
  norm
  msg                                 Oil volume fractions and
  msg                                 velocity vectors
  msg                                         Time step 1
  msg
  msg                                         Press RETURN after
  msg                                         each pause
  gr z m
  con r2 z m fi;10
  pause
  set vec comp;au2 bv2 cw2
  vec z m
  pause
  p
  p2


  view z
  norm
  msg                                    Time step 2
  gr z m
  con r2 z m fi;10
  pause
  set vec comp;au2 bv2 cw2
  vec z m
  pause
  p
  p3


  view z
  norm
  msg                                    Time step 3
  gr z m
  con r2 z m fi;10
  pause
  set vec comp;au2 bv2 cw2
  vec z m
  pause
  p
  p4


  view z
  norm
  msg                                    Time step 4
  gr z m
  con r2 z m fi;10
  pause
  set vec comp;au2 bv2 cw2
  vec z m
  pause
  p
  p5


  view z
  norm
  msg                                    Time step 5
  gr z m
  con r2 z m fi;10
  pause
  set vec comp;au2 bv2 cw2
  vec z m
  pause
  p
  p6



  view z
  norm
  msg                                    Time step 6
  gr z m
  con r2 z m fi;10
  pause
  set vec comp;au2 bv2 cw2
  vec z m
  pause
  p
  p7


  view z
  norm
  msg                                    Time step 7
  gr z m
  con r2 z m fi;10
  pause
  set vec comp;au2 bv2 cw2
  vec z m
  msg
  msg Press e to END
  enduse
  DISPLAY
  2-dimensional (x-y), polar, transient, elliptic simulation

  This demonstration concerns the motion of a wind-driven oil slick.
  Geometry of the problem is simplified using polar-grid option.

  The two-phase option of PHOENICS is employed.
  ENDDIS
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT( Oil slick in a gulf with wind: W428    )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 14
 ************************************************************
  Group 2. Time dependence
 STEADY = F
    * Set overall time and no. of steps
 TFIRST =0. ;TLAST =1.0E+04
 FSTEP = 1 ;LSTEP = 7
 TFRAC(1)=0.1 ;TFRAC(2)=0.2
 TFRAC(3)=0.3 ;TFRAC(4)=0.4
 TFRAC(5)=0.5 ;TFRAC(6)=0.6
 TFRAC(7)=0.7
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = F
 NX = 20
 XULAST =1.58
 XFRAC(1)=0.05 ;XFRAC(2)=0.1
 XFRAC(3)=0.15 ;XFRAC(4)=0.2
 XFRAC(5)=0.25 ;XFRAC(6)=0.3
 XFRAC(7)=0.35 ;XFRAC(8)=0.4
 XFRAC(9)=0.45 ;XFRAC(10)=0.5
 XFRAC(11)=0.55 ;XFRAC(12)=0.6
 XFRAC(13)=0.65 ;XFRAC(14)=0.7
 XFRAC(15)=0.75 ;XFRAC(16)=0.8
 XFRAC(17)=0.85 ;XFRAC(18)=0.9
 XFRAC(19)=0.95 ;XFRAC(20)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 10
 YVLAST =2000.
 RINNER =1.0E+04 ;SNALFA =0.
 YFRAC(1)=0.1 ;YFRAC(2)=0.2
 YFRAC(3)=0.3 ;YFRAC(4)=0.4
 YFRAC(5)=0.5 ;YFRAC(6)=0.6
 YFRAC(7)=0.7 ;YFRAC(8)=0.8
 YFRAC(9)=0.9 ;YFRAC(10)=1.
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 2
 ZWLAST =1.
   Method of pairs used for grid setting.
 ZFRAC(1)=-2. ;ZFRAC(2)=0.5
 ************************************************************
  Group 6. Body-Fitted Coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS = F
 EQUVEL = F
 NAME(1)=P1 ;NAME(3)=U1
 NAME(4)=AU2 ;NAME(5)=V1
 NAME(6)=BV2 ;NAME(7)=W1
 NAME(8)=CW2 ;NAME(9)=R1
 NAME(10)=R2 ;NAME(148)=NPOR
 NAME(149)=EPOR ;NAME(150)=VPOR
    * 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,Y,N,N,N)
 SOLUTN(AU2,Y,Y,Y,N,N,N)
 SOLUTN(V1,Y,Y,Y,N,N,N)
 SOLUTN(BV2,Y,Y,Y,N,N,N)
 SOLUTN(W1,Y,Y,Y,N,N,N)
 SOLUTN(CW2,Y,Y,Y,N,N,N)
 SOLUTN(R1,Y,Y,N,N,N,Y)
 SOLUTN(R2,Y,Y,N,N,N,Y)
 SOLUTN(NPOR,Y,N,N,N,N,Y)
 SOLUTN(EPOR,Y,N,N,N,N,Y)
 SOLUTN(VPOR,Y,N,N,N,N,Y)
 EPOR = 149 ;HPOR = 0 ;NPOR = 148 ;VPOR = 150
 ************************************************************
  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(AU2,Y,Y,Y,Y,N,Y)
 TERMS(V1,Y,Y,Y,Y,Y,Y)
 TERMS(BV2,Y,Y,Y,Y,N,Y)
 TERMS(W1,Y,Y,Y,Y,Y,Y)
 TERMS(CW2,Y,Y,Y,Y,N,Y)
 TERMS(R1,Y,Y,Y,Y,Y,Y)
 TERMS(R2,Y,Y,Y,Y,N,Y)
 DIFCUT =0.5 ;ZDIFAC =1.
 GALA = F ;ADDDIF = F
 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 =1000. ;TMP1 =0. ;EL1 =0.
 TSURR =0. ;TEMP0 =0. ;PRESS0 =0.
 DVO1DT =0. ;DRH1DP =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 RHO2 =800. ;TMP2 =0. ;EL2 =0.
 DVO2DT =0. ;DRH2DP =0.
 ENUL =1.0E-05 ;ENUT =0.
 PHINT(U1)=-2.022E+04 ;PHINT(AU2)=-2.022E+04
 PHINT(V1)=-2.022E+04 ;PHINT(BV2)=-2.022E+04
 PHINT(W1)=-2.022E+04 ;PHINT(CW2)=-2.022E+04
 PHINT(R1)=-2.022E+04 ;PHINT(R2)=-2.022E+04
 PRNDTL(U1)=1. ;PRNDTL(AU2)=1.
 PRNDTL(V1)=1. ;PRNDTL(BV2)=1.
 PRNDTL(W1)=1. ;PRNDTL(CW2)=1.
 PRNDTL(R1)=1. ;PRNDTL(R2)=1.
 PRT(U1)=1. ;PRT(AU2)=1.
 PRT(V1)=1. ;PRT(BV2)=1.
 PRT(W1)=1. ;PRT(CW2)=1.
 PRT(R1)=1. ;PRT(R2)=1.
 CP1 =1. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 CFIPS =1000.
 RLOLIM =1.0E-03 ;CMDOT =0.
 CINT(P1)=1. ;CINT(U1)=1.
 CINT(AU2)=1. ;CINT(V1)=1.
 CINT(BV2)=1. ;CINT(W1)=1.
 CINT(CW2)=1. ;CINT(R1)=1.
 CINT(R2)=1.
 PHINT(P1)=-2.022E+04 ;PHINT(U1)=-2.022E+04
 PHINT(AU2)=-2.022E+04 ;PHINT(V1)=-2.022E+04
 PHINT(BV2)=-2.022E+04 ;PHINT(W1)=-2.022E+04
 PHINT(CW2)=-2.022E+04 ;PHINT(R1)=-2.022E+04
 PHINT(R2)=-2.022E+04
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(P1)=1.0E-10 ;FIINIT(U1)=1.0E-10
 FIINIT(AU2)=1.0E-10 ;FIINIT(V1)=1.0E-10
 FIINIT(BV2)=1.0E-10 ;FIINIT(W1)=1.0E-10
 FIINIT(CW2)=1.0E-10 ;FIINIT(R1)=1.
 FIINIT(R2)=0. ;FIINIT(NPOR)=1.
 FIINIT(EPOR)=1. ;FIINIT(VPOR)=1.
 
 PATCH(BED ,LINVLY, 1, 20, 1, 5, 1, 2, 1, 7)
 INIT(BED ,NPOR,1.0E-04 ,1.0E-02 )
 INIT(BED ,EPOR,1.0E-04 ,1.0E-02 )
 INIT(BED ,VPOR,1.0E-04 ,1.0E-02 )
 
 PATCH(BED2 ,LINVLY, 1, 20, 6, 10, 1, 2, 1, 7)
 INIT(BED2 ,NPOR,-1.0E-04 ,0.1 )
 INIT(BED2 ,EPOR,-1.0E-04 ,0.1 )
 INIT(BED2 ,VPOR,-1.0E-04 ,0.1 )
 
 PATCH(START ,INIVAL, 19, 20, 9, 10, 2, 2, 1, 1)
 INIT(START ,R1 ,0. ,0.99 )
 INIT(START ,R2 ,0. ,1.0E-02 )
 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(WIND ,HIGH , 1, 20, 5, 10, 2, 2, 1, 7)
 COVAL(WIND ,U1 ,1.0E-03 ,-5. )
 
 PATCH(GRAVITY ,PHASEM, 1, 1, 1, 1, 1, 1, 1, 7)
 COVAL(GRAVITY ,W1 , FIXFLU ,-9.81 )
 COVAL(GRAVITY ,CW2 , FIXFLU ,-9.81 )
 
 PATCH(REF ,CELL , 20, 20, 1, 10, 2, 2, 1, 7)
 COVAL(REF ,R1 ,1.0E+10 ,0. )
 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-03
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;LITER(U1)=10
 LITER(AU2)=10 ;LITER(V1)=10
 LITER(BV2)=10 ;LITER(W1)=10
 LITER(CW2)=10 ;LITER(R1)=1
 LITER(R2)=1
 ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-03
 ENDIT(AU2)=1.0E-03 ;ENDIT(V1)=1.0E-03
 ENDIT(BV2)=1.0E-03 ;ENDIT(W1)=1.0E-03
 ENDIT(CW2)=1.0E-03 ;ENDIT(R1)=1.0E-03
 ENDIT(R2)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,1.)
 RELAX(U1,FALSDT,100.)
 RELAX(AU2,FALSDT,100.)
 RELAX(V1,FALSDT,100.)
 RELAX(BV2,FALSDT,100.)
 RELAX(W1,FALSDT,0.1)
 RELAX(CW2,FALSDT,0.1)
 RELAX(R1,LINRLX,0.5)
 RELAX(R2,LINRLX,0.5)
 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(AU2)=1.0E+06 ;VARMIN(AU2)=-1.0E+06
 VARMAX(V1)=1.0E+06 ;VARMIN(V1)=-1.0E+06
 VARMAX(BV2)=1.0E+06 ;VARMIN(BV2)=-1.0E+06
 VARMAX(W1)=1.0E+06 ;VARMIN(W1)=-1.0E+06
 VARMAX(CW2)=1.0E+06 ;VARMIN(CW2)=-1.0E+06
 VARMAX(R1)=1. ;VARMIN(R1)=1.0E-10
 VARMAX(R2)=1. ;VARMIN(R2)=1.0E-10
 VARMAX(NPOR)=1.0E+10 ;VARMIN(NPOR)=-1.0E+10
 VARMAX(EPOR)=1.0E+10 ;VARMIN(EPOR)=-1.0E+10
 VARMAX(VPOR)=1.0E+10 ;VARMIN(VPOR)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 PARSOL = F
 ISG62 = 1
 PHS2PA =2000.
 SPEDAT(SET,GXMONI,TRANSIENT,L,F)
 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,N,Y,Y,Y)
 OUTPUT(U1,Y,N,Y,Y,Y,Y)
 OUTPUT(AU2,Y,N,Y,Y,Y,Y)
 OUTPUT(V1,Y,N,Y,Y,Y,Y)
 OUTPUT(BV2,Y,N,Y,Y,Y,Y)
 OUTPUT(W1,Y,Y,Y,Y,Y,Y)
 OUTPUT(CW2,Y,Y,Y,Y,Y,Y)
 OUTPUT(R1,N,N,N,N,N,N)
 OUTPUT(R2,Y,N,Y,Y,Y,Y)
 OUTPUT(NPOR,N,N,N,N,N,N)
 OUTPUT(EPOR,N,N,N,N,N,N)
 OUTPUT(VPOR,N,N,N,N,N,N)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 19 ;IYMON = 9 ;IZMON = 2
 NPRMON = 100000 ;NPRMNT = 1 ;TSTSWP = -1
 UWATCH = T ;USTEER = T
 HIGHLO = F
 ************************************************************
  Group 23.Field Print-Out & Plot Control
 NPRINT = 100000 ;NUMCLS = 5
 NTPRIN = 1 ;ISTPRF = 1 ;ISTPRL = 100000
 NXPRIN = 1 ;IXPRF = 1 ;IXPRL = 10
 NYPRIN = 1 ;IYPRF = 1 ;IYPRL = 10
 NZPRIN = -1 ;IZPRF = 1 ;IZPRL = 10000
 XZPR = F ;YZPR = F
 IPLTF = 2 ;IPLTL = 100 ;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(MAP ,CONTUR, 1, 20, 1, 10, 2, 2, 1, 7)
 PLOT(MAP ,R2 ,0. ,10. )
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
 IDISPA = 1 ;IDISPB = 0 ;IDISPC = 0
 CSG1    ='PHI'
 CSG2    ='XYZ'
STOP