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

Define a MCNPX TMeshTally. More...

#include <MeshTally.hxx>

Inheritance diagram for TMeshTally:
MeshTally

Public Member Functions

 TMeshTally ()
 
 TMeshTally (const TMeshTally &mt)
 
MeshTallyClone ()
 
 ~TMeshTally ()
 
void AddMesh (string meshtype="rectangular", int type=1, string particle="N", string obs="flux")
 
void SetCorA (string cora)
 
void SetCorB (string corb)
 
void SetCorC (string corc)
 
void SetDoseParameter (int H=10, int InterpolationMethod=1, string Units="sievert", double NormFactor=1.0)
 
string Print ()
 Print a mesh tally. More...
 
- Public Member Functions inherited from MeshTally
 MeshTally ()
 
virtual ~MeshTally ()
 

Private Attributes

vector< int > fMeshType
 Vector that contains the geometry mesh type. More...
 
vector< int > fType
 Vector that contains all the define TMeshTally type. More...
 
vector< string > fMeshParticle
 Vector that contains all the define mesh particule. More...
 
vector< string > fMeshObs
 Vector that contains all the define mesh observable. More...
 
vector< string > fMeshcora
 Vector that contains all the define mesh cora. More...
 
vector< string > fMeshcorb
 Vector that contains all the define mesh corb. More...
 
vector< string > fMeshcorc
 Vector that contains all the define mesh corc. More...
 
int fH
 dose equivalent More...
 
int fInterpolationMethod
 fInterpolationMethod More...
 
int fDoseUnits
 1=(rem/h)/(particles/cm2-sec), 2=(sieverts/h)/(particles/cm2-sec) More...
 
double fNormFactor
 normalization factor for dose More...
 

Detailed Description

Define a MCNPX TMeshTally.

TMeshTally is a MCNPX & MCNP6 implementation of Mesh Tally.

Author
NT, PTO
Version
1.2

Constructor & Destructor Documentation

TMeshTally::TMeshTally ( )

Constructor of a TMeshTally.

TMeshTally::TMeshTally ( const TMeshTally mt)
TMeshTally::~TMeshTally ( )
inline

Member Function Documentation

void TMeshTally::AddMesh ( string  meshtype = "rectangular",
int  type = 1,
string  particle = "N",
string  obs = "flux" 
)

Defines a 3D mesh :

Parameters
meshtypeis the meshtally geometry type :
  • "rectangular"
  • "cylindrical"
  • "spherical"
typeis the TMeshTally types : 1 - track-averaged meshtally(type 1) 2 - source mesh tally (type 2) 3 - energy deposition mesh tally (type 3) 4 - DXTRAN mesh tally (type 3)
particle:
  • 'N' (Default) for neutron
  • 'E' for electron
  • 'P' for photon
  • 'H' for protons
obs:
  • If type = 1
    • "TRACKS" : tally the tracks through each mesh volumes
    • "FLUX" : tally the fluence
    • "DOSE" : energy dependent dose is tallied
    • "POPUL" : tally the population (track*weigth)
    • "PEDEP" : tally the energy deposition in each mesh volumes
  • If type = 3
    • TOTAL
    • DE/DX
    • RECOL ... See mcnpx documentation for details.
MeshTally* TMeshTally::Clone ( )
inlinevirtual

Reimplemented from MeshTally.

string TMeshTally::Print ( )
virtual

Print a mesh tally.

Reimplemented from MeshTally.

void TMeshTally::SetCorA ( string  cora)

set the first mesh coordinates.

for rectangular mesh, CorA are the locations of the planes perpendicular to x-axis ; for cylindrical & spherical mesh, CorA are the location of the radii mesh (it must start from 0 in case of cylindrical mesh).

Parameters
cora: list of coordinates passed as a string
void TMeshTally::SetCorB ( string  corb)

set the second mesh coordinates.

for rectangular mesh, CorB are the locations of the planes perpendicular to y-axis ; for cylindrical mesh, CorB are the locations of the planes perpendicular to z-axis and for spherical mesh, CorB are the location of the polar angle relative to z ; in the case it goes from theta>=0° to the last one which must be 180°.

Parameters
corb: list of coordinates passed as a string
void TMeshTally::SetCorC ( string  corc)

set the 3rd mesh coordinates.

for rectangular mesh, CorC are the locations of the planes perpendicular to z-axis ; for cylindrical mesh, CorC are the location of the positive angle relative to x-axis ; it must be in ]0,360] where the last bin must be 360° and the first bin is 0 (and thus the first theta should be >0). for spherical mesh, CorC are the location of the azimuthal angle phi relative to x ; in the case it goes from phi>0° to the last one which must be 360°.

Parameters
corc: list of coordinates passed as a string
void TMeshTally::SetDoseParameter ( int  H = 10,
int  InterpolationMethod = 1,
string  Units = "sievert",
double  NormFactor = 1.0 
)

set the dose parameter for TMeshTally.

Parameters
H: dose equivalent (10=ICPR-21 1971 (neutron & photon), 40=ICRP-74 1996 (neutron) - see MCNP doc
InterpolationMethod: interpolation method (1=log in E, lin in dose, 2= lin in E and dose)
Units: either "rem" or "sievert" which gives dose results respectively in "(rem/h)/(particles/cm2-sec)" and in "(sieverts/h)/(particles/cm2-sec)"
NormFactor: multiply the result by a factor (see MCNP doc)

Member Data Documentation

int TMeshTally::fDoseUnits
private

1=(rem/h)/(particles/cm2-sec), 2=(sieverts/h)/(particles/cm2-sec)

int TMeshTally::fH
private

dose equivalent

int TMeshTally::fInterpolationMethod
private

fInterpolationMethod

vector<string> TMeshTally::fMeshcora
private

Vector that contains all the define mesh cora.

vector<string> TMeshTally::fMeshcorb
private

Vector that contains all the define mesh corb.

vector<string> TMeshTally::fMeshcorc
private

Vector that contains all the define mesh corc.

vector<string> TMeshTally::fMeshObs
private

Vector that contains all the define mesh observable.

vector<string> TMeshTally::fMeshParticle
private

Vector that contains all the define mesh particule.

vector<int> TMeshTally::fMeshType
private

Vector that contains the geometry mesh type.

double TMeshTally::fNormFactor
private

normalization factor for dose

vector<int> TMeshTally::fType
private

Vector that contains all the define TMeshTally type.


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

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