Define a general MCNP Tally Bin (cell or surface).
More...
#include <Tally.hxx>
|
| TallyBin (int celltype, vector< double > vol, double surf) |
| used by Copy constructor of daugthers classes More...
|
|
Define a general MCNP Tally Bin (cell or surface).
This does not include Energy, Time,.. bins.
WARNING: The surface for surface bin is not fully implemented and yet not tested.
- See Also
- SimpleBin
-
GroupBin
-
LatticeBin
-
User Guide
- Author
- PTO
- Version
- 1.0
TallyBin::TallyBin |
( |
int |
celltype, |
|
|
vector< double > |
vol, |
|
|
double |
surf |
|
) |
| |
|
protected |
used by Copy constructor of daugthers classes
TallyBin::TallyBin |
( |
const TallyBin & |
b | ) |
|
virtual TallyBin::~TallyBin |
( |
| ) |
|
|
inlinevirtual |
int TallyBin::GetCellType |
( |
| ) |
|
|
inline |
returns -1, 0, 1 in function of the bin type.
-1 if the bin type is not known, 0 if it is a Surface bin and 1 if it is a Cell bin
int TallyBin::GetNumberOfVolume |
( |
| ) |
|
|
inline |
returns the number of volume
double TallyBin::GetSurface |
( |
| ) |
|
|
inline |
vector<double> TallyBin::GetVolume |
( |
| ) |
|
|
inline |
retruns the bin volume vector.
In general this vector contains only 1 elements (except for LatticeBin)
double TallyBin::GetVolume |
( |
int |
i | ) |
|
|
inline |
retruns the ith bin volume vector.
In general i=0 because the volume vector contains only 1 elements (except for LatticeBin)
virtual bool TallyBin::IsGroupBin |
( |
| ) |
|
|
inlinevirtual |
virtual bool TallyBin::IsInBin |
( |
int |
num | ) |
|
|
inlinevirtual |
virtual bool TallyBin::IsLatticeBin |
( |
| ) |
|
|
inlinevirtual |
virtual bool TallyBin::IsSimpleBin |
( |
| ) |
|
|
inlinevirtual |
virtual bool TallyBin::NeedVolume |
( |
| ) |
|
|
inlinevirtual |
True if Stochastic Volume/Surface calculation are needed.
virtual string TallyBin::Print |
( |
int |
BeforeRparenthesis = 0 | ) |
|
|
inlinevirtual |
string TallyBin::PrintVolume |
( |
| ) |
|
|
virtual |
void TallyBin::SetBinVolume |
( |
vector< double > |
V | ) |
|
void TallyBin::SetSurface |
( |
double |
S, |
|
|
bool |
Inc = false |
|
) |
| |
Set the bin surface.
If Inc=true then increment the Bin surface of S. In this case, if fSurface=-1, it is assume that no surface has been enter thus fSurface is set to S. If fSurface=-2, no incrementation is done: this means that surface for the whole bin (GroupBin) cannot be obtained.
- Parameters
-
S | : the value of the surface or of the increment depending on Inc |
Inc | : if false set fSurface to S, else increment fSurface of S (except if fSurface=-2) |
void TallyBin::SetVolume |
( |
double |
V, |
|
|
int |
i = 0 , |
|
|
bool |
Inc = false |
|
) |
| |
set the bin volume of ith partial bin.
If Inc=true then increment the Bin volume of V. In this case, if fVolume=-1, it is assume that no volume has been enter thus fVolume is set to V. If fVolume=-2, no incrementation is done: this means that volume for the whole bin (GroupBin) cannot be obtained.
- Parameters
-
V | : the value of the volume or of the increment depending on Inc |
i | : the ith partial bin for LatticeBin; i=0 for all other bin |
Inc | : if false set fVolume to V, else increment fVolume of V (except if fVolume=-2)set the bin volume of ith partial bin (i=0 except for LatticeBin. |
type of the bin (-1=unknown, 0=surface, 1=cell)
double TallyBin::fSurface |
|
protected |
vector<double> TallyBin::fVolume |
|
protected |
bin volume vector (1 value except for LatticeBin or Universe)
The documentation for this class was generated from the following files: