# McStas (ii): An overview of components, their use, and advice for user contributions

Source: [McStas (ii): An overview of components, their use, and advice for user contributions](<https://www.sota2.com/research/paper/68fa3de11e209131ce8e3d1d>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-25T01:45:04.118Z

Authors: P. K. Willendrup, K. Lefmann

Published: 2020-10-01T09:54:51.000Z

## Abstract

An key element of the success of McStas is the component layer where users and developers alike are contributing to the description of new physical models and features. In McStas, components realise all physical elements of the simulated instrument from source via optics and samples to detector. In this second review paper of the McStas package, we present an overview of the component classes in McStas: sources, monitors, optics, samples, misc, and contrib. Within each component class we give thorough examples of high-quality components, including their algorithms and example use. We present two example instruments, one for a continuous source and one for a time-of-flight source, that together demonstrate the use of the main component classes. Finally, we give tips and instructions that will allow the reader to write good components and elucidate the pathway of contributing new components to McStas.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2010.00278>)

[PDF](<https://arxiv.org/pdf/2010.00278.pdf>)
