MURE
Loading...
Searching...
No Matches
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)
 copy contructor
 
MeshTallyClone () override
 The "Virtual Copy Constructor".
 
 ~TMeshTally () override=default
 
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 () override
 Print a mesh tally.
 
- Public Member Functions inherited from MeshTally
 MeshTally ()
 
virtual MeshTallyClone ()=0
 The "Virtual Copy Constructor".
 
virtual ~MeshTally ()=default
 
virtual string Print ()
 

Private Attributes

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

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() [1/2]

TMeshTally::TMeshTally ( )

Constructor of a TMeshTally.

◆ TMeshTally() [2/2]

TMeshTally::TMeshTally ( const TMeshTally mt)

copy contructor

◆ ~TMeshTally()

TMeshTally::~TMeshTally ( )
overridedefault

Member Function Documentation

◆ AddMesh()

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.

◆ Clone()

MeshTally * TMeshTally::Clone ( )
inlineoverridevirtual

The "Virtual Copy Constructor".

< the Clone method

Implements MeshTally.

◆ Print()

string TMeshTally::Print ( )
overridevirtual

Print a mesh tally.

Reimplemented from MeshTally.

◆ SetCorA()

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

◆ SetCorB()

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

◆ SetCorC()

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

◆ SetDoseParameter()

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

◆ fDoseUnits

int TMeshTally::fDoseUnits
private

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

◆ fH

int TMeshTally::fH
private

dose equivalent

◆ fInterpolationMethod

int TMeshTally::fInterpolationMethod
private

fInterpolationMethod

◆ fMeshcora

vector< string > TMeshTally::fMeshcora
private

Vector that contains all the define mesh cora.

◆ fMeshcorb

vector< string > TMeshTally::fMeshcorb
private

Vector that contains all the define mesh corb.

◆ fMeshcorc

vector< string > TMeshTally::fMeshcorc
private

Vector that contains all the define mesh corc.

◆ fMeshObs

vector< string > TMeshTally::fMeshObs
private

Vector that contains all the define mesh observable.

◆ fMeshParticle

vector< string > TMeshTally::fMeshParticle
private

Vector that contains all the define mesh particule.

◆ fMeshType

vector< int > TMeshTally::fMeshType
private

Vector that contains the geometry mesh type.

◆ fNormFactor

double TMeshTally::fNormFactor
private

normalization factor for dose

◆ fType

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.9.7 - Fri Jan 19 2024