Fluka Output Interfaces –
There is a class for processing output for Fluka. The functionality of the module can be obtained by importing as such:
from pyne import fluka
Module for parsing FLUKA output data. FLUKA is a fully integrated particle physics MonteCarlo simulation package. It has many applications in high energy experimental physics and engineering, shielding, detector and telescope design, cosmic ray studies, dosimetry, medical physics and radio-biology. Further information on FLUKA can be obtained from http://www.fluka.org/fluka.php
Currently, only usrbin output files can be read.
If PyTAPS is not installed, then Usrbin and UsrbinTally will not be available to use.
This class is the wrapper class for UsrbinTally. This class stores all information for a single file that contains one or more usrbin tallies. The “tally” attribute provides key/value access to individual UsrbinTally objects.
filename (string) Path to Fluka usrbin file tally (dict) A dictionary with user-specified tally names as keys and UsrbinTally objects as values. Parameters:
filename : string
FLUKA USRBIN file
This class reads a single FLUKA USRBIN tally from a USRBIN file.
coord_sys (string) The coordinate system used. Either “Cartesian”, “R-Z”, “R-Phi-Z”, or user-defined. Only “Cartesian” is supported. name (string) The user-defined name for the tally particle (string) The number code corresponding to the particle tracked in tally. For complete list visit http://www.fluka.org/fluka.php?id=man_onl&sub=7 x_bounds (list of floats) The locations of mesh vertices in the x direction y_bounds (list of floats) The locations of mesh vertices in the y direction z_bounds (list of floats) The locations of mesh vertices in the z direction part_data_tag (string) The name of the tag for the track-length tally data. Follows form “part_data_X” where X is the number of the particle error_data_tag (string) The name of the tag for the error data. Follows form “error_data_X” where X is the number of the particle
Creates a UsrbinTally object by reading through the file
fh : filehandle
An open usrbin file