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: Progress_bar Component

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

The Progress_bar Component

A simulation progress bar


  • Author: Emmanuel Farhi
  • Origin: ILL
  • Date: 2002
  • Version:(Unknown)


An indicator of the progress of the simulation, monitoring
the Init, Trace with the achieved percentage, and the Finally section.
Intermediate savings (e.g. triggered by USR2 signal) are also shown.
This component should be positioned at the very begining of the instrument
The profile option will save the intensity and number of events for each
component It may be used to evaluate the simulation efficiency.

Example: Progress_bar(percent=10,flag_save=1) AT (0,0,0)

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
profile str file name to save the simulation profile if set to "", it is set to the name of the instrument. "NULL"
percent 0-100 percentage interval between updates. Default is 10%. 10
flag_save 0|1 flag to enable intermediate saving for all monitors 0
minutes min time in minutes between updates (Overrides percent flag). 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