27.01.2015 Views

How to Write Geometry of EGS5

How to Write Geometry of EGS5

How to Write Geometry of EGS5

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

•Subroutine CYLNDR was designed <strong>to</strong> take all these possibilities<br />

in<strong>to</strong> account.<br />

•A cylinder which has the Z-axis as symmetry axis is;<br />

Subroutine CYLINDR(ICYL,ISIDE,IHIT,TCYL)<br />

ICYL : ID number <strong>of</strong> cylinder <strong>to</strong> be checked<br />

ISIDE : Specify as 1 when particle is inside cylinder<br />

Specify as 0 when particle is outside cylinder<br />

IHIT : 1 is returned if particle intersects surface<br />

0 is returned if means particle misses surface<br />

TCYL : Distance <strong>to</strong> surface is returned if IHIT=1<br />

The conic surface algorithms basically are all the same.<br />

CONE and SPHERE may be used in SUBROUTINE<br />

HOWFAR in the same manner as CYLNDR.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!