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


About McStas
 Conditions of use
 Project funding

 Other Downloads (share)

Mailing list

Search web/mailinglist

 Wiki (GitHub)
 McStas manual


Report bugs (GitHub)

Code-repository (GitHub)

McStas: Flex_monitor_1D Component

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

The Flex_monitor_1D Component

Flexible monitor.


  • Author: Erik B Knudsen & Peter Willendrup
  • Origin: DTU Physics
  • Date: Oct '20
  • Version:(Unknown)


A square 1D single monitor that measures intensity (or something else) as a function of some variable or parameter.

Example: Flex_monitor_1D(nU=20, filename="Output", ustring="x", Umin=-.1, Umax=.1)

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
nU 1 Number of U channels 20
filename string Name of file in which to store the detector image 0
uid 1 Integer index of uservar to be monitored. Overrides ustring. -1
ustring string Name of variable (user or neutron state parameter as a string) to be monitored. ""
restore_neutron 1 If set, the monitor does not influence the neutron state 0
signal string Name of variable to be used as an additive signal to be monitored. Default is intensity. "p"
nowritefile 1 Flag to indicate if monitor should not save any data. 0


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

Generated automatically by McDoc, Peter Willendrup <> / Wed Jan 12 15:13:20 2022

Last Modified: Wednesday, 12-Jan-2022 16:13:20 CET
Search website mailinglist archive GitHub repos