|
|
|
|
![]() |
![]() |
![]() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
About McStas Download Documentation |
11.3 The MCPL_output McStas ComponentDetector-like component that writes neutron state parameters into an mcpl-format binary, virtual-source neutron file.
Identification
DescriptionDetector-like component that writes neutron state parameters into an mcpl-format binary, virtual-source neutron 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 component will output #MPI nodes individual MCPL files that can be merged using the mcpltool. MCPL_output allows a few flags to tweak the output files: 1. If use_polarisation is unset (default) the polarisation vector will not be stored (saving space) 2. If doubleprec is unset (default) data will be stored as 32 bit floating points, effectively cutting the output file size in half. 3. Extra information may be attached to each ray in the form of a userflag, a user-defined variable wich is packed into 32 bits. If the user variable does not fit in 32 bits the value will be truncated and likely garbage. If more than one variable is to be attached to each neutron this must be packed into the 32 bits. These features are set this way to keep file sizes as manageable as possible. Example: MCPL_output( filename="voutput", verbose=1, userflag="flag", userflagcomment="Neutron Id" )
Input parametersParameters in boldface are required; the others are optional.
Links
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||