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
 Screenshots

Download
 Components
 Linux Install (deb/rpm)
 Mac OS X Install
 Unix Install (src code)
 Windows Install
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 McStas manual
 FAQ
 Known problems
 Publications
 C Compilers
 Other
 Tools
 Tutorial

Workshops/conferences

Developments

Links

Report bugs

Git

McStas Ubuntu live-dvd


McStas: Virtual_mcnp_output Component

[ Identification | Description | Input parameters | Output parameters | Links ]

The Virtual_mcnp_output Component

Detector-like component that writes neutron state parameters into a 'virtual source' neutron file with MCNP/PTRAC format.

Identification

  • Author: Chama Hennane and E. Farhi
  • Origin: ILL
  • Date: July 7th, 2006
  • Version: $Revision$

Description

Detector-like component writing neutron state parameters to a
virtual source neutron file with MCNP/PTRAC format.
The component geometry is the full plane, and saves the neutron state as
it exits from the previous component.
Format is the one used by MCNP 5 files :

   position_X position_Y position_Z dir_X dir_Y dir_Z energy weight time

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

%BUGS
This component will NOT work with parallel execution (MPI).

EXAMPLE:
To create a file collecting all neutron states with MCNP5 format
COMPONENT fichier_sortie = Virtual_mcnp_output(
   filename = "exit_guide_result.dat")
 at the position where will be the Virtual_mcnp_input.

WARNING: This is a contributed Component.

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
filename str name of the MCNP5 neutron output file, or stdout if left to 0. 0

Output parameters

Name Unit Description Default
hfile  

Links

  • Source code for Virtual_mcnp_output.comp.
  • MCNP
  • MCNP -- A General Monte Carlo N-Particle Transport Code, Version 5, Volume II: User's Guide, p177

[ Identification | Description | Input parameters | Output parameters | Links ]

Generated automatically by McDoc, Peter Willendrup <peter.willendrup@risoe.dk> / Wed Apr 19 10:57:33 2017


Last Modified: Wednesday, 19-Apr-2017 12:57:33 CEST
Search website mailinglist archive GitHub repos