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

Download
 Components
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)


McStas: Virtual_tripoli4_input

[ Identification | Description | Input parameters | Links ]

The Virtual_tripoli4_input Component

This component reads a file of recorded neutrons from the reactor Monte Carlo code TRIPOLI4.4 as a source of particles.

Identification

Description

This component generates neutron events from a file created using the
TRIPOLI4 Monte Carlo code for nuclear reactors (as MCNP). It is used to
calculate flux exiting from hot or cold neutron sources.
Neutron position and velocity is set from the file. The neutron time is
left at zero.
Storage files from TRIPOLI4.4 contain several batches of particules, all
of them having the same statictical weight.

Note that axes orientation may be different between TRIPOLI4.4 and McStas.
The component has the ability to center and orient the neutron beam to the Z-axis.
It also changes the coordinate system from the Tripoli frame to the McStas one.
The verbose mode is highly recommended as it displays lots of useful informations,
including the absolute intensity normalisation factor. All neutron fluxes in the
instrument should be multiplied by this factor. Such a renormalization is done
when 'autocenter' contains the word 'rescale'.
The source total intensity is 1.054e18 for LLB/Saclay (14 MW) and 4.28e18 for
ILL/Grenoble (58 MW).

Format of TRIPOLI4.4 event files is :

NEUTRON energy position_X position_Y position_Z dir_X dir_Y dir_Z weight

energy is in Mega eV
positions are in cm and the direction vector is normalized to 1.

%BUGS
We recommend NOT to use parallel execution (MPI) with this component. If you
need to, set parameter 'smooth=1'.

EXAMPLE:
To create a 'source' from a Tripoli4 simulation event file for the ILL:
COMPONENT source = Virtual_tripoli4_input(
filename = "ILL_SFH.dat", intensity=4.28e18,
verbose = 1, autocenter="translate rotate rescale")

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
filenamestrName of the Tripoli4.4 neutron input file. Empty string "" unactivates component0
autocenterstrString which may contain following keywords. "translate" or "center" to center the beam area AT (0,0,0) "rotate" or "orient" to center the beam velocity along Z "rescale" to adapt intensity to abs. units. Other words are ignored.0
repeat_count1Number of times the source must be generated. 0 unactivates the component1
verbose0|1Displays additional informations if set to 10
intensityn/sInitial total Source integrated intensity1
T4_ANALYSE1Number of neutron events to read for file pre-analysis. Use 0 to analyze them all.10000
radiusmIn the case the Tripoli4 batch file is a point, you may specify a disk emission area for the source.0
T4_ANALYSE_EMINmeVMinimal energy to use for file pre-analysis0
T4_ANALYSE_EMAXmeVMaximal energy to use for file pre-analysis0
smooth0/1Smooth sparsed event files for file repetitions.1
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links

  • Source code for Virtual_tripoli4_input.comp.
  • Tripoli
  • Virtual_tripoli4_output
  • CAMPIONI Guillaume, Etude et Modelisation des Sources Froides de Neutrons, These de Doctorat, CEA Saclay/UJF (2004)

[ Identification | Description | Input parameters | Links ]

Generated on 2024-01-03 11:47:43


Last Modified: Tuesday, 16-Apr-2024 20:05:22 CEST
Search website mailinglist archive GitHub repos