McStas: Test_Pol_Tabled
[ Identification
| Description
| Examples
| Input parameters
| Links ]
The Test_Pol_Tabled Instrument
Test the tabled magnetic field option
Identification
Site: Tests_polarization
Author: Peter Willendrup
Origin: DTU
Date: 2024
Description
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
Examples
(Test cases in bold)
Test: -n1e4 interpol_method=default MF=flipfield.dat Detector: pol_6_I=1.0
Test: -n1e4 interpol_method=default MF=constfield.dat Detector: polx_6_I=0.05
Input parameters
Parameters in
boldface are required;
the others are optional.
Name Unit Description Default
MF string Field definition file "flipfield.dat"
zdepth m Z-dimension of field 1
interpol_method string Choice of interpolation method "kdtree" (default on CPU) / "regular" (default on GPU) "default"
Links
Source code for Test_Pol_Tabled.instr.
A reference/HTML link for more information
[ Identification
| Description
| Examples
| Input parameters
| Links ]
Generated for mcstas 3.8.4
Last Modified: Friday, 11-Sep-2026 15:00:08 CEST