TALK=T;RUN(1,1)
  DISPLAY
   Transient 2DXY Piezoelectric + Flow Water.
  ENDDIS
  PHOTON USE
  p;parphi
  1 1 0.01


  clear
  set prop off
  gr ou z 10
  VECT IZ 10 SH DASH 0

  gr ou z 40
  VECT IZ 40 SH DASH 0

  gr ou z 90
  VECT IZ 90 SH DASH 0

  msg Velocity vector
  pause

  clear
  gr ou z 10
  SET VEC COMP - - -
  SET VEC COMP DISX DISY -
  VECT IZ 10 SH DASH 0

  gr ou z 40
  VECT IZ 40 SH DASH 0

  gr ou z 90
  VECT IZ 90 SH DASH 0

  msg Displacement vector
  pause



  autoplot
  FILE
  parphi 5

  clear
  data 1
  DISY X 1 Y 16 Z 1 m
  colA 1
  scale
  plot 1
  msg DISY(Time) for X=0 and Bottom Membrane
  pause

  clear
  data 1
  VPO1 X 1 Y 15 Z 1 m
  colA 1
  scale
  plot 1
  msg (1-VPOR)(Time) for X=0 and Bottom Membrane
  pause

  clear
  data 1
  V1 X 1 Y 1 Z 1 m
  colA 1
  scale
  plot 1
  msg V1(Time) for X=0 and Bottom Bore
  pause


  ENDUSE
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(Transient 2DXY Piezoelectric; S903      )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 903
 ************************************************************
  Group 2. Time dependence
 STEADY = F
    * Set overall time and no. of steps
 TFIRST =0. ;TLAST =4.999995E-03
 FSTEP = 1 ;LSTEP = 100
 TFRAC(1)=1.0E-02 ;TFRAC(2)=0.02
 TFRAC(3)=0.03 ;TFRAC(4)=0.04
 TFRAC(5)=0.05 ;TFRAC(6)=0.06
 TFRAC(7)=0.07 ;TFRAC(8)=0.08
 TFRAC(9)=0.09 ;TFRAC(10)=0.1
 TFRAC(11)=0.11 ;TFRAC(12)=0.12
 TFRAC(13)=0.13 ;TFRAC(14)=0.14
 TFRAC(15)=0.15 ;TFRAC(16)=0.16
 TFRAC(17)=0.17 ;TFRAC(18)=0.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89)=0.89 ;TFRAC(90)=0.9
 TFRAC(91)=0.91 ;TFRAC(92)=0.92
 TFRAC(93)=0.93 ;TFRAC(94)=0.94
 TFRAC(95)=0.95 ;TFRAC(96)=0.96
 TFRAC(97)=0.97 ;TFRAC(98)=0.98
 TFRAC(99)=0.99 ;TFRAC(100)=1.
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 16
 XULAST =3.0E-05
 XFRAC(1)=0.05 ;XFRAC(2)=0.1
 XFRAC(3)=0.15 ;XFRAC(4)=0.2
 XFRAC(5)=0.25 ;XFRAC(6)=0.318182
 XFRAC(7)=0.386364 ;XFRAC(8)=0.454545
 XFRAC(9)=0.522727 ;XFRAC(10)=0.590909
 XFRAC(11)=0.659091 ;XFRAC(12)=0.727273
 XFRAC(13)=0.795455 ;XFRAC(14)=0.863636
 XFRAC(15)=0.931818 ;XFRAC(16)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 23
 YVLAST =8.5E-05
 YFRAC(1)=0.117647 ;YFRAC(2)=0.235294
 YFRAC(3)=0.352941 ;YFRAC(4)=0.470588
 YFRAC(5)=0.588235 ;YFRAC(6)=0.623529
 YFRAC(7)=0.658823 ;YFRAC(8)=0.694118
 YFRAC(9)=0.729412 ;YFRAC(10)=0.764706
 YFRAC(11)=0.8 ;YFRAC(12)=0.835294
 YFRAC(13)=0.870588 ;YFRAC(14)=0.905882
 YFRAC(15)=0.941176 ;YFRAC(16)=0.942647
 YFRAC(17)=0.944118 ;YFRAC(18)=0.953431
 YFRAC(19)=0.962745 ;YFRAC(20)=0.972059
 YFRAC(21)=0.981373 ;YFRAC(22)=0.990686
 YFRAC(23)=1.
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = F
 NZ = 1
 ZWLAST =1.0E-03
 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(134)=VPO1
 NAME(135)=NPOR ;NAME(136)=EPOR
 NAME(138)=STRX ;NAME(139)=EPSZ
 NAME(140)=EPSX ;NAME(141)=EPSY
 NAME(142)=DRH1 ;NAME(143)=DVO1
 NAME(144)=ENUL ;NAME(145)=DEN1
 NAME(146)=PRPS ;NAME(147)=VDSX
 NAME(148)=VDSY ;NAME(149)=DISX
 NAME(150)=DISY
    * 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(VPO1,Y,N,N,N,N,Y)
 SOLUTN(NPOR,Y,N,N,N,N,Y)
 SOLUTN(EPOR,Y,N,N,N,N,Y)
 SOLUTN(STRX,Y,N,N,N,N,Y)
 SOLUTN(EPSZ,Y,N,N,N,N,Y)
 SOLUTN(EPSX,Y,N,N,N,N,Y)
 SOLUTN(EPSY,Y,N,N,N,N,Y)
 SOLUTN(DRH1,Y,N,N,N,N,Y)
 SOLUTN(DVO1,Y,N,N,N,N,Y)
 SOLUTN(ENUL,Y,N,N,N,N,Y)
 SOLUTN(DEN1,Y,N,N,N,N,Y)
 SOLUTN(PRPS,Y,N,N,N,N,Y)
 SOLUTN(VDSX,Y,N,N,N,N,Y)
 SOLUTN(VDSY,Y,N,N,N,N,Y)
 SOLUTN(DISX,Y,Y,N,N,N,Y)
 SOLUTN(DISY,Y,Y,N,N,N,Y)
 DEN1 = 145
 VISL = 144
 EPOR = 136 ;HPOR = 0 ;NPOR = 135 ;VPOR = 0
 PRPS = 146
 ************************************************************
  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)
 TERMS(DISX,N,N,Y,Y,Y,N)
 TERMS(DISY,N,N,Y,Y,Y,N)
 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.
 PRNDTL(DISX)=1. ;PRNDTL(DISY)=1.
 PRT(U1)=1. ;PRT(V1)=1.
 PRT(DISX)=1. ;PRT(DISY)=1.
 CP1 =1. ;CP2 =1.
   *  List of user-defined materials to be read by EARTH
    MATFLG=T;IMAT=4   
   *  Name
   *Ind. Dens.  Viscos.  Spec.heat  Conduct.  Expans.  Compr.
   *  
    67 998.23 1.006E-6 4181.8 0.597 1.18E-4
   *  
    101 7500.0 0.29 473.0 43.0 1.0E-5 1.65E-11
   *  
    120 8900.0 0.35 473.0 43.0 1.0E-5 13.3E-11
   *  
    160 1000.0 0.30 473.0 43.0 1.0E-5 0.91E-11
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(P1)=0. ;FIINIT(U1)=0.
 FIINIT(V1)=0. ;FIINIT(VPO1)=1.0E-10
 FIINIT(NPOR)=1. ;FIINIT(EPOR)=1.
 FIINIT(STRX)=1.0E-10 ;FIINIT(EPSZ)=1.0E-10
 FIINIT(EPSX)=1.0E-10 ;FIINIT(EPSY)=1.0E-10
 FIINIT(DRH1)=1.0E-10 ;FIINIT(DVO1)=1.0E-10
 FIINIT(ENUL)=1.0E-10 ;FIINIT(DEN1)=1.0E-10
 FIINIT(PRPS)=67. ;FIINIT(VDSX)=0.
 FIINIT(VDSY)=0. ;FIINIT(DISX)=0.
 FIINIT(DISY)=0.
 
 PATCH(PZT1 ,INIVAL, 1, 16, 18, 23, 1, 1, 1, 1)
 INIT(PZT1 ,PRPS, FIXVAL ,101. )
 
 PATCH(CU_M ,INIVAL, 1, 16, 16, 17, 1, 1, 1, 1)
 INIT(CU_M ,PRPS, FIXVAL ,160. )
 
 PATCH(PO1 ,INIVAL, 6, 16, 1, 5, 1, 1, 1, 1)
 INIT(PO1 ,PRPS, FIXVAL ,120. )
 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(LEFTS ,WWALL , 1, 1, 18, 23, 1, 1, 1, 100)
 COVAL(LEFTS ,DISX,1. ,0. )
 
 PATCH(LEFTF ,WWALL , 1, 1, 1, 17, 1, 1, 1, 100)
 COVAL(LEFTF ,U1 ,1. ,0. )
 
 PATCH(RIGHTS1 ,CELL , 16, 16, 18, 18, 1, 1, 1, 100)
 COVAL(RIGHTS1 ,DISX, FIXVAL ,0. )
 COVAL(RIGHTS1 ,DISY, FIXVAL ,0. )
 
 PATCH(RIGHTS2 ,EWALL , 16, 16, 1, 5, 1, 1, 1, 100)
 COVAL(RIGHTS2 ,DISX,1. ,0. )
 COVAL(RIGHTS2 ,DISY,1. ,0. )
 
 PATCH(RIGHTF ,EWALL , 16, 16, 6, 17, 1, 1, 1, 100)
 COVAL(RIGHTF ,U1 ,1. ,0. )
 COVAL(RIGHTF ,V1 ,1. ,0. )
 
 PATCH(FORCER ,EAST , 16, 16, 17, 23, 1, 1, 1, 100)
 COVAL(FORCER ,DISX,In-Form:source - see Grp 19)
 
 PATCH(FSI#1 ,SOUTH , 1, 16, 16, 16, 1, 1, 1, 100)
 
 PATCH(BORE ,SOUTH , 1, 5, 1, 1, 1, 1, 1, 100)
 COVAL(BORE ,P1 ,1000. ,0. )
 COVAL(BORE ,U1 ,0. ,0. )
 COVAL(BORE ,V1 ,0. ,0. )
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 800 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 SELREF = T
 RESFAC =1.0E-04
 ************************************************************
  Group 16. Terminate Iterations
 LITER(P1)=20 ;LITER(U1)=10
 LITER(V1)=10 ;LITER(DISX)=20
 LITER(DISY)=20
 ENDIT(P1)=1.0E-03 ;ENDIT(U1)=1.0E-03
 ENDIT(V1)=1.0E-03 ;ENDIT(DISX)=1.0E-03
 ENDIT(DISY)=1.0E-03
 ************************************************************
  Group 17. Relaxation
 RELAX(P1,LINRLX,1.)
 RELAX(U1,FALSDT,1.)
 RELAX(V1,FALSDT,1.)
 RELAX(VPO1,LINRLX,1.)
 RELAX(STRX,LINRLX,1.)
 RELAX(EPSZ,LINRLX,1.)
 RELAX(EPSX,LINRLX,1.)
 RELAX(EPSY,LINRLX,1.)
 RELAX(DRH1,LINRLX,1.)
 RELAX(DVO1,LINRLX,1.)
 RELAX(ENUL,LINRLX,1.)
 RELAX(DEN1,LINRLX,1.)
 RELAX(PRPS,LINRLX,1.)
 RELAX(VDSX,LINRLX,1.)
 RELAX(VDSY,LINRLX,1.)
 RELAX(DISX,LINRLX,1.)
 RELAX(DISY,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(VPO1)=1.0E+10 ;VARMIN(VPO1)=-1.0E+10
 VARMAX(NPOR)=1.0E+10 ;VARMIN(NPOR)=-1.0E+10
 VARMAX(EPOR)=1.0E+10 ;VARMIN(EPOR)=-1.0E+10
 VARMAX(STRX)=1.0E+10 ;VARMIN(STRX)=-1.0E+10
 VARMAX(EPSZ)=1.0E+10 ;VARMIN(EPSZ)=-1.0E+10
 VARMAX(EPSX)=1.0E+10 ;VARMIN(EPSX)=-1.0E+10
 VARMAX(EPSY)=1.0E+10 ;VARMIN(EPSY)=-1.0E+10
 VARMAX(DRH1)=1.0E+10 ;VARMIN(DRH1)=-1.0E+10
 VARMAX(DVO1)=1.0E+10 ;VARMIN(DVO1)=-1.0E+10
 VARMAX(ENUL)=1.0E+10 ;VARMIN(ENUL)=-1.0E+10
 VARMAX(DEN1)=1.0E+10 ;VARMIN(DEN1)=-1.0E+10
 VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10
 VARMAX(VDSX)=1.0E+10 ;VARMIN(VDSX)=-1.0E+10
 VARMAX(VDSY)=1.0E+10 ;VARMIN(VDSY)=-1.0E+10
 VARMAX(DISX)=1.0E+10 ;VARMIN(DISX)=-1.0E+10
 VARMAX(DISY)=1.0E+10 ;VARMIN(DISY)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 STRA = T
 PARSOL = F
 ISG21 = 800
 ISG52 = 3
 ISG62 = 1
 CSG10   ='Q1'
 SPEDAT(SET,SOURCE,DISX!FORCER,C,=COVAL(2.0E-10&-9.521053E+06*SIN($)
 SPEDAT(SET,SOURCE,DISX!FORCER,C,314.*TIM)))
 SPEDAT(SET,GXMONI,TRANSIENT,L,F)
 SPEDAT(SET,STORED,VPO1,C,=(1.0-VPOR)!ZSLFIN)
 SPEDAT(SET,MATERIAL,67,L,T)
 SPEDAT(SET,MATERIAL,101,L,T)
 SPEDAT(SET,MATERIAL,160,L,T)
 SPEDAT(SET,MATERIAL,120,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(U1,Y,N,Y,Y,Y,Y)
 OUTPUT(V1,Y,N,Y,Y,Y,Y)
 OUTPUT(VPO1,Y,N,Y,N,N,N)
 OUTPUT(NPOR,Y,N,Y,N,N,N)
 OUTPUT(EPOR,Y,N,Y,N,N,N)
 OUTPUT(STRX,Y,N,Y,N,N,N)
 OUTPUT(EPSZ,Y,N,Y,N,N,N)
 OUTPUT(EPSX,Y,N,Y,N,N,N)
 OUTPUT(EPSY,Y,N,Y,N,N,N)
 OUTPUT(DRH1,Y,N,Y,N,N,N)
 OUTPUT(DVO1,Y,N,Y,N,N,N)
 OUTPUT(ENUL,Y,N,Y,N,N,N)
 OUTPUT(DEN1,Y,N,Y,N,N,N)
 OUTPUT(PRPS,Y,N,Y,N,N,N)
 OUTPUT(VDSX,Y,N,Y,N,N,N)
 OUTPUT(VDSY,Y,N,Y,N,N,N)
 OUTPUT(DISX,Y,N,Y,Y,Y,Y)
 OUTPUT(DISY,Y,N,Y,Y,Y,Y)
 ************************************************************
  Group 22. Monitor Print-Out
 IXMON = 1 ;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
 NTPRIN = 100000 ;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
STOP