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

[ Identification | Description | Input parameters | Links ]

The Test_RNG_randvec_target_rect_angular Instrument

Instrument to get basic test output from random number generator.

Identification

  • Site: Tests
  • Author: Peter Willendrup
  • Origin: DTU
  • Date: Oct 2nd, 2020

Description

Instrument to get basic test output from random number generator.

The instrument generates 2 randon numbers pr. particle using randpm1(),
encoded into the particle x and y coordinates.

For a low statistics, one may e.g. check that setting the seed gives
varied output or fixing the seed gives fixed outputĀ·

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
Ncount1Specify statistics1000000
seed1Specify RNG seed0
angledegAngular focusing settin45

Links

  • Source code for Test_RNG_randvec_target_rect_angular.instr.

[ 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