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.

4z6Vac115Pb65Air749 1012AirAir8Vac Vac Vac73113Air8Pb91022Cu11e -VacxFigure 4.1: Diagram used with UCBEND (not to scale).V = V 0 , (4.4)W = (W 0 − αU 0 )F ,whereF = unit vector renormalization factor= (1 + α 2 ) −1/2 . (4.5)The following code listing, which pertains only to that HOWFAR section relating to Region 4, shouldbe fairly self-explanatory (Note that USTEP has been limited to 0.1 cm in this example, but thiscan be changed by the user).else if (irl.eq.4) thenif (ifield.ne.0.and.iq(np).ne.0) thenpsq=e(np)*e(np)-RMSQif (psq.lt.0.0) psq=1.0E-9p=sqrt(psq)195

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

Saved successfully!

Ooh no, something went wrong!