Component Manual for the Xray-Tracing Package McXtrace, version 3.8.6

10  The Union framework: sample environments and multiple scattering

The Union framework, originally contributed by Mads Bertelsen for McStas and ported to McXtrace, is a set of components that together allow the description of complex, possibly nested or overlapping, sample environments with multiple scattering, by separating the description of geometry (where matter is) from physical process (what happens to a photon there, e.g. Compton or Rayleigh scattering, photoelectric absorption, or powder diffraction).

A Union simulation is assembled in four steps, each using one or more of the component classes documented in this chapter:

  1. One or more process components (e.g. Incoherent_process, Compton_xrl_process, Rayleigh_xrl_process, Powder_process) each describe one interaction process.

  2. These are gathered into named materials using Union_make_material, which may combine several processes into one material definition.

  3. Geometry components (Union_box, Union_cylinder, Union_sphere, Union_cone) place volumes of a given material in the instrument, and may be nested or intersected to build up arbitrarily complex sample environments.

  4. A Union_master component, placed after all of the geometries it should simulate, performs the actual ray-tracing (including multiple scattering) through every geometry defined since the previous master (or since Union_init).

10.1 Union framework core: initialization, master, and termination
10.2 The Union_init McXtrace Component
Identification
Description
Input parameters
Links
10.3 The Union_master McXtrace Component
Identification
Description
Input parameters
Links
10.4 The Union_stop McXtrace Component
Identification
Description
Input parameters
Links
10.5 Union geometry components
10.6 The Union_box McXtrace Component
Identification
Description
Input parameters
Links
10.7 The Union_cylinder McXtrace Component
Identification
Description
Input parameters
Links
10.8 The Union_sphere McXtrace Component
Identification
Description
Input parameters
Links
10.9 The Union_cone McXtrace Component
Identification
Description
Input parameters
Links
10.10 Union material definition
10.11 The Union_make_material McXtrace Component
Identification
Description
Input parameters
Links
10.12 Union scattering/interaction process components
10.13 The Incoherent_process McXtrace Component
Identification
Description
Input parameters
Links
10.14 The Compton_xrl_process McXtrace Component
Identification
Description
Input parameters
Links
10.15 The Rayleigh_xrl_process McXtrace Component
Identification
Description
Input parameters
Links
10.16 The KN_xrl_process McXtrace Component
Identification
Description
Input parameters
Links
10.17 The Powder_process McXtrace Component
Identification
Description
Input parameters
Links
10.18 The Template_process McXtrace Component
Identification
Description
Input parameters
Links