PHOTON USE x x1 msg( PLANT generated grid gr z m gr y m ENDUSE DISPLAY PLANT is used to create body-fittted-coordinate grids defined by formulae. Example: 3D hypocycloidal beam ENDDIS TEXT( 3D hypocycloidal beam GROUP 6. Body-fitted coordinates or grid distortion nx=14;ny=10;nz=10 bfc=t;dumpc(grid);readco(grid) CSG1=PHI;CSG2=XYZ;lsweep=1;IDISPA=1 STORE(mark) NAMSAT=MOSG PLANTBEGIN real(twopi,littler) littler=1.0;twopi=2.0*3.14157 RG(1)=TWOPIXC=:LITTLER:*FLOAT(J-1)/FLOAT(NY)* $ (2.*COS(RG(1)*FLOAT(I-1)/FLOAT(NX))$ +COS(2.*RG(1)*FLOAT(I-1)/FLOAT(NX))) YC=:LITTLER:*FLOAT(J-1)/FLOAT(NY)* $ (2.*SIN(RG(1)*FLOAT(I-1)/FLOAT(NX))$ -SIN(2.*RG(1)*FLOAT(I-1)/FLOAT(NX))) ZC=20.*FLOAT(K-1)/FLOAT(NZ) PLANTEND dmpstk=t DISTIL=T EX(MARK)=1.000E-10 LIBREF=505 STOP