02.05.2014 Views

PENELOPE 2003 - OECD Nuclear Energy Agency

PENELOPE 2003 - OECD Nuclear Energy Agency

PENELOPE 2003 - OECD Nuclear Energy Agency

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.

C.2. Exact tracking in homogeneous magnetic fields 231<br />

with [see eqs. (C.16) and (C.31)]<br />

and<br />

(∆v) E = s Z 0e [E 0 − β 2 0(E 0·ˆv 0 )ˆv 0 ]<br />

m e c γ 0 β 0<br />

(∆v) B = [cos(sω/v 0 ) − 1] v 0⊥ + sin(sω/v 0 )( ˆω×v 0⊥ ).<br />

(C.37)<br />

(C.38)<br />

In our implementation of this tracking algorithm, the allowed step lengths s are<br />

limited by the following constraints [see eqs. (C.19) and (C.20)]<br />

|E(r(s)) − E(r 0 )|<br />

|E(r 0 )|<br />

< δ E ≪ 1,<br />

|B(r(s)) − B(r 0 )|<br />

|B(r 0 )|<br />

< δ B ≪ 1 (C.39)<br />

and<br />

∣ E(s) − E ∣∣∣∣ 0<br />

< δ<br />

∣<br />

E ≪ 1,<br />

E 0<br />

∣<br />

∣(∆v) E + (∆v) B<br />

∣ ∣∣<br />

v 0<br />

< δ v ≪ 1. (C.40)<br />

The algorithm is robust, i.e. the accuracy of the generated trajectories increases when<br />

the δ-parameters are reduced. In many practical cases, a good compromise between<br />

accuracy and simulation speed is obtained by setting δ E = δ B = δ E = δ v = 0.02.<br />

Notice that, in the case of a uniform magnetic field, the tracking algorithm is now<br />

exact, irrespective of the step length.<br />

This tracking algorithm has been implemented in the subroutine package penfield,<br />

which is devised to work linked to penelope and pengeom. To simulate radiation<br />

transport in a given field/material configuration, the user must provide the steering<br />

main program as well as specific routines that define the EM field (see the examples and<br />

comments in the source file PENFIELD.F).

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

Saved successfully!

Ooh no, something went wrong!