10.07.2015 Views

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

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.

Figure 4.2: UCBEND simulation at 8.5 MeV (B=2.6 kG).poverb=p/(bfield*0.3)u0=u(np)v0=v(np)w0=w(np)rcurv=-iq(np)*poverbif (ustep.gt.0.1) thenustep=dmin1(ustep,0.1*abs(poverb))end ifustep0=ustepirnew=irlalpha=ustep/rcurvrenorf=1./sqrt(1.+alpha*alpha)w(np)=(w0-u0*alpha)*renorfu(np)=(u0+w0*alpha)*renorfv(np)=v0call plan2p(6,11,1,3,3,-1)call plan2p(7,5,1,11,12,-1)elsecall plan2p(6,11,1,3,3,-1)call plan2p(7,5,1,11,12,-1)end ifThe result of running UCBEND at 8.5 and 3.5 MeV is shown in Figure 4.2 and Figure 4.3,respectively, for 100 incident electrons (the red lines are electrons and the yellow lines are photons). 11 These figures were created by using a freely distributed program called “cgview,” which is briefly described insection 4.3.196

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

Saved successfully!

Ooh no, something went wrong!