|
|
|
|
![]() |
![]() |
![]() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
About McStas Documentation |
11.2 The MCPL_input McStas ComponentSource-like component that reads neutron state parameters from an mcpl-file.
Identification
DescriptionSource-like component that reads neutron state parameters from a binary mcpl-file. MCPL is short for Monte Carlo Particle List, and is a format for sharing events between e.g. MCNP(X), Geant4 and McStas. The –ncount given on the commandline is overwritten by (#particles in the file) x repeat_count. Particles that are not neutrons, or are outside [Emin, Emax], are counted but ABSORBed. The rays form a stream that runs through the file repeat_count times. As in KDSource, this stream is split into one contiguous chunk per MPI process: each process seeks once to its start and reads on, wrapping around to the start of the file (with preload=1 it loads only the part of the file its chunk covers). Every event is thus used repeat_count times across the whole run, and its weight is divided by repeat_count. All passes after the first are smeared using v_smear, pos_smear and dir_smear (the first pass is too if always_smear is set), so repeat_count > 1 MUST be combined with at least one *_smear option; if all are 0, repeat_count is reset to 1. With replicate_across_processes=0 (the default, as in MCPL_input_once) the file is shared between the MPI processes and –mpi=N does not change the number of rays. replicate_across_processes=1 restores the pre-Oct 2026 MPI behaviour: repeat_count is rounded up to a multiple of the number of MPI processes, so that every process runs through the whole file at least once, and all but the first pass on the master are smeared (or, with all *_smear=0, are identical copies). Example: MCPL_input(filename=voutput,verbose=1,repeat_count=1,v_smear=0.1,pos_smear=0.001,dir_smear=0.01)
Input parametersParameters in boldface are required; the others are optional.
Links
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||