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



    up z
    msg Oil concentration (LOG10(oil)
    con logo x 1 fil;0.01
    mirror y
    msg Press  to continue
    pause
    cl
    msg Velocity vectors
    vec x 1 sh
    msg Press  to continue
    pause
    cl
    msg Effective viscosity
    con enut x 1 fil;0.01
    pause
    msg non-dimensional velocity
    cl
    con wdim x 1 fil;0.01
    msg Press e to END
    ENDUSE
   DISPLAY
   This case simulates an oil tanker rupture. The calculation is st$
ead
   with a uniform oil release rate which can be varied by changing
   the parameter, "rate". The parabolic mode with expanding
   grid is employed for both economy and accuracy. The calculation
   includes a residence-time equation.
   In-Form is used to set the buoyance force and to calculate the
   non-dimensional velocity and oil concentration.

   The result shows that the flow is a kind of turbulent plume.
   ENDDIS
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(Oil tanker rupture - Turbulent plume    )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 402
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = F
 NX = 1
 XULAST =0.1
 XFRAC(1)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 40
 YVLAST =0.1
 AZYV =1. ;AZRI =0. ;AZAL =0.
   Method of pairs used for grid setting.
 YFRAC(1)=-40. ;YFRAC(2)=0.025
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = T
 NZ = 200
 ZWADD =0.30303
 ZWLAST =3500.
 ZFRAC(1)=5.0E-03 ;ZFRAC(2)=1.0E-02
 ZFRAC(3)=0.015 ;ZFRAC(4)=0.02
 ZFRAC(5)=0.025 ;ZFRAC(6)=0.03
 ZFRAC(7)=0.035 ;ZFRAC(8)=0.04
 ZFRAC(9)=0.045 ;ZFRAC(10)=0.05
 ZFRAC(11)=0.055 ;ZFRAC(12)=0.06
 ZFRAC(13)=0.065 ;ZFRAC(14)=0.07
 ZFRAC(15)=0.075 ;ZFRAC(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)=0.41
 ZFRAC(83)=0.415 ;ZFRAC(84)=0.42
 ZFRAC(85)=0.425 ;ZFRAC(86)=0.43
 ZFRAC(87)=0.435 ;ZFRAC(88)=0.44
 ZFRAC(89)=0.445 ;ZFRAC(90)=0.45
 ZFRAC(91)=0.455 ;ZFRAC(92)=0.46
 ZFRAC(93)=0.465 ;ZFRAC(94)=0.47
 ZFRAC(95)=0.475 ;ZFRAC(96)=0.48
 ZFRAC(97)=0.485 ;ZFRAC(98)=0.49
 ZFRAC(99)=0.495 ;ZFRAC(100)=0.5
 ZFRAC(101)=0.505 ;ZFRAC(102)=0.51
 ZFRAC(103)=0.515 ;ZFRAC(104)=0.52
 ZFRAC(105)=0.525 ;ZFRAC(106)=0.53
 ZFRAC(107)=0.535 ;ZFRAC(108)=0.54
 ZFRAC(109)=0.545 ;ZFRAC(110)=0.55
 ZFRAC(111)=0.555 ;ZFRAC(112)=0.56
 ZFRAC(113)=0.565 ;ZFRAC(114)=0.57
 ZFRAC(115)=0.575 ;ZFRAC(116)=0.58
 ZFRAC(117)=0.585 ;ZFRAC(118)=0.59
 ZFRAC(119)=0.595 ;ZFRAC(120)=0.6
 ZFRAC(121)=0.605 ;ZFRAC(122)=0.61
 ZFRAC(123)=0.615 ;ZFRAC(124)=0.62
 ZFRAC(125)=0.625 ;ZFRAC(126)=0.63
 ZFRAC(127)=0.635 ;ZFRAC(128)=0.64
 ZFRAC(129)=0.645 ;ZFRAC(130)=0.65
 ZFRAC(131)=0.655 ;ZFRAC(132)=0.66
 ZFRAC(133)=0.665 ;ZFRAC(134)=0.67
 ZFRAC(135)=0.675 ;ZFRAC(136)=0.68
 ZFRAC(137)=0.685 ;ZFRAC(138)=0.69
 ZFRAC(139)=0.695 ;ZFRAC(140)=0.7
 ZFRAC(141)=0.705 ;ZFRAC(142)=0.71
 ZFRAC(143)=0.715 ;ZFRAC(144)=0.72
 ZFRAC(145)=0.725 ;ZFRAC(146)=0.73
 ZFRAC(147)=0.735 ;ZFRAC(148)=0.74
 ZFRAC(149)=0.745 ;ZFRAC(150)=0.75
 ZFRAC(151)=0.755 ;ZFRAC(152)=0.76
 ZFRAC(153)=0.765 ;ZFRAC(154)=0.77
 ZFRAC(155)=0.775 ;ZFRAC(156)=0.78
 ZFRAC(157)=0.785 ;ZFRAC(158)=0.79
 ZFRAC(159)=0.795 ;ZFRAC(160)=0.8
 ZFRAC(161)=0.805 ;ZFRAC(162)=0.81
 ZFRAC(163)=0.815 ;ZFRAC(164)=0.82
 ZFRAC(165)=0.825 ;ZFRAC(166)=0.83
 ZFRAC(167)=0.835 ;ZFRAC(168)=0.84
 ZFRAC(169)=0.845 ;ZFRAC(170)=0.85
 ZFRAC(171)=0.855 ;ZFRAC(172)=0.86
 ZFRAC(173)=0.865 ;ZFRAC(174)=0.87
 ZFRAC(175)=0.875 ;ZFRAC(176)=0.88
 ZFRAC(177)=0.885 ;ZFRAC(178)=0.89
 ZFRAC(179)=0.895 ;ZFRAC(180)=0.9
 ZFRAC(181)=0.905 ;ZFRAC(182)=0.91
 ZFRAC(183)=0.915 ;ZFRAC(184)=0.92
 ZFRAC(185)=0.925 ;ZFRAC(186)=0.93
 ZFRAC(187)=0.935 ;ZFRAC(188)=0.94
 ZFRAC(189)=0.945 ;ZFRAC(190)=0.95
 ZFRAC(191)=0.955 ;ZFRAC(192)=0.96
 ZFRAC(193)=0.965 ;ZFRAC(194)=0.97
 ZFRAC(195)=0.975 ;ZFRAC(196)=0.98
 ZFRAC(197)=0.985 ;ZFRAC(198)=0.99
 ZFRAC(199)=0.995 ;ZFRAC(200)=1.
 ************************************************************
  Group 6. Body-Fitted Coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS = T
 NAME(1)=P1 ;NAME(5)=V1
 NAME(7)=W1 ;NAME(12)=KE
 NAME(13)=EP ;NAME(143)=ODIM
 NAME(144)=WDIM ;NAME(145)=LOGO
 NAME(146)=EPKE ;NAME(147)=REST
 NAME(148)=OIL ;NAME(149)=LEN1
 NAME(150)=ENUT
    * 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(V1,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(ODIM,Y,N,N,N,N,N)
 SOLUTN(WDIM,Y,N,N,N,N,N)
 SOLUTN(LOGO,Y,N,N,N,N,N)
 SOLUTN(EPKE,Y,N,N,N,N,N)
 SOLUTN(REST,Y,Y,N,N,N,Y)
 SOLUTN(OIL,Y,Y,N,N,N,Y)
 SOLUTN(LEN1,Y,N,N,N,N,Y)
 SOLUTN(ENUT,Y,N,N,N,N,Y)
 VIST = 150
 LEN1 = 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(V1,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)
 TERMS(REST,N,Y,N,Y,N,Y)
 TERMS(OIL,N,Y,Y,Y,Y,Y)
 DIFCUT =0. ;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 =1000. ;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.0E-06 ;ENUT = GRND3
 ENUTA =0. ;ENUTB =0. ;ENUTC =0.
 IENUTA = 0
 PRNDTL(V1)=1. ;PRNDTL(W1)=1.
 PRNDTL(KE)=1. ;PRNDTL(EP)=1.
 PRNDTL(OIL)=1.
 PRT(V1)=1. ;PRT(W1)=1.
 PRT(KE)=1. ;PRT(EP)=1.314
 PRT(OIL)=1.
 CP1 =1. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(P1)=1.0E-10 ;FIINIT(V1)=1.0E-10
 FIINIT(W1)=1.0E-10 ;FIINIT(KE)=1.0E-02
 FIINIT(EP)=1.643E-03 ;FIINIT(ODIM)=1.0E-10
 FIINIT(WDIM)=1.0E-10 ;FIINIT(LOGO)=1.0E-10
 FIINIT(EPKE)=1.0E-10 ;FIINIT(REST)=1.0E-10
 FIINIT(OIL)=1.0E-10 ;FIINIT(LEN1)=1.0E-10
 FIINIT(ENUT)=1.0E-10
   No PATCHes yet used for this Group
 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(ELAPSE ,PHASEM, 1, 1, 1, 40, 1, 200, 1, 1)
 COVAL(ELAPSE ,REST, FIXFLU ,1. )
 
 PATCH(KESOURCE,PHASEM, 0, 0, 0, 0, 0, 0, 1, 1)
 COVAL(KESOURCE,KE , GRND4 , GRND4 )
 COVAL(KESOURCE,EP , GRND4 , GRND4 )
 
 PATCH(WHOLE ,PHASEM, 1, 1, 1, 40, 1, 200, 1, 1)
 COVAL(WHOLE ,W1 ,In-Form:source - see Grp 19)
 
 PATCH(NORTH ,NORTH , 1, 1, 40, 40, 1, 200, 1, 1)
 COVAL(NORTH ,P1 , FIXVAL ,0. )
 COVAL(NORTH ,REST,1. , SAME )
 
 PATCH(LEAK ,CELL , 1, 1, 1, 20, 1, 1, 1, 1)
 COVAL(LEAK ,KE , FIXFLU ,1.0E-02 )
 COVAL(LEAK ,EP , FIXFLU ,1.643E-03 )
 COVAL(LEAK ,OIL , FIXFLU ,0.011574 )
 
 PATCH(OUTSIDE ,CELL , 1, 1, 21, 40, 1, 1, 1, 1)
 COVAL(OUTSIDE ,P1 ,1000. ,0. )
 COVAL(OUTSIDE ,W1 ,0. ,0. )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 IPARAB = 1
 AZPH =0. ;PBAR =0.
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 1 ;ISWC1 = 1
 LITHYD = 50 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 SELREF = T
 RESFAC =1.0E-05
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;LITER(V1)=10
 LITER(W1)=10 ;LITER(KE)=20
 LITER(EP)=20 ;LITER(REST)=20
 LITER(OIL)=20
 ENDIT(P1)=1.0E-03 ;ENDIT(V1)=1.0E-03
 ENDIT(W1)=1.0E-03 ;ENDIT(KE)=1.0E-03
 ENDIT(EP)=1.0E-03 ;ENDIT(REST)=1.0E-03
 ENDIT(OIL)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,1.)
 RELAX(V1,FALSDT,1.)
 RELAX(W1,FALSDT,1.)
 RELAX(KE,LINRLX,0.5)
 RELAX(EP,LINRLX,0.5)
 RELAX(ODIM,LINRLX,1.)
 RELAX(WDIM,LINRLX,1.)
 RELAX(LOGO,LINRLX,1.)
 RELAX(EPKE,LINRLX,1.)
 RELAX(REST,FALSDT,2.)
 RELAX(OIL,FALSDT,1.0E+09)
 RELAX(LEN1,LINRLX,1.)
 RELAX(ENUT,LINRLX,1.)
 KELIN = 3
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(P1)=1.0E+10 ;VARMIN(P1)=-1.0E+10
 VARMAX(V1)=1.0E+06 ;VARMIN(V1)=-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(ODIM)=1.0E+10 ;VARMIN(ODIM)=-1.0E+10
 VARMAX(WDIM)=1.0E+10 ;VARMIN(WDIM)=-1.0E+10
 VARMAX(LOGO)=1.0E+10 ;VARMIN(LOGO)=-1.0E+10
 VARMAX(EPKE)=1.0E+10 ;VARMIN(EPKE)=-1.0E+10
 VARMAX(REST)=1.0E+10 ;VARMIN(REST)=-1.0E+10
 VARMAX(OIL)=1.0E+10 ;VARMIN(OIL)=-1.0E+10
 VARMAX(LEN1)=1.0E+10 ;VARMIN(LEN1)=-1.0E+10
 VARMAX(ENUT)=1.0E+10 ;VARMIN(ENUT)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 DWDY = T
 GENK = T
 PARSOL = F
 ISG62 = 1
 SPEDAT(SET,SOURCE,W1!WHOLE,C,=9.81*OIL*0.03!FIXFLU)
 SPEDAT(SET,STORED,LOGO,C,=LOG10(OIL)!ZSLFIN)
 SPEDAT(SET,STORED,WDIM,C,=W1*(ZZW/3500.)^0.3333!ZSLFIN)
 SPEDAT(SET,STORED,ODIM,C,=OIL*(ZZW/3500.)^1.6667!ZSLFIN)
 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,Y,Y,Y,Y,Y)
 OUTPUT(V1,Y,Y,Y,Y,Y,Y)
 OUTPUT(W1,Y,Y,Y,Y,Y,Y)
 OUTPUT(KE,Y,N,Y,Y,Y,Y)
 OUTPUT(EP,Y,N,Y,Y,Y,Y)
 OUTPUT(ODIM,Y,N,Y,N,N,N)
 OUTPUT(WDIM,Y,N,Y,N,N,N)
 OUTPUT(LOGO,Y,N,Y,N,N,N)
 OUTPUT(EPKE,Y,N,Y,N,N,N)
 OUTPUT(REST,Y,N,Y,Y,Y,Y)
 OUTPUT(OIL,Y,N,Y,Y,Y,Y)
 OUTPUT(LEN1,Y,N,Y,N,N,N)
 OUTPUT(ENUT,Y,N,Y,N,N,N)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 1 ;IYMON = 1 ;IZMON = 10
 NPRMON = 100000 ;NPRMNT = 1 ;TSTSWP = -5
 UWATCH = T ;USTEER = T
 HIGHLO = F
 ************************************************************
  Group 23.Field Print-Out & Plot Control
 NPRINT = 100000 ;NUMCLS = 5
 NYPRIN = -1 ;IYPRF = 1 ;IYPRL = 10000
 NZPRIN = -1 ;IZPRF = 1 ;IZPRL = 10000
 IPLTF = 1 ;IPLTL = 50 ;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(AXIS ,PROFIL, 1, 1, 1, 1, 1, 200, 1, 1)
 PLOT(AXIS ,W1 ,0. ,0. )
 PLOT(AXIS ,ODIM,0. ,0. )
 PLOT(AXIS ,WDIM,0. ,0. )
 PLOT(AXIS ,LOGO,0. ,0. )
 PLOT(AXIS ,REST,0. ,0. )
 PLOT(AXIS ,OIL ,0. ,0. )
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
 IDISPA = 10 ;IDISPB = 1 ;IDISPC = 200
STOP