User and Programmers Guide to the Neutron Ray-Tracing Package McStas, version 3.8.6

8  Instrument examples

In this section, we present a few typical instruments from the McStas example library. We then give a longer description of three selected worked examples: a simple sample test instrument (8.2), the historical Risø triple-axis spectrometer TAS1 (8.3), and the ISIS time-of-flight spectrometer PRISMA (8.4).

These instrument files are included in the McStas distribution in the examples/ directory (mcstas-comps/examples in the source tree), organised by facility/category. Any of them can be loaded from mcgui’s New from Template menu (known as “Neutron site” in older McStas releases, see section 3.2): selecting one copies the instrument into your working directory, ready to edit, run, or trace.

The list below is a curated tour, not an exhaustive catalogue – new example instruments are added continuously as facilities contribute instrument descriptions. Use mcdoc (section 3.5.7) or browse the examples/ directory directly for the full, current list.

8.1 A quick tour of instrument examples
8.1.1 Templates
8.1.2 Risoe
8.1.3 ISIS
8.1.4 ILL
8.1.5 ESS
8.1.6 Union_demos, Union_sample_environments, Union_validation
8.1.7 NCrystal
8.1.8 Tests_* categories
8.1.9 Other facility categories
8.2 A test instrument for the component V_sample
8.2.1 Scattering from the V-sample test instrument
8.3 The triple axis spectrometer TAS1
8.3.1 Simulated and measured resolution of TAS1
8.4 The time-of-flight spectrometer PRISMA
8.4.1 Simple spectra from the PRISMA instrument