TALK=T;RUN(1,1)
  DISPLAY
  This input file illustrates the use of the In-Form "sphere"
  function to simulate the effect on the motion of the air of
  a football following a prescribed parabolic trajectory.

  The In-Form statements are:

  *** The space within which the ball may move
  PATCH(PATCH1,CELL,1,NX,1,NY,1,NZ,1,LSTEP)

  Note: xce,yce and zce are the x,z and z coordinates;
        ob is the object name
        They are character variables which are evaluated in the
        In-Form statements because  they are enclosed within colons.

  char(xce,yce,zce,radius,usour,vsour,gravt)
  char(vel,times);
  gravt=9.81
  vel=14.14;times=tim
  xce=0.5+:times:*:vel:/1.414
  yce=0.5+:times:*:vel:/1.414-0.5*:gravt:*:times:^2
  zce=.05; radius=.5

   ** Definition of the In-Form Object

  (INFOB at PATCH1 is SPHERE(:xce:,:yce:,:zce:,:radius:...
  ) with INFOB_1)

  *** momentum sources which make the fluid move with the ball
  usour=:vel:/1.414
  vsour=:vel:/1.414-:gravt:*:times:
  (SOURCE of U1 at PATCH1 is :usour: with INFOB_1!FIXV)
  (SOURCE of V1 at PATCH1 is :vsour: with INFOB_1!FIXV)

  *** declaration of a marker to enable the ball to be seen
  STORE(MARK);FIINIT(MARK)=0
  (STORED of MARK is 0)
  (STORED of MARK at PATCH1 is 1 with INFOB_1)

  The Q1 contains PHOTON USE commands
  ENDDIS
  PHOTON USE
  p
  p1;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel1
  upause 2
  p
  p2;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel2
  upause 2
  p
  p3;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel3
  upause 2
  p
  p4;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel4
  upause 2
  p
  p5;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel5
  upause 2
  p
  p6;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel6
  upause 2
  p
  p7;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel7
  upause 2
  p
  p8;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel8
  upause 2
  p
  p9;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel9
  upause 2
  p
  p10;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel10
  upause 2
  p
  p11;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel11
  upause 2
  p
  p12;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel12
  upause 2
  p
  p13;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel13
  upause 2
  p
  p14;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel14
  upause 2
  p
  p15;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel15
  upause 2
  p
  p16;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel16
  upause 2
  p
  p17;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel17
  upause 2
  p
  p18;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel18
  upause 2
  p
  p19;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel19
  upause 2
  p
  p20;

  gr ou z 1
  ve z 1 sh
  surf mark z 0.9
  *dump vel20
  ENDUSE
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(2D Football Trajectory.                 )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 766
 ************************************************************
  Group 2. Time dependence
 STEADY = F
    * Set overall time and no. of steps
 TFIRST =0. ;TLAST =2.
 FSTEP = 1 ;LSTEP = 20
 TFRAC(1)=0.05 ;TFRAC(2)=0.1
 TFRAC(3)=0.15 ;TFRAC(4)=0.2
 TFRAC(5)=0.25 ;TFRAC(6)=0.3
 TFRAC(7)=0.35 ;TFRAC(8)=0.4
 TFRAC(9)=0.45 ;TFRAC(10)=0.5
 TFRAC(11)=0.55 ;TFRAC(12)=0.6
 TFRAC(13)=0.65 ;TFRAC(14)=0.7
 TFRAC(15)=0.75 ;TFRAC(16)=0.8
 TFRAC(17)=0.85 ;TFRAC(18)=0.9
 TFRAC(19)=0.95 ;TFRAC(20)=1.
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 110
 XULAST =22.
 XFRAC(1)=9.090909E-03 ;XFRAC(2)=0.018182
 XFRAC(3)=0.027273 ;XFRAC(4)=0.036364
 XFRAC(5)=0.045455 ;XFRAC(6)=0.054545
 XFRAC(7)=0.063636 ;XFRAC(8)=0.072727
 XFRAC(9)=0.081818 ;XFRAC(10)=0.090909
 XFRAC(11)=0.1 ;XFRAC(12)=0.109091
 XFRAC(13)=0.118182 ;XFRAC(14)=0.127273
 XFRAC(15)=0.136364 ;XFRAC(16)=0.145455
 XFRAC(17)=0.154545 ;XFRAC(18)=0.163636
 XFRAC(19)=0.172727 ;XFRAC(20)=0.181818
 XFRAC(21)=0.190909 ;XFRAC(22)=0.2
 XFRAC(23)=0.209091 ;XFRAC(24)=0.218182
 XFRAC(25)=0.227273 ;XFRAC(26)=0.236364
 XFRAC(27)=0.245455 ;XFRAC(28)=0.254545
 XFRAC(29)=0.263636 ;XFRAC(30)=0.272727
 XFRAC(31)=0.281818 ;XFRAC(32)=0.290909
 XFRAC(33)=0.3 ;XFRAC(34)=0.309091
 XFRAC(35)=0.318182 ;XFRAC(36)=0.327273
 XFRAC(37)=0.336364 ;XFRAC(38)=0.345455
 XFRAC(39)=0.354545 ;XFRAC(40)=0.363636
 XFRAC(41)=0.372727 ;XFRAC(42)=0.381818
 XFRAC(43)=0.390909 ;XFRAC(44)=0.4
 XFRAC(45)=0.409091 ;XFRAC(46)=0.418182
 XFRAC(47)=0.427273 ;XFRAC(48)=0.436364
 XFRAC(49)=0.445455 ;XFRAC(50)=0.454545
 XFRAC(51)=0.463636 ;XFRAC(52)=0.472727
 XFRAC(53)=0.481818 ;XFRAC(54)=0.490909
 XFRAC(55)=0.5 ;XFRAC(56)=0.509091
 XFRAC(57)=0.518182 ;XFRAC(58)=0.527273
 XFRAC(59)=0.536364 ;XFRAC(60)=0.545455
 XFRAC(61)=0.554545 ;XFRAC(62)=0.563636
 XFRAC(63)=0.572727 ;XFRAC(64)=0.581818
 XFRAC(65)=0.590909 ;XFRAC(66)=0.6
 XFRAC(67)=0.609091 ;XFRAC(68)=0.618182
 XFRAC(69)=0.627273 ;XFRAC(70)=0.636364
 XFRAC(71)=0.645455 ;XFRAC(72)=0.654545
 XFRAC(73)=0.663636 ;XFRAC(74)=0.672727
 XFRAC(75)=0.681818 ;XFRAC(76)=0.690909
 XFRAC(77)=0.7 ;XFRAC(78)=0.709091
 XFRAC(79)=0.718182 ;XFRAC(80)=0.727273
 XFRAC(81)=0.736364 ;XFRAC(82)=0.745455
 XFRAC(83)=0.754546 ;XFRAC(84)=0.763636
 XFRAC(85)=0.772727 ;XFRAC(86)=0.781818
 XFRAC(87)=0.790909 ;XFRAC(88)=0.8
 XFRAC(89)=0.809091 ;XFRAC(90)=0.818182
 XFRAC(91)=0.827273 ;XFRAC(92)=0.836364
 XFRAC(93)=0.845455 ;XFRAC(94)=0.854546
 XFRAC(95)=0.863636 ;XFRAC(96)=0.872727
 XFRAC(97)=0.881818 ;XFRAC(98)=0.890909
 XFRAC(99)=0.9 ;XFRAC(100)=0.909091
 XFRAC(101)=0.918182 ;XFRAC(102)=0.927273
 XFRAC(103)=0.936364 ;XFRAC(104)=0.945455
 XFRAC(105)=0.954545 ;XFRAC(106)=0.963636
 XFRAC(107)=0.972727 ;XFRAC(108)=0.981818
 XFRAC(109)=0.990909 ;XFRAC(110)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 35
 YVLAST =7.
 YFRAC(1)=0.028571 ;YFRAC(2)=0.057143
 YFRAC(3)=0.085714 ;YFRAC(4)=0.114286
 YFRAC(5)=0.142857 ;YFRAC(6)=0.171429
 YFRAC(7)=0.2 ;YFRAC(8)=0.228571
 YFRAC(9)=0.257143 ;YFRAC(10)=0.285714
 YFRAC(11)=0.314286 ;YFRAC(12)=0.342857
 YFRAC(13)=0.371429 ;YFRAC(14)=0.4
 YFRAC(15)=0.428571 ;YFRAC(16)=0.457143
 YFRAC(17)=0.485714 ;YFRAC(18)=0.514286
 YFRAC(19)=0.542857 ;YFRAC(20)=0.571429
 YFRAC(21)=0.6 ;YFRAC(22)=0.628571
 YFRAC(23)=0.657143 ;YFRAC(24)=0.685714
 YFRAC(25)=0.714286 ;YFRAC(26)=0.742857
 YFRAC(27)=0.771429 ;YFRAC(28)=0.8
 YFRAC(29)=0.828571 ;YFRAC(30)=0.857143
 YFRAC(31)=0.885714 ;YFRAC(32)=0.914286
 YFRAC(33)=0.942857 ;YFRAC(34)=0.971429
 YFRAC(35)=1.
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 1
 ZWLAST =0.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(150)=MARK
    * 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(U1,Y,Y,N,N,N,Y)
 SOLUTN(V1,Y,Y,N,N,N,Y)
 SOLUTN(MARK,Y,N,N,N,N,Y)
 ************************************************************
  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 = F ;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)=1.0E-10 ;FIINIT(U1)=1.0E-10
 FIINIT(V1)=1.0E-10 ;FIINIT(MARK)=0.
   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(WALLS ,SWALL , 1, 110, 1, 1, 1, 1, 1, 20)
 COVAL(WALLS ,U1 ,1. ,0. )
 
 PATCH(RELIEF ,CELL , 1, 1, 1, 1, 1, 1, 1, 20)
 COVAL(RELIEF ,P1 ,1. ,0. )
 
 PATCH(PATCH1 ,CELL , 1, 110, 1, 35, 1, 1, 1, 20)
 COVAL(PATCH1 ,U1 ,In-Form:source - see Grp 19)
 COVAL(PATCH1 ,V1 ,In-Form:source - see Grp 19)
 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
 SELREF = T
 RESFAC =1.0E-02
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;LITER(U1)=10
 LITER(V1)=10
 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,1.)
 RELAX(V1,FALSDT,1.)
 RELAX(MARK,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(MARK)=1.0E+10 ;VARMIN(MARK)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 PARSOL = F
 ISG62 = 1
 SPEDAT(SET,INFOB,*!PATCH1,C,=SPHERE(0.5+TIM*14.14/1.414&0.5+TIM*1$)
 SPEDAT(SET,INFOB,*!PATCH1,C,4.14/1.414-0.5*9.81*TIM^2&.05&.5&0&0&$)
 SPEDAT(SET,INFOB,*!PATCH1,C,0)!INFOB_1)
 SPEDAT(SET,SOURCE,U1!PATCH1,C,=14.14/1.414!INFOB_1!FIXV)
 SPEDAT(SET,SOURCE,V1!PATCH1,C,=14.14/1.414-9.81*TIM!INFOB_1!FIXV)
 SPEDAT(SET,STORED,MARK,C,=0!ZSLFIN)
 SPEDAT(SET,STORED,MARK!PATCH1,C,=1!INFOB_1!ZSLFIN)
 ************************************************************
  Group 20. Preliminary Printout
 DISTIL = T ;NULLPR = F
 NDST = 0
 DSTTOL =1.0E-02
 EX(P1)=11.02 ;EX(U1)=2.136
 EX(V1)=1.302 ;EX(MARK)=5.455E-03
 ************************************************************
  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(MARK,Y,N,Y,N,N,N)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 28 ;IYMON = 9 ;IZMON = 1
 NPRMON = 100 ;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 = 10000
 NYPRIN = 1 ;IYPRF = 1 ;IYPRL = 10000
 IPLTF = 1 ;IPLTL = -1 ;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
   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    ='P'
STOP