User and programmers guide to the neutron ray-tracing package McStas, version 1.2

K. Nielsen, K. Lefmann

    Research output: Book/ReportReportResearchpeer-review

    468 Downloads (Pure)


    The software package McStas is a tool for writing Monte Carlo ray-tracing simulations of neutron scattering instruments with very high complexity and precision. The simulations can compute all aspects of the performance of instruments and can thus be used to optimize the use of existing equipment as well as the design of new instrumentation. McStas is based on a unique design where an automatic compilation process translates high-level textual instrument descriptions into efficient ANSI C code. This design makes it simple to set up typical simulations and also give essentially unlimited freedom to handle more unusual needs. This report constitutes the reference manual for McStas, and contains full documentation for all ascpects of the program. It covers the various ways to compile and run simulations; a description of the metalanguage used to define simulations; a full description of all algorithms used to calculate the effects of the various optical components in instruments; and some example simulations performed with the program.
    Original languageEnglish
    Place of PublicationRoskilde
    PublisherRisø National Laboratory
    Number of pages175
    ISBN (Print)87-550-2683-4
    ISBN (Electronic)87-550-2684-2
    Publication statusPublished - 2000
    SeriesDenmark. Forskningscenter Risoe. Risoe-R


    • Risø-R-1175
    • Risø-R-1175(EN)


    Dive into the research topics of 'User and programmers guide to the neutron ray-tracing package McStas, version 1.2'. Together they form a unique fingerprint.

    Cite this