PHOTON USE
    x
    x1


    msg(  PLANT generated grid
    gr z 1
    ENDUSE

  DISPLAY

    PLANT is used to create body-fittted-coordinate grids
    defined by formulae.
    

    Example: 2D converging-diverging channel
  ENDDIS


TEXT( 2D converging-diverging channel

    GROUP 6. Body-fitted coordinates or grid distortion
nx=43;ny=10;nz=1
bfc=t
lsweep=1
dumpc(grid);readco(grid)
CSG1=PHI;CSG2=XYZ;IDISPA=1
store(mark)
NAMSAT=MOSG

    PLANTBEGIN
    XC=16.9/FLOAT(NX)*FLOAT(I-1)
    YC=FLOAT(J-1)/FLOAT(NY)*ABS(COS(XC))$
               +1.*FLOAT(J-1) /FLOAT(NY)
    ZC=1.*FLOAT(K-1)/FLOAT(NZ)
    PLANTEND

dmpstk=t
DISTIL=T
EX(MARK)=1.000E-10
 LIBREF=513
STOP