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

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)



McStas: Test_Guide_four_side

[ Identification | Description | Examples | Input parameters | Links ]

The Test_Guide_four_side Instrument

Cross-check of Guide_four_side against Guide and Elliptic_guide_gravity.

Identification

  • Site: Tests_optics
  • Author: Peter Willendrup
  • Origin: DTU
  • Date: November 2026

Description

Compares Guide_four_side (four=1) with Guide (four=0, lin=0) for straight and
tapered guides, and with Elliptic_guide_gravity (four=0, lin>0) for an
elliptic guide. The four walls of Guide_four_side are set alike, with
absorbing outer walls. Qc is set to the Guide_four_side default in all cases.

Examples

(Test cases in bold)
  • Test: four=1 Detector: psd_I=0.090771
  • Test: four=1 w2=0.02 Detector: psd_I=0.0368031
  • Test: four=1 lin=1 lout=1 Detector: psd_I=0.10061
  • Test: four=1 R0=0.99 Detector: psd_I=0.0897847

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
four11: Guide_four_side, 0: Guide or Elliptic_guide_gravity1
w1mEntrance width and height0.04
w2mExit width and height (straight/tapered case)0.04
linmDistance from 1st focal point to entrance, 0 for straight/tapered0
loutmDistance from 2nd focal point to exit0
m1m-value of all inner walls2
R01Low-angle reflectivity1

Links


[ Identification | Description | Examples | Input parameters | Links ]

Generated for mcstas 3.10.5


Last Modified: Wed Dec 2 00:25:28 2026
Search website mailinglist archive GitHub repos