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



  con den1 z 1 fil;0.1
  use patgeo
  use genuse
  rot ang 30
  pause
  ENDUSE
   -----------------------------------
    10
   * X         Y         Z
     1.000E-04 7.053E+01 5.000E-01
     1.100E+02 1.000E-04 5.000E-01
   ------------------------------------
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(Oblique impingement of box on water: G72)
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 1
 ************************************************************
  Group 2. Time dependence
 STEADY = F
    * Set overall time and no. of steps
 TFIRST =0. ;TLAST =1.
 FSTEP = 1 ;LSTEP = 100
   Method of pairs used for grid setting.
 TFRAC(2)=0.025
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 45
 XULAST =200.
 XFRAC(1)=8.94427E-03 ;XFRAC(2)=0.025298
 XFRAC(3)=0.046476 ;XFRAC(4)=0.071554
 XFRAC(5)=0.1 ;XFRAC(6)=0.128446
 XFRAC(7)=0.153524 ;XFRAC(8)=0.174702
 XFRAC(9)=0.191056 ;XFRAC(10)=0.2
 XFRAC(11)=0.208936 ;XFRAC(12)=0.219155
 XFRAC(13)=0.229922 ;XFRAC(14)=0.24106
 XFRAC(15)=0.252483 ;XFRAC(16)=0.264138
 XFRAC(17)=0.275991 ;XFRAC(18)=0.288014
 XFRAC(19)=0.300189 ;XFRAC(20)=0.3125
 XFRAC(21)=0.324811 ;XFRAC(22)=0.336986
 XFRAC(23)=0.349009 ;XFRAC(24)=0.360861
 XFRAC(25)=0.372517 ;XFRAC(26)=0.38394
 XFRAC(27)=0.395078 ;XFRAC(28)=0.405845
 XFRAC(29)=0.416064 ;XFRAC(30)=0.425
 XFRAC(31)=0.434898 ;XFRAC(32)=0.452995
 XFRAC(33)=0.47643 ;XFRAC(34)=0.504181
 XFRAC(35)=0.535659 ;XFRAC(36)=0.570465
 XFRAC(37)=0.608307 ;XFRAC(38)=0.648958
 XFRAC(39)=0.692236 ;XFRAC(40)=0.73799
 XFRAC(41)=0.786094 ;XFRAC(42)=0.836437
 XFRAC(43)=0.888923 ;XFRAC(44)=0.943469
 XFRAC(45)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 35
 YVLAST =140.
 YFRAC(1)=0.039183 ;YFRAC(2)=0.076661
 YFRAC(3)=0.112306 ;YFRAC(4)=0.145967
 YFRAC(5)=0.177449 ;YFRAC(6)=0.206498
 YFRAC(7)=0.23276 ;YFRAC(8)=0.255697
 YFRAC(9)=0.27434 ;YFRAC(10)=0.285714
 YFRAC(11)=0.299048 ;YFRAC(12)=0.312381
 YFRAC(13)=0.325714 ;YFRAC(14)=0.337143
 YFRAC(15)=0.348571 ;YFRAC(16)=0.357143
 YFRAC(17)=0.365714 ;YFRAC(18)=0.377143
 YFRAC(19)=0.382143 ;YFRAC(20)=0.390714
 YFRAC(21)=0.399286 ;YFRAC(22)=0.410753
 YFRAC(23)=0.431721 ;YFRAC(24)=0.458874
 YFRAC(25)=0.491027 ;YFRAC(26)=0.527498
 YFRAC(27)=0.567826 ;YFRAC(28)=0.61167
 YFRAC(29)=0.65877 ;YFRAC(30)=0.708913
 YFRAC(31)=0.761926 ;YFRAC(32)=0.81766
 YFRAC(33)=0.875989 ;YFRAC(34)=0.936801
 YFRAC(35)=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 = T
 NAME(1)=P1 ;NAME(3)=U1
 NAME(5)=V1 ;NAME(16)=C1
 NAME(148)=EPOR ;NAME(149)=NPOR
 NAME(150)=DEN1
    * 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,N)
 SOLUTN(V1,Y,Y,N,N,N,N)
 SOLUTN(C1,Y,N,N,N,N,Y)
 SOLUTN(EPOR,Y,N,N,N,N,N)
 SOLUTN(NPOR,Y,N,N,N,N,N)
 SOLUTN(DEN1,Y,N,N,N,N,Y)
 DEN1 = 150
 EPOR = 148 ;HPOR = 0 ;NPOR = 149 ;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(U1,Y,Y,Y,Y,Y,Y)
 TERMS(V1,Y,Y,Y,Y,Y,Y)
 DIFCUT =0.5 ;ZDIFAC =1.
 GALA = T ;ADDDIF = 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 =1. ;TMP1 =0. ;EL1 =0.
 TSURR =0. ;TEMP0 =0. ;PRESS0 =0.
 DVO1DT =0. ;DRH1DP =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 ENUL =1.0E-05 ;ENUT =0.
 PRNDTL(U1)=1. ;PRNDTL(V1)=1.
 PRT(U1)=1. ;PRT(V1)=1.
 CP1 =1. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(P1)=0. ;FIINIT(U1)=8.
 FIINIT(V1)=0. ;FIINIT(C1)=0.
 FIINIT(EPOR)=1. ;FIINIT(NPOR)=1.
 FIINIT(DEN1)=1.189
 
 PATCH(ACCLOW ,INIVAL, 11, 30, 10, 10, 1, 1, 1, 1)
 INIT(ACCLOW ,V1 ,0. ,0. )
 INIT(ACCLOW ,NPOR,0. ,0. )
 
 PATCH(SIDR1 ,INIVAL, 10, 10, 14, 17, 1, 1, 1, 1)
 INIT(SIDR1 ,U1 ,0. ,0. )
 INIT(SIDR1 ,EPOR,0. ,0. )
 
 PATCH(SIDR2 ,INIVAL, 10, 10, 20, 21, 1, 1, 1, 1)
 INIT(SIDR2 ,U1 ,0. ,0. )
 INIT(SIDR2 ,EPOR,0. ,0. )
 
 PATCH(SIDL1 ,INIVAL, 30, 30, 11, 13, 1, 1, 1, 1)
 INIT(SIDL1 ,U1 ,0. ,0. )
 INIT(SIDL1 ,EPOR,0. ,0. )
 
 PATCH(SIDL2 ,INIVAL, 30, 30, 16, 18, 1, 1, 1, 1)
 INIT(SIDL2 ,U1 ,0. ,0. )
 INIT(SIDL2 ,EPOR,0. ,0. )
 
 PATCH(ACCTOP ,INIVAL, 11, 30, 21, 21, 1, 1, 1, 1)
 INIT(ACCTOP ,V1 ,0. ,0. )
 INIT(ACCTOP ,NPOR,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(ACCLO-NW,NWALL , 11, 30, 10, 10, 1, 1, 1, 100)
 COVAL(ACCLO-NW,U1 ,1. ,0. )
 
 PATCH(ACCLO-SW,SWALL , 11, 30, 11, 11, 1, 1, 1, 100)
 COVAL(ACCLO-SW,U1 ,1. ,0. )
 
 PATCH(SIDR1-EW,EWALL , 10, 10, 14, 17, 1, 1, 1, 100)
 COVAL(SIDR1-EW,V1 ,1. ,0. )
 
 PATCH(SIDR1-WW,WWALL , 11, 11, 14, 17, 1, 1, 1, 100)
 COVAL(SIDR1-WW,V1 ,1. ,0. )
 
 PATCH(SIDR2-EW,EWALL , 10, 10, 20, 21, 1, 1, 1, 100)
 COVAL(SIDR2-EW,V1 ,1. ,0. )
 
 PATCH(SIDR2-WW,WWALL , 11, 11, 20, 21, 1, 1, 1, 100)
 COVAL(SIDR2-WW,V1 ,1. ,0. )
 
 PATCH(SIDL1-EW,EWALL , 30, 30, 11, 13, 1, 1, 1, 100)
 COVAL(SIDL1-EW,V1 ,1. ,0. )
 
 PATCH(SIDL1-WW,WWALL , 31, 31, 11, 13, 1, 1, 1, 100)
 COVAL(SIDL1-WW,V1 ,1. ,0. )
 
 PATCH(SIDL2-EW,EWALL , 30, 30, 16, 18, 1, 1, 1, 100)
 COVAL(SIDL2-EW,V1 ,1. ,0. )
 
 PATCH(SIDL2-WW,WWALL , 31, 31, 16, 18, 1, 1, 1, 100)
 COVAL(SIDL2-WW,V1 ,1. ,0. )
 
 PATCH(ACCTO-NW,NWALL , 11, 30, 21, 21, 1, 1, 1, 100)
 COVAL(ACCTO-NW,U1 ,1. ,0. )
 
 PATCH(ACCTO-SW,SWALL , 11, 30, 22, 22, 1, 1, 1, 100)
 COVAL(ACCTO-SW,U1 ,1. ,0. )
 
 PATCH(GXINLT ,WEST , 1, 1, 1, 35, 1, 1, 1, 100)
 COVAL(GXINLT ,P1 , FIXVAL ,0. )
 COVAL(GXINLT ,U1 , FIXVAL ,8. )
 COVAL(GXINLT ,V1 , FIXVAL ,0. )
 
 PATCH(EXIT ,EAST , 44, 45, 1, 35, 1, 1, 1, 100)
 COVAL(EXIT ,P1 ,In-Form:source - see Grp 19)
 COVAL(EXIT ,U1 , FIXVAL ,8. )
 
 PATCH(BUOY ,PHASEM, 1, 45, 1, 35, 1, 1, 1, 100)
 COVAL(BUOY ,U1 , FIXFLU , GRND1 )
 COVAL(BUOY ,V1 , FIXFLU , GRND1 )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 BUOYA =-5.1257 ; BUOYB =-8.3644 ; BUOYC =0.
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 5 ;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)=2
 LITER(V1)=2
 ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-03
 ENDIT(V1)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,1.)
 RELAX(U1,FALSDT,0.1)
 RELAX(V1,FALSDT,0.1)
 RELAX(C1,LINRLX,1.)
 RELAX(DEN1,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(V1)=1.0E+06 ;VARMIN(V1)=-1.0E+06
 VARMAX(C1)=1.0E+10 ;VARMIN(C1)=-1.0E+10
 VARMAX(EPOR)=1.0E+10 ;VARMIN(EPOR)=-1.0E+10
 VARMAX(NPOR)=1.0E+10 ;VARMIN(NPOR)=-1.0E+10
 VARMAX(DEN1)=1.0E+10 ;VARMIN(DEN1)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 PARSOL = F
 ISG62 = 1
 SPEDAT(SET,PROPERTY,RHO1,C,=1.189+C1*(998.2-1.189))
 SPEDAT(SET,INITIAL,DEN1,C,=998.2!IF((XG+1.63177*YG).LT.200.*0.58))
 SPEDAT(SET,INITIAL,C1,C,=1.0!IF((XG+1.63177*YG).LT.200.*0.58))
 SPEDAT(SET,SOURCE,R1!EXIT,C,=COVAL(1&8.36*1.189*YG))
 SPEDAT(SET,GXMONI,TRANSIENT,L,F)
 SPEDAT(SET,GENTRA,RESTART,C,NONE)
 SPEDAT(SET,GXMONI,PLOTALL,L,T)
 LG( 30) = T
 IG( 9) = 10
 IG( 10) = 1
 IG( 11) = 20
 IG( 12) = 1
 IG( 14) = 1
 IG( 15) = 500
 IG( 16) = 10
 IG( 17) = 1
 IG( 18) = 5
 IG( 19) = 2
 IG( 20) = 10
 IG( 30) = 1
 RG( 6) =0.58
 RG( 68) =0.5
 RG( 70) =0.0275
 RG( 71) = GRND1
 RG( 72) =4131.799805
 RG( 74) = GRND1
 RG( 75) = GRND1
 RG( 76) = GRND1
 RG( 77) =1.
 RG( 80) =1.0E-02
 RG( 82) =4131.799805
 RG( 83) =5.
 RG( 84) =1.
 RG( 86) =18.
 RG( 87) =28.9
 RG( 88) = GRND1
 RG( 89) =1007.
 RG( 90) = GRND1
 RG( 91) =273.149994
 RG( 92) =273.149994
 RG( 93) =1.
 RG( 94) =3.335E+05
 RG( 95) = GRND1
 RG( 96) =0.0263
 RG( 97) = GRND1
 CG(  6) ='GHIS'
 CG(  7) ='NONE'
 CG(  8) ='Q1'
 CG(  9) ='NONE'
 CG( 10) ='NONE'
 ************************************************************
  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(V1,Y,N,Y,Y,Y,Y)
 OUTPUT(C1,Y,N,Y,N,N,N)
 OUTPUT(EPOR,N,N,N,N,N,N)
 OUTPUT(NPOR,N,N,N,N,N,N)
 OUTPUT(DEN1,Y,Y,Y,Y,Y,Y)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 20 ;IYMON = 20 ;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
 NTPRIN = 20 ;ISTPRF = 1 ;ISTPRL = 10000
 NXPRIN = -1 ;IXPRF = 1 ;IXPRL = 10000
 NYPRIN = -1 ;IYPRF = 1 ;IYPRL = 10000
 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
   No PATCHes yet used for this Group
 ************************************************************
  Group 24. Dumps For Restarts
 SAVE = T ;NOWIPE = F
 NSAVE =CHAM
 IDISPA = 1 ;IDISPB = 0 ;IDISPC = 0
 CSG1    ='A'
STOP