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: Test_Pol_Tabled

[ Identification | Description | Input parameters | Links ]

The Test_Pol_Tabled Instrument

Test the tabled magnetic field option


  • Site: Tests_polarization
  • Author: Your name (email)
  • Origin: Your institution
  • Date: Current Date


A test instrument to check that supplying a magnetic field as a vector field point cloud
is working. The field referred to by the default input parameter MF is 10 \mu T along the z-axis
at entry and flips to l0 \mu T along the negative z-axis halfway through

Input parameters

Parameters in boldface are required; the others are optional.
MFstringField definition file"flipfield.dat"
zdepthmZ-dimension of field1
interpol_methodstringChoice of interpolation method "kdtree" (default on CPU) / "regular" (default on GPU)"default"


  • Source code for Test_Pol_Tabled.instr.
  • A reference/HTML link for more information

[ Identification | Description | Input parameters | Links ]

Generated on 2023-09-19 20:01:36

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