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.

2.4 Particle Transport Simulation<br />

The mean free path, λ, of a particle is given in terms of its total cross section, σ t , or alternatively,<br />

in terms of its macroscopic total cross section, Σ t , according to the expression<br />

where<br />

λ = 1 Σ t<br />

=<br />

N a = Avogadro ′ s number,<br />

ρ = density,<br />

M = molecular weight,<br />

The probability of an interaction is given by<br />

σ t = total cross section per molecule.<br />

P r{interaction in distance dx} = dx/λ.<br />

M<br />

N a ρσ t<br />

, (2.28)<br />

In general, the mean free path may change as the particle moves from one medium to another, or<br />

when it loses energy. The number of mean free paths traversed will be<br />

N λ =<br />

∫ x<br />

x 0<br />

dx<br />

λ(x) . (2.29)<br />

If ˆNλ is a random variable denoting the number of mean free paths from a given point until the<br />

next interaction, then it can be shown that ˆN λ has the distribution function<br />

P r{ ˆN λ < N λ } = 1 − exp(−N λ ) for N λ > 0. (2.30)<br />

Using the direct sampling method and the fact that 1 − ζ is also uniform on (0, 1) if ζ is, we can<br />

sample N λ using<br />

N λ = − ln ζ. (2.31)<br />

This may be used in Equation 2.29 to obtain the location of the next interaction.<br />

Let us now consider the application of the above to the transport of photons. Pair production,<br />

Compton scattering, and photoelectric processes are treated by default in <strong>EGS5</strong>. Explicit treatment<br />

of Rayleigh scattering is included as a non-default option. These processes all have cross sections<br />

which are small enough that all interactions may be simulated individually, so that photons in<br />

<strong>EGS5</strong> travel in straight lines with constant energies between interactions. Thus, if the overall<br />

volume in which a simulation takes place is composed of a finite number of regions, each of which is<br />

a homogeneous material with uniform density, then the integral in Equation 2.29 reduces to a sum.<br />

If x 0 , x 1 , · · · are the region boundary distances between which λ is constant, then Equation 2.29<br />

becomes<br />

∑i−1( ) ( )<br />

xj − x j−1 x − xi−1<br />

N λ =<br />

+<br />

, (2.32)<br />

λ j λ i<br />

j=1<br />

where x ∈ (x i−1 , x i ). The photon transport procedure is then as follows. First, pick the number of<br />

mean free paths to the next interaction using Equation 2.31. Then perform the following steps:<br />

27

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

Saved successfully!

Ooh no, something went wrong!