28.11.2014 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.

• Sum the weighted energy deposition (WT(NP)*EDEP).<br />

The easiest way to see that the weights have been properly assigned in the statements above is<br />

by example. Assume that the incident particle has a kinetic energy of 1000 MeV and that one of<br />

the progeny has energy 100 MeV and the other has 900 MeV. Then clearly the 100 MeV particle<br />

will be chosen 10% of the time and will have a weight of 1000<br />

100<br />

, whereas the 900 MeV particle will<br />

be chosen 90% of the time and will have a weight of 1000<br />

900<br />

. But the total particle count will average<br />

out to two (ı.e. 0.1 × 1000<br />

1000<br />

100<br />

+ 0.9 ×<br />

900 = 2).<br />

This scheme has been found to increase the speed of shower calculations by a factor of 300 at<br />

33 GeV. However, because the biasing can be somewhat severe at times during the calculation,<br />

the weights that are assigned tend to become rather large, and the net result is that the overall<br />

1<br />

efficiency (<br />

variance×time<br />

) is not usually 300 times better. Nevertheless, factors of 20 or more are<br />

generally obtained for many problems[75]and this technique can be invaluable.<br />

As an example, at one time it took about one minute of CPU time on the IBM-3081 to completely<br />

generate one 50 GeV shower in a large absorber. When simulating “real” beams of particles having<br />

spatial and/or angular distributions, analog EGS calculations gave only 60 incident events in one<br />

hour runs, which was inadequate. The use of leading particle biasing with a factor of 300 increase<br />

in speed, on the other hand, produced 18,000 events/hour, which was sufficient.<br />

As a final note, it should be understood that leading particle biasing, or any importance sampling<br />

scheme for that matter, should not be attempted in an arbitrary manner. For example, one should<br />

not use leading particle biasing for the “O-ring” problem above since, even though many more<br />

incident shower events will certainly be generated, the weights that are assigned to the low energy<br />

particles heading in the direction of the “O-ring” region will tend to be quite high, and no significant<br />

reduction in the variance will result. Quite the contrary, biasing of this sort can lead to very<br />

erroneous results, and one should really have a full grasp (ı.e. pre-knowledge) of the important<br />

aspects of the radiation transport before attempting to apply any of these variance reduction<br />

methods with <strong>EGS5</strong> (or any Monte Carlo program for that matter).<br />

4.2 UCBEND - Charged Particle Transport in a Magnetic Field<br />

Charged particle motion in a magnetic field is governed by the Lorentz force equation<br />

⃗F = q⃗v × ⃗ B = d⃗p<br />

dt<br />

where ⃗ B is the magnetic field strength vector, ⃗v is the velocity vector, and q is the electric charge<br />

of the particle. This equation can be expanded into its Cartesian components to give<br />

mẍ = q(ẏB z − żB y )<br />

(4.1)<br />

mÿ = q(żB x − ẋB z ) (4.2)<br />

m¨z = q(ẋB y − ẏB x )<br />

193

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

Saved successfully!

Ooh no, something went wrong!