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

7.13  The Pol_FieldBox McStas Component

Box containing a constant magnetic field

Identification

  • Author: Erik B Knudsen and P Willendrup

  • Origin: Risoe

  • Date: 2013

Description

Input parameters

Parameters in boldface are required; the others are optional.

Name

Unit

Description

Default

xwidth

m

Width of the box containing the field.

yheight

m

Height of the box containing the field.

zdepth

m

Depth of the box containing the field.

Bx

T

Magnetic field strength along the x-axis.

0

By

T

Magnetic field strength along the y-axis.

1e-3

Bz

T

Magnetic field strength along the z-axis.

0

Links

  • Component source code found in file Pol_FieldBox.comp.


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