MURE
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MCNP::SimpleBin Class Reference

Define a MCNP Simple Bin. More...

#include <MCNPTally.hxx>

Inheritance diagram for MCNP::SimpleBin:
MureSimpleBin MureTallyBin

Public Member Functions

 SimpleBin ()
 default constructor.
 
 SimpleBin (const SimpleBin &b)=default
 Copy constructor.
 
SimpleBinClone () override
 The "Virtual Copy Constructor".
 
 SimpleBin (Cell *C)
 constructor for a Cell bin
 
 SimpleBin (PinCell *C, int layeridx)
 constructor for Cell bin from a PinCell layer
 
 SimpleBin (Shape_ptr S)
 constructor for a Surface bin
 
 SimpleBin (int universe)
 constructor for a universe bin
 
string Print (int BeforeRparenthesis=0) override
 Print the SimpleBin in MCNP.
 
- Public Member Functions inherited from MureSimpleBin
 MureSimpleBin (const MureSimpleBin &b)
 Copy constructor.
 
 MureSimpleBin (Cell *C)
 Build a Simple Bin of type Cell and set C to the bin.
 
 MureSimpleBin (PinCell *C, int layeridx)
 Build a Simple Bin of type Cell and set the layer idx of the PinCell to the bin.
 
 MureSimpleBin (Shape_ptr S)
 Build a Simple Bin of type Surface and put S to the bin.
 
 MureSimpleBin (int universe)
 Build a Simple Bin based on the universe shorthand, for cell type only.
 
 MureSimpleBin ()
 Build a Simple Bin of unknown type (the MureSimpleBin::Add() will decide).
 
MureTallyBinClone () override
 The "Virtual Copy Constructor".
 
 ~MureSimpleBin () override=default
 Destructor.
 
void Add (Shape_ptr S)
 Set a Shape_ptr to a Simple Bin (Surface tally)
 
void Add (Cell *C)
 Set a cell to a SimpleBin.
 
void Add (PinCell *C, int layeridx)
 Set a Pincell layer (or surrounding material) to a Simple Bin.
 
void Add (int universe)
 Set a univers to a Simple Bin (and store cells number where the universe is defined)
 
bool IsSimpleBin () override
 
string Print (int BeforeRparenthesis=0) override
 Print the Simple Bin (dummy)
 
string PrintVolume () override
 Print the Simple Bin Volume(s) for SD cards in MCNP or dv card in Serpent.
 
bool IsInBin (int num) override
 whether or not the universe "num" is in the bin
 
bool IsInBin (Cell *C) override
 whether or not the cell C is in the bin
 
bool IsInBin (Shape_ptr S) override
 whether or not the shape S is in the bin
 
int GetBinContent (int i)
 
double RescanVolume () override
 Reread bin and assign necessary volume when known.
 
CellGetCell ()
 
void UpdateTallyBinVolume () override
 Reread all bins and assign necessary volume.
 
- Public Member Functions inherited from MureTallyBin
 MureTallyBin (const MureTallyBin &b)
 Copy constructor.
 
 MureTallyBin ()
 Normal Construcator.
 
virtual ~MureTallyBin ()=default
 Destructor.
 
virtual MureTallyBinClone ()=0
 The "Virtual Copy Constructor".
 
virtual bool IsSimpleBin ()
 
virtual bool IsGroupBin ()
 
virtual bool IsLatticeBin ()
 
int GetType ()
 returns -1, 0, 1 or 2 in function of the bin type.
 
void SetType (int type)
 
bool IsSurfaceBin ()
 
bool IsCellBin ()
 
bool IsUniverseBin ()
 
virtual string Print (int BeforeRparenthesis=0)=0
 Print the MureTallyBin.
 
virtual string PrintVolume ()
 Print the Volume of the bin.
 
virtual bool NeedVolume ()
 
vector< double > GetVolume ()
 retruns the bin volume vector.
 
double GetVolume (int i)
 retruns the ith bin volume vector.
 
double GetSurface ()
 
int GetNumberOfVolume ()
 
void SetSurface (double S, bool Inc=false)
 Set the bin area.
 
void SetVolume (double V, int i=0, bool Inc=false)
 set the bin volume of ith partial bin.
 
virtual bool IsInBin (int num)
 
virtual bool IsInBin (Cell *C)
 
virtual bool IsInBin (Shape_ptr S)
 
void SetBinVolume (vector< double > V)
 Set volume(s) to bin(s)
 
virtual double RescanVolume ()
 
virtual void UpdateTallyBinVolume ()=0
 Reread all bins and assign necessary volume.
 
bool IsPinCellBin ()
 
void SetPinCellBin (bool flag)
 

Additional Inherited Members

- Protected Member Functions inherited from MureTallyBin
 MureTallyBin (int bintype, vector< double > vol, double surf)
 used by Copy constructor of daugthers classes
 
- Protected Attributes inherited from MureSimpleBin
CellfCell
 the Cell of a Cell type simple bin
 
Shape_ptr fShape
 the Shape of a Surface type simple bin
 
int fBin
 the Cell/Surface/Universe num contains in the tally bin
 
vector< int > fCellNumber
 Only use to store cell number for universe bin.
 
- Protected Attributes inherited from MureTallyBin
int fBinType
 type of the bin (-1=unknown, 0=surface, 1=cell, 2=universe)
 
vector< double > fVolume
 bin volume vector (1 value except for LatticeBin or Universe)
 
double fSurface
 bin surface
 
bool fIsPinCellBin
 if the cell type bin is from a PinCell
 

Detailed Description

Define a MCNP 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. This redefines the Print method.

Author
PTO
Version
1.0

Constructor & Destructor Documentation

◆ SimpleBin() [1/6]

MCNP::SimpleBin::SimpleBin ( )
inline

default constructor.

◆ SimpleBin() [2/6]

MCNP::SimpleBin::SimpleBin ( const SimpleBin b)
default

Copy constructor.

◆ SimpleBin() [3/6]

MCNP::SimpleBin::SimpleBin ( Cell C)
inline

constructor for a Cell bin

◆ SimpleBin() [4/6]

MCNP::SimpleBin::SimpleBin ( PinCell C,
int  layeridx 
)
inline

constructor for Cell bin from a PinCell layer

◆ SimpleBin() [5/6]

MCNP::SimpleBin::SimpleBin ( Shape_ptr  S)
inline

constructor for a Surface bin

◆ SimpleBin() [6/6]

MCNP::SimpleBin::SimpleBin ( int  universe)
inline

constructor for a universe bin

Member Function Documentation

◆ Clone()

SimpleBin * MCNP::SimpleBin::Clone ( )
inlineoverridevirtual

The "Virtual Copy Constructor".

< Clone method

Reimplemented from MureSimpleBin.

◆ Print()

string MCNP::SimpleBin::Print ( int  BeforeRparenthesis = 0)
overridevirtual

Print the SimpleBin in MCNP.

Reimplemented from MureSimpleBin.


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

MURE Project, documentation generated by Doxygen 1.9.7 - Fri Jan 19 2024