PyNE C++
Public Member Functions | Public Attributes | List of all members
pyne::Tally Class Reference

Public Member Functions

 Tally ()
 Tally Constructors.
 
 Tally (std::string type, std::string particle_name, int entity, std::string entity_type, std::string entity_name, std::string tally_name="", double entity_size=0.0, double normalization=1.0)
 empty constructor More...
 
hid_t create_dataspace (hid_t file, std::string datapath)
 default destructor
 
hid_t create_filetype ()
 
hid_t create_memtype ()
 
void from_hdf5 (char *filename, char *datapath, int row=-1)
 
void from_hdf5 (std::string filename, std::string datapath, int row=-1)
 
void write_hdf5 (char *filename, char *datapath)
 
void write_hdf5 (std::string filename, std::string datapath)
 
std::string mcnp (int tally_index=1, std::string mcnp_version="mcnp5")
 
std::string fluka (std::string unit_number="-21")
 

Public Attributes

std::map< std::string, std::string > rx2fluka
 
std::map< std::string, std::string > rx2mcnp5
 
std::map< std::string, std::string > rx2mcnp6
 
std::string entity_type
 fundamental tally variables More...
 
std::string entity_name
 the name of the entity (optional)
 
std::string particle_name
 particle name string
 
std::string tally_type
 type of tally flux or current
 
std::string tally_name
 name of the tally
 
int entity_id
 id number of the entity being tallied upon
 
double entity_size
 the physical size of the entity
 
double normalization
 the tally normalization
 

Constructor & Destructor Documentation

pyne::Tally::Tally ( std::string  type,
std::string  particle_name,
int  entity,
std::string  entity_type,
std::string  entity_name,
std::string  tally_name = "",
double  entity_size = 0.0,
double  normalization = 1.0 
)

empty constructor

Constructor from passed in vars

Parameters
typethe type of tally (flux or current)
particle_namethe name of the particle type
entitythe entity id of the tally (eg. surface index, volume number)
entity_type(volume or surface)
entity_namestring identifying the entity
tally_namestring identifying the tally
entity_sizethe physical size of the tally volume
normalizationthe number required to normalize your tally

Member Function Documentation

void pyne::Tally::from_hdf5 ( char *  filename,
char *  datapath,
int  row = -1 
)

Dummy read method wrapper around c style strings

Parameters
filenamethe filename of the file to read from
datapath_name the name of the region where tallies are stored
rowthe array index of data to access
void pyne::Tally::from_hdf5 ( std::string  filename,
std::string  datapath,
int  row = -1 
)

Main read tally method

Parameters
filenamethe filename of the file to read from
datapath_name the name of the region where tallies are stored
rowthe array index of data to access
void pyne::Tally::write_hdf5 ( char *  filename,
char *  datapath 
)

Dummy write method wrapper around c style strings

Parameters
filenamethe filename of the file to write to
datapath_name the name of the region where tallies are to be stored
void pyne::Tally::write_hdf5 ( std::string  filename,
std::string  datapath 
)

Main write tally method

Parameters
filenamethe filename of the file to write to
datapath_name the name of the region where tallies are to be stored

Member Data Documentation

std::string pyne::Tally::entity_type

fundamental tally variables

the type of entity (volume,surface)


The documentation for this class was generated from the following files: