Download McStas Component manual

Transcript
Contents
Preface and acknowledgements
1 About the component library
1.1 Authorship . . . . . . . . . . . . .
1.2 Symbols for neutron scattering and
1.3 Component coordinate system . . .
1.4 About data files . . . . . . . . . . .
1.5 Component source code . . . . . .
1.6 Documentation . . . . . . . . . . .
1.7 Component validation . . . . . . .
1.8 Disclaimer, bugs . . . . . . . . . .
7
. . . . . . .
simulation
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2 Monte Carlo Techniques and simulation strategy
2.1 Neutron spectrometer simulations . . . . . . . . . . . . . . .
2.1.1 Monte Carlo ray tracing simulations . . . . . . . . .
2.2 The neutron weight . . . . . . . . . . . . . . . . . . . . . . .
2.2.1 Statistical errors of non-integer counts . . . . . . . .
2.3 Weight factor transformations during a Monte Carlo choice
2.3.1 Direction focusing . . . . . . . . . . . . . . . . . . .
2.4 Adaptive sampling . . . . . . . . . . . . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
3 Source components
3.0.1 Neutron flux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1 Source simple: A simple continuous source with a flat energy/wavelength
spectrum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2 Source div: A continuous source with specified divergence . . . . . . . . .
3.3 Source Maxwell 3: A continuous source with a Maxwellian spectrum . . .
3.4 Source gen: A general continuous source . . . . . . . . . . . . . . . . . . .
3.5 Moderator: A time-of-flight source (pulsed) . . . . . . . . . . . . . . . . .
3.6 ISIS moderator: ISIS pulsed moderators . . . . . . . . . . . . . . . . . . .
3.6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.6.2 Using the McStas Module . . . . . . . . . . . . . . . . . . . . . . .
3.6.3 Comparing TS1 and TS2 . . . . . . . . . . . . . . . . . . . . . . .
3.6.4 Bugs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.7 Source adapt: A neutron source with adaptive importance sampling . . .
3.7.1 Optimization disclaimer . . . . . . . . . . . . . . . . . . . . . . . .
Risø–R–1538(EN)
.
.
.
.
.
.
.
.
9
9
9
10
10
11
11
13
13
.
.
.
.
.
.
.
15
15
16
16
17
18
18
19
20
. 20
.
.
.
.
.
.
.
.
.
.
.
.
22
22
23
23
24
24
25
25
26
26
28
28
3