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 2
  VECT IZ 2 SH DASH 0

  gr ou z 4
  VECT IZ 4 SH DASH 0

  gr ou z 9
  VECT IZ 9 SH DASH 0

  msg Velocity vector
  pause

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

  gr ou z 4
  VECT IZ 4 SH DASH 0

  gr ou z 9
  VECT IZ 9 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 = 0
 ************************************************************
  Group 2. Time dependence
 STEADY = F
    * Set overall time and no. of steps
 TFIRST =0. ;TLAST =4.999995E-03
 FSTEP = 1 ;LSTEP = 10
 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 ;TFRAC(8)=0.8
 TFRAC(9)=0.9 ;TFRAC(10)=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 = 21
 YVLAST =8.475E-05
 YFRAC(1)=0.117994 ;YFRAC(2)=0.235988
 YFRAC(3)=0.353982 ;YFRAC(4)=0.471976
 YFRAC(5)=0.58997 ;YFRAC(6)=0.625369
 YFRAC(7)=0.660767 ;YFRAC(8)=0.696165
 YFRAC(9)=0.731563 ;YFRAC(10)=0.766962
 YFRAC(11)=0.80236 ;YFRAC(12)=0.837758
 YFRAC(13)=0.873156 ;YFRAC(14)=0.908555
 YFRAC(15)=0.943953 ;YFRAC(16)=0.953294
 YFRAC(17)=0.962635 ;YFRAC(18)=0.971976
 YFRAC(19)=0.981318 ;YFRAC(20)=0.990659
 YFRAC(21)=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 =998.22998 ;TMP1 =0. ;EL1 =0.
 TSURR =0. ;TEMP0 =0. ;PRESS0 =0.
 DVO1DT =1.18E-04 ;DRH1DP =0.
 EMISS =0. ;SCATT =0.
 RADIA =0. ;RADIB =0.
 ENUL =1.006E-06 ;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 =4181.799805 ;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.001E-10
 FIINIT(NPOR)=1. ;FIINIT(EPOR)=1.
 FIINIT(STRX)=1.001E-10 ;FIINIT(EPSZ)=1.001E-10
 FIINIT(EPSX)=1.001E-10 ;FIINIT(EPSY)=1.001E-10
 FIINIT(DRH1)=1.001E-10 ;FIINIT(DVO1)=1.001E-10
 FIINIT(ENUL)=1.001E-10 ;FIINIT(DEN1)=1.001E-10
 FIINIT(PRPS)=-1. ;FIINIT(VDSX)=0.
 FIINIT(VDSY)=0. ;FIINIT(DISX)=0.
 FIINIT(DISY)=0.
 
 PATCH(^OB1 ,INIVAL, 1, 0, 0, 0, 0, 0, 1, 1)
 INIT(^OB1 ,PRPS,0. ,101. )
 
 PATCH(^OB2 ,INIVAL, 2, 0, 0, 0, 0, 0, 1, 1)
 INIT(^OB2 ,PRPS,0. ,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, 16, 21, 1, 1, 1, 10)
 COVAL(LEFTS ,DISX,1. ,0. )
 
 PATCH(^RIGHTS1,CELL , 5, 1, 0, 0, 0, 0, 1, 10)
 COVAL(^RIGHTS1,DISX, FIXVAL ,0. )
 COVAL(^RIGHTS1,DISY, FIXVAL ,0. )
 
 PATCH(^RIGHTS2,EWALL , 6, 0, 0, 0, 0, 0, 1, 10)
 COVAL(^RIGHTS2,DISX,1. ,0. )
 COVAL(^RIGHTS2,DISY,1. ,0. )
 
 PATCH(FORCER ,EAST , 16, 16, 16, 21, 1, 1, 1, 10)
 COVAL(FORCER ,DISX,In-Form:source - see Grp 19)
 
 PATCH(OB4 ,WWALL , 1, 1, 1, 15, 1, 1, 1, 10)
 COVAL(OB4 ,V1 ,1. ,0. )
 
 PATCH(^OB7 ,CELL , 7, 5, 0, 0, 0, 0, 1, 10)
 COVAL(^OB7 ,V1 ,1. ,0. )
 
 PATCH(^OBA ,SOUTH , 10, 0, 0, 0, 0, 0, 1, 10)
 COVAL(^OBA ,P1 ,1000. ,0. )
 COVAL(^OBA ,U1 ,0. ,0. )
 COVAL(^OBA ,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-03
 ************************************************************
  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,DOMAIN,PHASE_1_MAT,I,67)
 SPEDAT(SET,DOMAIN,PROPS_FILE_1,C,Q1)
 SPEDAT(SET,STORED,VPO1,C,=(1.0-VPOR)!ZSLFIN)
 SPEDAT(SET,SOURCE,DISX!FORCER,C,=COVAL(2.0E-10&1.0/AEAST*(-9.5210$)
 SPEDAT(SET,SOURCE,DISX!FORCER,C,53E+06*SIN(314.*TIM))))
 SPEDAT(SET,GXMONI,PLOTALL,L,T)
 SPEDAT(SET,OBJNAM,!LEFTS,C,LEFTS)
 SPEDAT(SET,OBJTYP,!LEFTS,C,USER_DEFINED)
 SPEDAT(SET,OBJNAM,^RIGHTS1,C,RIGHTS1)
 SPEDAT(SET,OBJTYP,^RIGHTS1,C,USER_DEFINED)
 SPEDAT(SET,OBJNAM,^RIGHTS2,C,RIGHTS2)
 SPEDAT(SET,OBJTYP,^RIGHTS2,C,USER_DEFINED)
 SPEDAT(SET,OBJNAM,!FORCER,C,FORCER)
 SPEDAT(SET,OBJTYP,!FORCER,C,USER_DEFINED)
 SPEDAT(SET,OBJNAM,^OB1,C,PZT1)
 SPEDAT(SET,OBJTYP,^OB1,C,BLOCKAGE)
 SPEDAT(SET,PZT1,MATERIAL,R,101.)
 SPEDAT(SET,OBJNAM,^OB2,C,PO1)
 SPEDAT(SET,OBJTYP,^OB2,C,BLOCKAGE)
 SPEDAT(SET,PO1,MATERIAL,R,120.)
 SPEDAT(SET,OBJNAM,!OB4,C,LEFTF)
 SPEDAT(SET,OBJTYP,!OB4,C,PLATE)
 SPEDAT(SET,OBJNAM,^OB7,C,RIGHTF)
 SPEDAT(SET,OBJTYP,^OB7,C,PLATE)
 SPEDAT(SET,OBJNAM,^OBA,C,BORE)
 SPEDAT(SET,OBJTYP,^OBA,C,OUTLET)
 SPEDAT(SET,ARATIO,^OBA,R,1.)
 SPEDAT(SET,FACETDAT,NUMOBJ,I,10)
 SPEDAT(SET,MATERIAL,101,L,T)
 SPEDAT(SET,MATERIAL,120,L,T)
 ************************************************************
  Group 20. Preliminary Printout
 ************************************************************
  Group 21. Print-out of Variables
 INIFLD = T ;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 = 10000
 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