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

McStas
site 2

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)


McStas: Pol_constBfield

[ Identification | Description | Input parameters | Links ]

The Pol_constBfield Component

Constant magnetic field.

Identification

  • Site:
  • Author: Peter Christiansen
  • Origin: RISOE
  • Date: July 2006

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.
NameUnitDescriptionDefault
xwidthmWidth of opening
yheightmHeight of opening
lengthmLength of field
BGaussMagnetic field along y-direction0
fliplambdalambda for calculating B field0
flipangleAngle 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
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


[ Identification | Description | Input parameters | Links ]

Generated on 2024-01-03 11:47:43


Last Modified: Tuesday, 17-Sep-2024 05:31:15 CEST
Search website mailinglist archive GitHub repos