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

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_simpleBfield_stop

[ Identification | Description | Input parameters | Links ]

The Pol_simpleBfield_stop Component

Magnetic field component.

Identification

  • Site:
  • Author: Peter Christiansen and Peter Willendrup
  • Origin: RISOE
  • Date: August 2006

Description

End of magnetic field region defined by a previous Pol_simpleBfield component.

The component is concentric. It means that it requires a

// START MAGNETIC FIELD
COMPONENT msf =
Pol_simpleBfield(xw=0.08, yh=0.08, length=0.2, Bx=0, By=-0.678332e-4, Bz=0)
AT (0, 0, 0) RELATIVE armMSF

// HERE CAN BE OTHER COMPONENTS INSIDE THE MAGNETIC FIELD

// STOP MAGNETIC FIELD
COMPONENT msfCp = Pol_simpleBfield_stop(msf)
AT ("SOMEWHERE") RELATIVE armMSF

In between the two components the propagation routine
PROP_DT also handles the spin propagation.
The current algorithm used for spin propagation is:
SimpleNumMagnetPrecession
in pol-lib.
and does not handle gravity.

GRAVITY: NO
POLARISATION: YES

Example: Pol_simpleBfield_stop(Pol_simpleBfield_stop)

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
magnet_comp_stopno quotesname of the component indicating start of the magnet volume.
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


[ Identification | Description | Input parameters | Links ]

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


Last Modified: Tuesday, 16-Apr-2024 20:05:22 CEST
Search website mailinglist archive GitHub repos