McStas logo McStas - A neutron ray-trace simulation package ILL; PSI; ESS Niels Bohr Institute DTU Physics NEXMAP

McStas
site 2

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

[ Identification | Description | Input parameters | Links ]

The SE_example2 Instrument

Mockup of transmission Spin-Echo, written for PNCMI 2010 school in Delft. This version uses Pol_FieldBox for description of the fields.

Identification

  • Site: Templates
  • Author: Erik Knudsen, Peter Willendrup
  • Origin: Risoe
  • Date: June 2010

Description

This instrument shows the use of essential McStas polarisation components, including Pol_mirror, Pol_FieldBox and MeanPolLambda_monitor.

Pol_mirror is used to polarize and analyze the incoming and scattered beams.
Pol_FieldBox is used to define guidefields and flippers.
MeanPolLambda_montior is used to monitor beam polarisation.

Example: mcrun SE_example2.instr dBz=-0.0001,0.0001 -N41 -n1e5

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
POL_ANGLEdegReflection angle of polarizer/analyzer2
SAMPLE1Flag to include (0) or exclude incoherent scatterer0
BguideTField magnitude in guide fields0.1
BflipTMagnitude of flipper fields,3e-4
dBzTMagnitude field perturbation in first guide field0
LamAngstromMean wavelength of neutrons emitted from source8
dLamAngstromWavelength spread of neutrons emitted from source0.8

Links

  • Source code for SE_example2.instr.
  • Requires mcstas 1.12b (or beta). PolLambda_monitor has been modified to work (nL->nlam)

[ Identification | Description | Input parameters | Links ]

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


Last Modified: Tuesday, 17-Sep-2024 05:31:13 CEST
Search website mailinglist archive GitHub repos