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

[ Identification | Description | Input parameters | Links ]

The MCPL_input_once Component

Source-like component that reads neutron state parameters from a MCPL-file one time.

Identification

  • Site:
  • Author: Gregory S Tucker
  • Origin: European Spallation Source ERIC
  • Date: Sep 2024

Description

Source-like component that reads neutron state parameters from a MCPL-file one time.

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

When used with MPI, the file contents are shared between workers with each accessing
approximately (#events in the file) / (#MPI nodes)

%BUGS

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
filenamestrName of neutron mcpl file to read.0
polarisationuse If !=0 read polarisation vectors from file.1
EminmeVLower energy bound. Particles found in the MCPL-file below the limit are skipped.0
EmaxmeVUpper energy bound. Particles found in the MCPL-file above the limit are skipped.FLT_MAX
v_smear1Relative fraction for randomness in replayed particle velocity v *= (1 + v_smear * randpm1())0
pos_smearmMaximum extent of random position for replayed particles0
dir_smeardegMaximum deviation of random direction for replayed particles0
always_smear Finite values force particle property smearing for all particles0
preload Load particles during INITIALIZE. On GPU preload is forced.0
verbose Finite values may cause extra output (at some point in the future)0
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


[ Identification | Description | Input parameters | Links ]

Generated on mcstas 3.5.24


Last Modified: Monday, 07-Apr-2025 07:02:08 CEST
Search website mailinglist archive GitHub repos