MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Private Attributes | List of all members
FMeshTally Class Reference

Define a MCNPX TMeshTally. More...

#include <MeshTally.hxx>

Inheritance diagram for FMeshTally:
MeshTally

Public Member Functions

 FMeshTally (string meshtype="rectangular", string particle="N")
 
 FMeshTally (const FMeshTally &mt)
 
 ~FMeshTally ()
 
MeshTallyClone ()
 
void SetOrigin (vector< double > Origin)
 
void SetCylinderAxis (double x=0., double y=0., double z=1.)
 
void SetCylinderVector (double x=1., double y=0., double z=0.)
 
void SetIMesh (vector< double > IMESH)
 
void SetIFineGrid (vector< int > IINTS)
 
void SetJMesh (vector< double > JMESH)
 
void SetJFineGrid (vector< int > JINTS)
 
void SetKMesh (vector< double > KMESH)
 
void SetKFineGrid (vector< int > KINTS)
 
string Print ()
 Print a mesh tally. More...
 
- Public Member Functions inherited from MeshTally
 MeshTally ()
 
virtual ~MeshTally ()
 

Private Attributes

string fType
 TMeshTally type. More...
 
string fParticle
 TMeshTally type. More...
 
vector< double > fOrigin
 Origin of the mesh. More...
 
vector< double > fAxis
 Axis coordinates of a cylindrical mesh. More...
 
vector< double > fVector
 theta axis reference of a cylindrical mesh More...
 
vector< double > fIMESH
 First coarse mesh grid. More...
 
vector< double > fJMESH
 Second coarse mesh grid. More...
 
vector< double > fKMESH
 Third coarse mesh grid. More...
 
vector< int > fIINTS
 First fine mesh grid bins. More...
 
vector< int > fJINTS
 Second fine mesh grid bins. More...
 
vector< int > fKINTS
 Third fine mesh grid bins. More...
 
bool fIfineGrid
 wether a fine grid is defined in i More...
 
bool fJfineGrid
 wether a fine grid is defined in j More...
 
bool fKfineGrid
 wether a fine grid is defined in k More...
 

Detailed Description

Define a MCNPX TMeshTally.

FMeshTally is a MCNP5 & MCNP6 implementation of Mesh Tally.

Author
PTO
Version
1.0

Constructor & Destructor Documentation

FMeshTally::FMeshTally ( string  meshtype = "rectangular",
string  particle = "N" 
)

Constructor of a FMeshTally.

User must call at least FMeshTally::SetOrigin, FMeshTally::SetIMesh, FMeshTally::SetJMesh and FMeshTally::SetKMesh

Parameters
meshtype: either "rectangular" or "cylindrical" depending on the mesh type
particle: either N, P or E for neutron, photon or electron
FMeshTally::FMeshTally ( const FMeshTally mt)
FMeshTally::~FMeshTally ( )
inline

Member Function Documentation

MeshTally* FMeshTally::Clone ( )
inlinevirtual

Reimplemented from MeshTally.

string FMeshTally::Print ( )
virtual

Print a mesh tally.

Reimplemented from MeshTally.

void FMeshTally::SetCylinderAxis ( double  x = 0.,
double  y = 0.,
double  z = 1. 
)

Cylinder Axis.

Only for cylindrical mesh, specify the axis vector of the cyclinder.

Parameters
x: x-component of the axis vector (defaut=z-axis)
y: y-component of the axis vector (defaut=z-axis)
z: z-component of the axis vector (defaut=z-axis)
void FMeshTally::SetCylinderVector ( double  x = 1.,
double  y = 0.,
double  z = 0. 
)

Cylinder Theta Vector.

Only for cylindrical mesh, specify the reference axis for theta angle.

Parameters
x: x-component of the theta reference axis vector (defaut=x-axis)
y: y-component of the theta reference axis vector (defaut=x-axis)
z: z-component of the theta reference axis vector (defaut=x-axis)
void FMeshTally::SetIFineGrid ( vector< int >  IINTS)

