TALK=T;RUN(1,1)
  PHOTON USE
  x;  parxyz

  rot y ang 180
  gr x 1
  msg        EXPANDING - CONTRACTING GRID, Y-Z
  msg Press E to end
  enduse
  DISPLAY
   In this example, PLANT is used for expanding and/or contracting
   the Y-extent of the grid.

   It is useful in parabolic calculations; but it may be used more
   generally.

   The PLANT statements headed by SCXS??  would perform a similar
   function for the X-direction domain width, XULAST, provided the
   pointer AZXU is set to GRND.

    PLANT information :
     * Data input groups used:  4
     * Ground groups planted :  4
     * Headings used  : SCYS??
     * Functions used : None
     * Commands used  : REGION
  ENDDIS
        PLANTBEGIN
       YRAT=1.+:POWER:*DZ/(ZWADD+ZW)
      REGION(1,1,1,1) /IZ.LE.20
          YRAT=1.+:POWER:*(-1.)*DZ/(ZWADD+ZW)
         REGION(1,1,1,1) /IZ.GT.20.AND.IZ.LE.40
       YRAT=1.+:POWER:*1.*DZ/(ZWADD+ZW)
      REGION(1,1,1,1) /IZ.GT.40
       PLANTEND
 ************************************************************
  Group 1. Run Title and Number
 ************************************************************
 ************************************************************
 
 TEXT(In-Form equivalent of PLANT case Z622   )
 
 ************************************************************
 ************************************************************
 
 IRUNN = 1 ;LIBREF = 777
 ************************************************************
  Group 2. Time dependence
 STEADY = T
 ************************************************************
  Group 3. X-Direction Grid Spacing
 CARTES = T
 NX = 1
 XULAST =1.
 XFRAC(1)=1.
 ************************************************************
  Group 4. Y-Direction Grid Spacing
 NY = 20
 YVLAST =0.1
 AZYV = GRND ;AZRI =0. ;AZAL =0.
   Method of pairs used for grid setting.
 YFRAC(1)=-20. ;YFRAC(2)=0.05
 ************************************************************
  Group 5. Z-Direction Grid Spacing
 PARAB = T
 NZ = 100
 ZWADD =0.1
 ZWLAST =1.
 AZDZ = GRND2
 ZFRAC(1)=1.
 ************************************************************
  Group 6. Body-Fitted Coordinates
 ************************************************************
  Group 7. Variables: STOREd,SOLVEd,NAMEd
 ONEPHS = T
 NAME(5)=V1 ;NAME(7)=W1
 NAME(148)=EPOR ;NAME(149)=NPOR
 NAME(150)=PRPS
    * Y in SOLUTN argument list denotes:
    * 1-stored 2-solved 3-whole-field
    * 4-point-by-point 5-explicit 6-harmonic averaging 
 SOLUTN(V1,Y,N,N,N,N,Y)
 SOLUTN(W1,Y,N,N,N,N,Y)
 SOLUTN(EPOR,Y,N,N,N,N,Y)
 SOLUTN(NPOR,Y,N,N,N,N,Y)
 SOLUTN(PRPS,Y,N,N,N,N,Y)
 EPOR = 148 ;HPOR = 0 ;NPOR = 149 ;VPOR = 0
 PRPS = 150
 ************************************************************
  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         
 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.
 CP1 =1. ;CP2 =1.
 ************************************************************
  Group 10.Inter-Phase Transfer Processes
 ************************************************************
  Group 11.Initial field variables (PHIs)
 FIINIT(V1)=1.0E-10 ;FIINIT(W1)=1.0E-10
 FIINIT(EPOR)=1. ;FIINIT(NPOR)=1.
 FIINIT(PRPS)=-1.
   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
   No PATCHes yet used for this Group
 XCYCLE = F
 EGWF = T
 WALLCO = GRND2
 ************************************************************
  Group 14. Downstream Pressure For PARAB
 IPARAB = 0
 AZPH =0. ;PBAR =0.
 ************************************************************
  Group 15. Terminate Sweeps
 LSWEEP = 1 ;ISWC1 = 1
 LITHYD = 1 ;LITFLX = 1 ;LITC = 1 ;ITHC1 = 1
 SELREF = T
 RESFAC =1.0E-05
 ************************************************************
  Group 16. Terminate Iterations
 ************************************************************
  Group 17. Relaxation
 RELAX(V1,LINRLX,1.)
 RELAX(W1,LINRLX,1.)
 RELAX(PRPS,LINRLX,1.)
 OVRRLX =0.
 EXPERT = F ;NNORSL = F
 ************************************************************
  Group 18. Limits
 VARMAX(V1)=1.0E+06 ;VARMIN(V1)=-1.0E+06
 VARMAX(W1)=1.0E+06 ;VARMIN(W1)=-1.0E+06
 VARMAX(EPOR)=1.0E+10 ;VARMIN(EPOR)=-1.0E+10
 VARMAX(NPOR)=1.0E+10 ;VARMIN(NPOR)=-1.0E+10
 VARMAX(PRPS)=1.0E+10 ;VARMIN(PRPS)=-1.0E+10
 ************************************************************
  Group 19. Data transmitted to GROUND
 PARSOL = F
 DZW1 =0.05
 ISG62 = 1
 SPEDAT(SET,YGRID,YRAT,C,=1.+0.5*DZ/(0.1+ZZW)!IF(IZ.LE.20.OR.IZ.GT$)
 SPEDAT(SET,YGRID,YRAT,C,.40))
 SPEDAT(SET,YGRID,YRAT,C,=1.+0.5*(-DZ)/(0.1+ZZW)!IF(IZ.GT.20.AND.I$)
 SPEDAT(SET,YGRID,YRAT,C,Z.LE.40))
 SPEDAT(SET,GXMONI,PLOTALL,L,T)
 ************************************************************
  Group 20. Preliminary Printout
 DISTIL = T ;NULLPR = F
 NDST = 0
 DSTTOL =1.0E-02
 EX(V1)=1.0E-10 ;EX(W1)=1.0E-10
 EX(EPOR)=0. ;EX(NPOR)=0.
 EX(PRPS)=0.
 ************************************************************
  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(V1,Y,N,Y,N,N,N)
 OUTPUT(W1,Y,N,Y,N,N,N)
 OUTPUT(EPOR,Y,N,Y,N,N,N)
 OUTPUT(NPOR,Y,N,Y,N,N,N)
 OUTPUT(PRPS,Y,N,Y,N,N,N)
 ************************************************************
  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
 NYPRIN = -1 ;IYPRF = 1 ;IYPRL = 10000
 NZPRIN = -1 ;IZPRF = 1 ;IZPRL = 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 = 5 ;IDISPB = 1 ;IDISPC = 100
STOP