Define a MCNPX TMeshTally.
More...
#include <MeshTally.hxx>
Define a MCNPX TMeshTally.
FMeshTally is a MCNP5 & MCNP6 implementation of Mesh Tally.
- Author
- PTO
- Version
- 1.0
FMeshTally::FMeshTally |
( |
string |
meshtype = "rectangular" , |
|
|
string |
particle = "N" |
|
) |
| |
FMeshTally::~FMeshTally |
( |
| ) |
|
|
inline |
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 |
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 |
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 |
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 |
vector<double> FMeshTally::fOrigin |
|
private |
string FMeshTally::fParticle |
|
private |
vector<double> FMeshTally::fVector |
|
private |
theta axis reference of a cylindrical mesh
The documentation for this class was generated from the following files: