next up previous index
Next: Path and step Up: Method Previous: Calculation of the

Sampling of the distribution function

The component distribution functions (gif) are given by

fr(0)(η) = 2e2 = 2D0(1,1,-η2)

fr(1)(η) = 2D1(2,1,-η2)

fr(2)(η) = D2(3,1,-η2),

where Dn(a,b,z) = dn[Γ(a)M(a,b,z)]/d an , with M(a,b,z) the Kummers hypergeometric function.

Integrals of the functions fr(1) and fr(2) needed for the Monte Carlo can be written down directly in terms of the D functions
η&inf;ηfr(1)&sp;ηdη = D1( 2,1, - η2)-D1( 1,1, - η2) - D0( 1,1,-η2)

η&inf;ηfr(2)&sp;ηdη = {12}D2(3,1,-η2) - D2(2,1,-η2) - D1(2,1,-η2)

We note that the first term is just the Gaussian part and it dominates for large B, that is, for large number of scatters, as it has to be expected. Recalling the definition of η in (gif) we can say that the half-width of the Gaussian part of the Molière distribution is σ2= χc2B/2 . Routine GMOLIE performs the sampling of the Molière distribution via the following steps:

  1. the value of B is calculated recursively. If we set f(B) = B with f(B) = lnΩ0+ lnB the relation used is Bn= Bn-1+ ΔB = Bn-1+ (f(Bn-1) - Bn-1)/(1-1/Bn-1) . Convergence is assumed when |ΔB| ≤10-4 .

  2. a random number r1 is sampled and a table of four values Fri) is built with i = j-2,j-1,j,j+1 and Frj) ≥r1 . F is the distribution function derived from (gif):
    Fr(η) = 0ηfr(t) &sp;dt= ∫0ηfr(0)(t)+fr(1)(t)B-1+fr(2)(t)B-2&sp;dt

    = 0ηfr(0)(t) &sp;dt+ B-10ηfr(1)(t) &sp;dt+B-20ηfr(2)(t) &sp;dt

    = Fr(0)(η) +B-1Fr(1)(η) + B-2Fr(2)(η)

    40 values of the functions Fr(n) are tabulated.

  3. using a four-points continued-fraction interpolation method (GMOL4) a table of ηi2 is interpolated using the values of r1 and F tabulated in the previous step. This is similar to the inversion of the distribution function, but instead of obtaining directly the random variable, we interpolate a table of its squares. This provides a better fit to the inverse function;

  4. the value of θ= χcB η2 is calculated;

  5. a random number r2 is extracted, and the rejection function g(θ) = sinθ/θ is computed. If r2> g(θ)

    resampling begins from step 2, otherwise the value is accepted.

The Molière distribution gives the space scattering angle. A similar expression may be written for the lateral displacement of the scattered particles. However, the problem of joint angle lateral displacement in the Molière approximation has not been solved, and, for small step size, lateral displacement is of second order and may be neglected. This introduces a problem when large step sizes are taken. The step size can be artificially limited via the use of the variable STEMAX, which is an argument to the routine GSTMED. For more information on this point the user is invited to consult chapter [CONS200].



next up previous index
Next: Path and step Up: Method Previous: Calculation of the


Janne Saarela
Mon Apr 3 12:46:29 METDST 1995