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

Define a Simple Bin. More...

#include <Tally.hxx>

Inheritance diagram for SimpleBin:
TallyBin

Public Member Functions

 SimpleBin (const SimpleBin &b)
 Copy constructor. More...
 
 SimpleBin (Cell *C)
 Build a Simple Bin of type Cell. More...
 
 SimpleBin (Shape_ptr S)
 Build a Simple Bin of type Surface. More...
 
 SimpleBin (int universe)
 Build a Simple Bin based on the universe shorthand, for cell type only. More...
 
 SimpleBin ()
 Build a Simple Bin of type Surface, waiting for the AddSurface method to finish it. More...
 
TallyBinClone ()
 Clone method. More...
 
virtual ~SimpleBin ()
 Destructor. More...
 
void AddSurface (int num)
 Set the number of the surface for the above Constructor. More...
 
bool IsSimpleBin ()
 This is a SimpleBin. More...
 
string Print (int BeforeRparenthesis=0)
 Print the SimpleBin in MCNP. More...
 
string PrintVolume ()
 Print the SimpleBin Volume(s) for SD cards in MCNP. More...
 
bool IsInBin (int num)
 whether or not the cell/suface "num" is in the bin More...
 
- Public Member Functions inherited from TallyBin
 TallyBin (const TallyBin &b)
 Copy constructor. More...
 
 TallyBin ()
 Normal Construcator. More...
 
virtual ~TallyBin ()
 
virtual bool IsGroupBin ()
 if the TallyBin is a GroupBin More...
 
virtual bool IsLatticeBin ()
 
int GetCellType ()
 returns -1, 0, 1 in function of the bin type. More...
 
virtual bool NeedVolume ()
 
vector< double > GetVolume ()
 retruns the bin volume vector. More...
 
double GetVolume (int i)
 retruns the ith bin volume vector. More...
 
double GetSurface ()
 retruns the bin surface More...
 
int GetNumberOfVolume ()
 
void SetSurface (double S, bool Inc=false)
 Set the bin surface. More...
 
void SetVolume (double V, int i=0, bool Inc=false)
 set the bin volume of ith partial bin. More...
 
void SetBinVolume (vector< double > V)
 Set volume(s) to bin(s) More...
 

Private Attributes

vector< int > fBin
 the cell number or surface number(s) More...
 
vector< bool > fIsBinUniverse
 flag to know if an element of fBin corresponds to a universe More...
 

Additional Inherited Members

- Protected Member Functions inherited from TallyBin
 TallyBin (int celltype, vector< double > vol, double surf)
 used by Copy constructor of daugthers classes More...
 
- Protected Attributes inherited from TallyBin
int fCellType
 type of the bin (-1=unknown, 0=surface, 1=cell) More...
 
vector< double > fVolume
 bin volume vector (1 value except for LatticeBin or Universe) More...
 
double fSurface
 bin surface More...
 

Detailed Description

Define a Simple Bin.

It could be either a Cell number or a Surface Number (in the latter case it could be a surface list if the Shape is defined by more than one surface.

Author
PTO
Version
1.0

Constructor & Destructor Documentation

SimpleBin::SimpleBin ( const SimpleBin b)

Copy constructor.

SimpleBin::SimpleBin ( Cell C)

Build a Simple Bin of type Cell.

SimpleBin::SimpleBin ( Shape_ptr  S)

Build a Simple Bin of type Surface.

SimpleBin::SimpleBin ( int  universe)

Build a Simple Bin based on the universe shorthand, for cell type only.

SimpleBin::SimpleBin ( )

Build a Simple Bin of type Surface, waiting for the AddSurface method to finish it.

virtual SimpleBin::~SimpleBin ( )
inlinevirtual

Destructor.

Member Function Documentation

void SimpleBin::AddSurface ( int  num)
inline

Set the number of the surface for the above Constructor.

TallyBin* SimpleBin::Clone ( )
inlinevirtual

Clone method.

Reimplemented from TallyBin.

bool SimpleBin::IsInBin ( int  num)
virtual

whether or not the cell/suface "num" is in the bin

Reimplemented from TallyBin.

bool SimpleBin::IsSimpleBin ( )
inlinevirtual

This is a SimpleBin.

Reimplemented from TallyBin.

string SimpleBin::Print ( int  BeforeRparenthesis = 0)
virtual

Print the SimpleBin in MCNP.

Reimplemented from TallyBin.

string SimpleBin::PrintVolume ( )
virtual

Print the SimpleBin Volume(s) for SD cards in MCNP.

Reimplemented from TallyBin.

Member Data Documentation

vector<int> SimpleBin::fBin
private

the cell number or surface number(s)

vector<bool> SimpleBin::fIsBinUniverse
private

flag to know if an element of fBin corresponds to a universe


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

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