|
|
|
|
![]() |
![]() |
![]() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
About McStas Download Documentation |
15.4 The Virtual_mcnp_input McStas ComponentThis component uses a filename of recorded neutrons from the reactor monte carlo code MCNP as a source of particles.
Identification
DescriptionThis component generates neutron events from a filename created using the MCNP Monte Carlo code for nuclear reactors. It is used to calculate flux exiting from hot or cold neutron sources. Neutron position and velocity is set from the filename. The neutron time is left at zero. Note that axes orientation may be different between MCNP and McStas. The component has the ability to center and orient the neutron beam to the Z-axis. It also may change the coordinate system from the MCNP frame to the McStas one. The verbose mode is highly recommended as it displays lots of useful informations. To obtain absolute intensity, set ’intensity’ and ’nps’ parameters. The source total intensity is 1.054e18 for LLB/Saclay (14 MW) and 4.28e18 for ILL/Grenoble (58 MW). Format of MCNP events are : position_X position_Y position_Z dir_X dir_Y dir_Z Energy Weight Time energy is in Mega eV, time in shakes (1e-8 s), 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 generate PTRAC files using MCNP/MCNPX, add at the end of your input file: f1:n 2001 // tally
(...) ptrac filename = asc max = -1000000 // number of neutrons to generate and stop
write = all event = sur filter = 2001,jsu // surface tally id To create a ’source’ from a MCNP simulation event file for the ILL: COMPONENT source = Virtual_mcnp_input( filename = "H10p", intensity=4.28e18, nps=11328982, verbose = 1, autocenter="translate rotate rescale")
Input parametersParameters in boldface are required; the others are optional.
Links
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||