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

Define a Serpent Tally simple bin. More...

#include <SerpentTally.hxx>

Inheritance diagram for Serpent::SimpleBin:
MureSimpleBin MureTallyBin

Public Member Functions

 SimpleBin (const SimpleBin &b)
 Copy constructor.
 
 SimpleBin (Cell *C)
 Build a Simple Bin of type Cell.
 
 SimpleBin (PinCell *C, int layeridx)
 
 SimpleBin (Shape_ptr S)
 Build a Simple Bin of type Surface.
 
 SimpleBin (int universe)
 Build a Simple Bin based on the universe shorthand, for cell type only.
 
 SimpleBin ()
 
SimpleBinClone () override
 The "Virtual Copy Constructor".
 
string Print (int BeforeRparenthesis) override
 Print the Simple Bin (dummy)
 
- 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 Serpent Tally simple bin.

This redefines the Print method.

Author
J.Hajnrych
PTO
Version
1.0

Constructor & Destructor Documentation

◆ SimpleBin() [1/6]

Serpent::SimpleBin::SimpleBin ( const SimpleBin b)
default

Copy constructor.

◆ SimpleBin() [2/6]

Serpent::SimpleBin::SimpleBin ( Cell C)

Build a Simple Bin of type Cell.

◆ SimpleBin() [3/6]

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

◆ SimpleBin() [4/6]

Serpent::SimpleBin::SimpleBin ( Shape_ptr  S)

Build a Simple Bin of type Surface.

◆ SimpleBin() [5/6]

Serpent::SimpleBin::SimpleBin ( int  universe)

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

◆ SimpleBin() [6/6]

Serpent::SimpleBin::SimpleBin ( )

Member Function Documentation

◆ Clone()

SimpleBin * Serpent::SimpleBin::Clone ( )
inlineoverridevirtual

The "Virtual Copy Constructor".

< Clone method

< Clone method

Reimplemented from MureSimpleBin.

◆ Print()

string Serpent::SimpleBin::Print ( int  BeforeRparenthesis)
overridevirtual

Print the Simple Bin (dummy)

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