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

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding
 Screenshots

Download
 Components
 Share

Mailing list

Search web/mailinglist

Documentation
 McStas manual
 FAQ
 Known problems
 Publications
 C Compilers
 Other
 Tutorial

Workshops/conferences

Developments
 Platforms

Links

Report bugs

SVN

McStas Ubuntu live-dvd


McStas: Vitess_input Component

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

The Vitess_input Component

Read neutron state parameters from VITESS neutron file.

Identification

  • Author: Kristian Nielsen
  • Origin: Risoe/ILL
  • Date: June 6, 2000
  • Version: 1.23
  • Modification history:
    • E. Farhi, Sep 28th, 2001: added spin

Description

Source-like component reading neutron state parameters from a
VITESS neutron file. Used to interface McStas components or
simulations into VITESS. Each neutron is 104 bytes.

Example: Vitess_input(file="MySource.vit", bufsize = 10000, repeat_count = 2)

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
file string Filename of neutron file to read. Default (NULL) is standard input. Empty string "" unactivates component 0
bufsize records Size of neutron input buffer 10000
repeat_count 1 Number of times to repeat each neutron read 1

Output parameters

Name Unit Description Default
hfile  
ibuf  
size  
pos  
rep  
finished int Set to 1 when the last neutron has been read  

Links


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

Generated automatically by McDoc, Peter Willendrup <peter.willendrup@risoe.dk> / Fri May 11 08:41:08 2012


Last Modified: Friday, 11-May-2012 10:41:08 CEST
Search website freshmeat.net McStas site RSS feed mailinglist archive SVN repos McCode Trac