Fluka Output Interfaces – pyne.fluka

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

Fluka API

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 PyMOAB is not installed, then Usrbin and UsrbinTally will not be available to use.

class pyne.fluka.Usrbin(filename)[source]

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.

Attributes
filenamestring

Path to Fluka usrbin file

tallydict

A dictionary with user-specified tally names as keys and UsrbinTally objects as values.

Parameters
filenamestring

FLUKA USRBIN file

class pyne.fluka.UsrbinTally(fh)[source]

This class reads a single FLUKA USRBIN tally from a USRBIN file.

Attributes
coord_sysstring

The coordinate system used. Either “Cartesian”, “R-Z”, “R-Phi-Z”, or user-defined. Only “Cartesian” is supported.

namestring

The user-defined name for the tally

particlestring

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_boundslist of floats

The locations of mesh vertices in the x direction

y_boundslist of floats

The locations of mesh vertices in the y direction

z_boundslist of floats

The locations of mesh vertices in the z direction

part_data_tagstring

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_tagstring

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

Parameters
fhfilehandle

An open usrbin file