McStas logo McStas - A neutron ray-trace simulation package ILL; PSI; ESS Niels Bohr Institute DTU Physics

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding

Download
 Components
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)


The Spin_random McStas Component

14.63  The Spin_random McStas Component

Set a random polarisation

Identification

  • Author: Michael Schneider (SNAG)

  • Origin: SNAG

  • Date: 2024

Description

This component has no physical size or extent, it simply asigns the neutron ray polarisation randomly to either spin-up or spin-down.

Input parameters

Parameters in boldface are required; the others are optional.

Name

Unit

Description

Default

Links

  • Component source code found in file Spin_random.comp.


Last Modified: Tuesday, 06-Oct-2026 21:19:10 CEST
Search website mailinglist archive GitHub repos