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

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

Mailing list

Search web/mailinglist

 McStas manual
 Known problems
 C Compilers




Report bugs


McStas Ubuntu live-dvd

McStas: Pol_triafield Component

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

The Pol_triafield Component

Constant magnetic field in a isosceles triangular coil


  • Author: Morten Sales, based on Pol_constBfield by Peter Christiansen
  • Origin: Helmholtz-Zentrum Berlin
  • Date: 2013
  • Version: 0.1


Rectangular box with constant B field along y-axis (up) in a isosceles triangle. 
There is a guide (or precession) field as well. It is along y in the entire rectangular box.
A neutron hitting outside the box opening or the box sides is absorbed.

   |        /\        |
   | Bguide/  \Bguide |      x
   |      /    \      |      ^
   |     /      \     |      |
   |    /   B    \    |      |-----> z
   |   /   and    \   |
   |  /   Bguide   \  |
   | /              \ |

The angle of the inclination of the triangular field boundary is given by the arctangent to xwidth/(0.5*zdepth)

This component does NOT take gravity into account.

Example: Pol_triafield(xwidth=0.1, yheight=0.1, zdepth=0.2, B=1e-3, Bguide=0.0)

WARNING: This is a contributed Component.

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].  
zdepth - zdepth of field [m].  
B T Magnetic field along y-direction inside triangle 0
Bguide T Magnetic field along y-direction inside entire box 0

Output parameters

Name Unit Description Default


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

Generated automatically by McDoc, Peter Willendrup <> / Fri Mar 17 20:40:07 2017

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