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


About McStas
 Conditions of use
 Project funding

 Other Downloads (share)

Mailing list

Search web/mailinglist

 Wiki (GitHub)
 McStas manual


Report bugs (GitHub)

Code-repository (GitHub)

McStas: Pol_constBfield Component

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

The Pol_constBfield Component

Constant magnetic field.


  • Author: Peter Christiansen
  • Origin: RISOE
  • Date: July 2006
  • Version:(Unknown)


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 m Width of opening  
yheight m Height of opening  
length m Length of field  
B Gauss Magnetic field along y-direction 0
fliplambda 0
flipangle 180

Output parameters

Name Unit Description Default


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

Generated automatically by McDoc, Peter Willendrup <> / Wed Jan 12 15:13:31 2022

Last Modified: Wednesday, 12-Jan-2022 16:13:31 CET
Search website mailinglist archive GitHub repos