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 Pol_pi_2_rotator McStas Component

14.60  The Pol_pi_2_rotator McStas Component

Ideal π/2-rotator

Identification

  • Author: Erik Knudsen (erkn@fysik.dtu.dk)

  • Origin: Risoe

  • Date: 8/4-2008

Description

Simple, idelized, component that turns the polarization exactly π/2 around the specified vector vector (rx,ry,rx). The geometry of the component is realized as a box, where the the spin is rotated at the z-midpoint.

Input parameters

Parameters in boldface are required; the others are optional.

Name

Unit

Description

Default

xwidth

m

width of the component

0.1

yheight

m

height of the component

0.1

zdepth

m

thickness of the component

0.01

rx

x-component of the rotation axis

0

ry

y-component of the rotation axis

0

rz

z-component of the rotation axis

1

Links

  • Component source code found in file Pol_pi_2_rotator.comp.


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