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

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding
 Screenshots

Download
 Components
 Linux Install (deb/rpm)
 Mac OS X Install
 Unix Install (src code)
 Windows Install
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 McStas manual
 FAQ
 Known problems
 Publications
 C Compilers
 Other
 Tools
 Tutorial

Workshops/conferences

Developments

Links

Report bugs

Git

McStas Ubuntu live-dvd


McStas: MCPL_input Component

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

The MCPL_input Component

Source-like component that reads neutron state parameters from an mcpl-file.

Identification

  • Author: Erik B Knudsen
  • Origin: DTU Physics
  • Date: Mar 2016
  • Version: $Revision$

Description

Source-like component that reads neutron state parameters from a binary mcpl-file.

MCPL is short for Monte Carlo Particle List, and is a new format for sharing events
between e.g. MCNP(X), Geant4 and McStas.

When used with MPI, the --ncount given on the commandline is overwritten by 
#MPI nodes x #events in the file.

%BUGS

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
filename str Name of neutron mcpl file to read. 0
polarisationuse If !=0 read polarisation vectors from file. 1
verbose Print debugging information for first 10 particles read. 1
Emin meV Lower energy bound. Particles found in the MCPL-file below the limit are skipped. 0
Emax meV Upper energy bound. Particles found in the MCPL-file above the limit are skipped. FLT_MAX

Output parameters

Name Unit Description Default
inputfile  
nparticles  
read_neutrons  
used_neutrons  

Links


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

Generated automatically by McDoc, Peter Willendrup <peter.willendrup@risoe.dk> / Wed Apr 19 10:57:33 2017


Last Modified: Wednesday, 19-Apr-2017 12:57:33 CEST
Search website mailinglist archive GitHub repos