First fine mesh grid bins.

This defines the number of point between 2 coarse grid points. By default, no subdivision of the coarse grid is done (i.e. IINTS=1 for all the coarse grid point). If it is given it must have exactly the same size than the IMESH vector. For example, in a rectangular mesh where the origin is at (-50,-50,-50), if

IMESH -20 20 30 40 50 IINTS 3 4 1 1 1

this means that one has 3 fine bins between -50 and -20, 4 fine bins between -20 and 20 and 1 bin between 20-30, 30-40 and 40-50.

Parameters
IINTS: number of point between 2 coarse grid points
void FMeshTally::SetIMesh ( vector< double >  IMESH)
inline

First coarse mesh grid.

For rectangular mesh, it defines the x-mesh grid. For cylindrical mesh, it defines the radius mesh grid.

Parameters
IMESH: position of the 1st coarse mesh grid
void FMeshTally::SetJFineGrid ( vector< int >  JINTS)

Second fine mesh grid bins.

This defines the number of point between 2 coarse grid points. By default, no subdivision of the coarse grid is done (i.e. JINTS=1 for all the coarse grid point). If it is given it must have exactly the same size than the JMESH vector

Parameters
JINTS: number of point between 2 coarse grid points
void FMeshTally::SetJMesh ( vector< double >  JMESH)
inline

Second coarse mesh grid.

For rectangular mesh, it defines the y-mesh grid. For cylindrical mesh, it defines the z-mesh grid !!! MEASURED FROM THE ORIGIN !!!

Parameters
JMESH: position of the 2nd coarse mesh grid
void FMeshTally::SetKFineGrid ( vector< int >  KINTS)

Third fine mesh grid bins.

This defines the number of point between 2 coarse grid points. By default, no subdivision of the coarse grid is done (i.e. KINTS=1 for all the coarse grid point). If it is given it must have exactly the same size than the KMESH vector

Parameters
KINTS: number of point between 2 coarse grid points
void FMeshTally::SetKMesh ( vector< double >  KMESH)

Third coarse mesh grid.

For rectangular mesh, it defines the z-mesh grid. For cylindrical mesh, it defines the theta-mesh grid : it is given in number of revolution, thus the last point value must be 1.

Parameters
KMESH: position of the 2nd coarse mesh grid
void FMeshTally::SetOrigin ( vector< double >  Origin)
inline

Set the FMeshTally origin.

This method is mandatory and MUST be called.

Parameters
Origin: coordinates of the bottom, left, behind for rectangular mesh or the bottom center for cylindrical mesh

Member Data Documentation

vector<double> FMeshTally::fAxis
private

Axis coordinates of a cylindrical mesh.

bool FMeshTally::fIfineGrid
private

wether a fine grid is defined in i

vector<int> FMeshTally::fIINTS
private

First fine mesh grid bins.

vector<double> FMeshTally::fIMESH
private

First coarse mesh grid.

bool FMeshTally::fJfineGrid
private

wether a fine grid is defined in j

vector<int> FMeshTally::fJINTS
private

Second fine mesh grid bins.

vector<double> FMeshTally::fJMESH
private

Second coarse mesh grid.

bool FMeshTally::fKfineGrid
private

wether a fine grid is defined in k

vector<int> FMeshTally::fKINTS
private

Third fine mesh grid bins.

vector<double> FMeshTally::fKMESH
private

Third coarse mesh grid.

vector<double> FMeshTally::fOrigin
private

Origin of the mesh.

string FMeshTally::fParticle
private

TMeshTally type.

string FMeshTally::fType
private

TMeshTally type.

vector<double> FMeshTally::fVector
private

theta axis reference of a cylindrical mesh


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

MURE Project, documentation generated by Doxygen 1.8.5 - Mon Nov 17 2014