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_Source_adapt

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

The Test_Source_adapt Instrument

Cross-check of Source_adapt/Adapt_check against Source_simple

Identification

  • Site: Tests_sources
  • Author: Peter Willendrup (with AI assistance)
  • Origin: DTU
  • Date: November 2026

Description

A small off-centre slit cuts out a small part of the emitted phase space.
With adapt=1, Source_adapt learns to emit into that part (Adapt_check placed
after the slit); with adapt=0, Source_simple with the
same geometry and flux is used. The intensity after the
slit must be the same.

Examples

(Test cases in bold)
  • Test: adapt=0 Detector: lmon_I=2.49443e+08
  • Test: adapt=1 Detector: lmon_I=2.50157e+08

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
adapt10: Source_simple, 1: Source_adapt1

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