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

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding
 Screenshots

Download
 Components
 Linux Install (deb/rpm)
 Mac OS X Install
 Unix Install (src code)
 Windows Install
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 McStas manual
 FAQ
 Known problems
 Publications
 C Compilers
 Other
 Tools
 Tutorial

Workshops/conferences

Developments

Links

Report bugs

Git

McStas Ubuntu live-dvd


McStas: Pol_constBfield Component

[ Identification | Description | Input parameters | Output parameters | Links ]

The Pol_constBfield Component

Constant magnetic field.

Identification

  • Author: Peter Christiansen
  • Origin: RISOE
  • Date: July 2006
  • Version: $Revision$

Description


Rectangular box with constant B field along y-axis (up). The
component can be rotated to make either a guide field or a spin
flipper. A neutron hitting outside the box opening or the box sides
is absorbed.

Example: Pol_constBfield(xwidth=0.1, yheight=0.1, length=0.2, fliplambda=5.0)

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
xwidth - Width of opening (m).  
yheight - Height of opening (m).  
length - Length of field (m).  
B Gauss Magnetic field along y-direction 0
fliplambda - lambda for calculating B field 0
flipangle - Angle flipped for lambda = fliplambda fliplambda and flipangle overrides B so a neutron with s = (1, 0, 0) and v = (0, 0, v(fliplambda)) will have s = (cos(flipangle), sin(flipangle), 0) after the section. 180

Output parameters

Name Unit Description Default
omegaL  

Links


[ Identification | Description | Input parameters | Output parameters | Links ]

Generated automatically by McDoc, Peter Willendrup <peter.willendrup@risoe.dk> / Fri Mar 17 20:40:06 2017


Last Modified: Friday, 17-Mar-2017 21:40:06 CET
Search website mailinglist archive GitHub repos