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_MCPL_input_once

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

The Test_MCPL_input_once Instrument

A test instrument for MCPL_input_once

Identification

  • Site: Tests_MCPL_etc
  • Author: Peter Willendrup
  • Origin: DTU
  • Date: Mar 2024

Description

This is a unit test for the MCPL_input_once component. Since Oct 2026 MCPL_input_once
is an INHERIT of MCPL_input with repeat_count=1 and replicate_across_processes=0 forced:
the file content is shared among MPI processes and every particle is used once.

Examples

(Test cases in bold)
  • Test: -n1e3 v_smear=0.1 MCPLFILE=voutput.mcpl.gz Detector: m1_I=2.42284e+11
  • Test: -n1e3 v_smear=0.1 MCPLFILE=voutput_legacy Detector: m1_I=2.42284e+11

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
v_smear1Mmake Gaussian MC choice on particle velocity with spread v_smear * particle velocity0.1
pos_smearmMake uniform MC choice on sphere of radius pos_spear around particle position0.001
dir_smeardegMake Gaussian MC choice in cone of opening dir_smear around particle direction0.01
MCPLFILEstrInput MCPL file."voutput.mcpl"

Links


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

Generated for mcstas 3.10.2


Last Modified: Tue Nov 3 18:52:15 2026
Search website mailinglist archive GitHub repos