next up previous contents
Next: 5.3.1 Power Cosine Distribution Up: 5. Surface Rate Calculation Previous: 5.2.10 Benchmarks

5.3 Generation of Random Vectors

The generation of random directions is essential for the Monte Carlo based calculation of particle transport. It is difficult to find instructions for the generation of random directions which obey a certain angular distribution, except for uniform spherical [92] or cosine distributions [37]. Therefore, recipes for the generation of variate distributions used in this work are given in the following discussion.

The arrival directions of particles at the source plane $ {\mathcal {P}}$ and the directions of reemitted particles are usually described by probability densities $ {f}({\vec{\omega}})$ , which only depend on the polar angle $ {\theta}$ relative to a certain direction $ {\vec{v}}$

$\displaystyle {f}({\vec{\omega}}) = {g}({\theta})$   with$\displaystyle \ {\theta}=\arccos({\vec{v}}\cdot{\vec{\omega}}).$ (5.33)

Using spherical coordinates with respect to $ {\vec{v}}$ the probability density function can be formulated as

$\displaystyle {f}({\vec{\omega}}) \,{d}{\Omega} = {g}({\theta})\sin{\theta} \,{d}{\theta} \,{d}{\phi}.$ (5.34)

Since this expression is separable, the azimuthal angle $ {\phi}$ and the polar angle $ {\theta}$ are independent, which allows for the description of both variables by individual probability densities $ {f}_{\phi}({\phi})$ and $ {f}_{\theta}({\theta})$

$\displaystyle {f}({\vec{\omega}}) \,{d}{\Omega} = {f}_{\phi}({\phi}) \,{d}{\phi} \cdot {f}_{\theta}({\theta}) \,{d}{\theta}$   with$\displaystyle \ {f}_{\phi}({\phi})=1 \ $   and$\displaystyle \ {f}_{\theta}({\theta})={g}({\theta})\sin{\theta}.$ (5.35)

The probability density function $ {f}_{\phi}$ is constant, which is a direct consequence of the rotational symmetry of the directional distribution. Therefore, since the azimuthal angle is uniformly distributed on $ \left[0,2\pi\right[$ , a random choice of $ {\phi}$ is trivial. Picking a random polar angle is more sophisticated. In the following sections algorithms are presented for selecting a polar angle according to directional distributions which are frequently used for the description of arrival or reemission angles.



Subsections
next up previous contents
Next: 5.3.1 Power Cosine Distribution Up: 5. Surface Rate Calculation Previous: 5.2.10 Benchmarks

Otmar Ertl: Numerical Methods for Topography Simulation