Define a MCNPX TMeshTally.
More...
#include <MeshTally.hxx>
Define a MCNPX TMeshTally.
TMeshTally is a MCNPX & MCNP6 implementation of Mesh Tally.
- Author
- NT, PTO
- Version
- 1.2
TMeshTally::TMeshTally |
( |
| ) |
|
TMeshTally::~TMeshTally |
( |
| ) |
|
|
inline |
void TMeshTally::AddMesh |
( |
string |
meshtype = "rectangular" , |
|
|
int |
type = 1 , |
|
|
string |
particle = "N" , |
|
|
string |
obs = "flux" |
|
) |
| |
Defines a 3D mesh :
- Parameters
-
meshtype | is the meshtally geometry type :
- "rectangular"
- "cylindrical"
- "spherical"
|
type | is 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.
|
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) |
int TMeshTally::fDoseUnits |
|
private |
1=(rem/h)/(particles/cm2-sec), 2=(sieverts/h)/(particles/cm2-sec)
int TMeshTally::fInterpolationMethod |
|
private |
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: