MURE
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Attributes | List of all members
MureTimeEnergyGrid Class Referenceabstract

Define a Time and/or Energy Grid for tallies (abstract class) More...

#include <MureTimeEnergyGrid.hxx>

Inheritance diagram for MureTimeEnergyGrid:
MCNP::TimeEnergyGrid Serpent::TimeEnergyGrid

Public Types

typedef pair< double, double > BinRange
 Min and Max value.
 

Public Member Functions

 MureTimeEnergyGrid ()
 default constructor.
 
 MureTimeEnergyGrid (int Number)
 normal constructor.
 
 MureTimeEnergyGrid (const MureTimeEnergyGrid &other)
 Copy constructor.
 
virtual MureTimeEnergyGridClone ()=0
 clone method
 
virtual ~MureTimeEnergyGrid ()
 destructor
 
void AddEnergy (double Energy)
 add Energy to the energy vector
 
void AddTime (double Time)
 add Time to the energy vector
 
void AddEnergy (int NumberOfBins, BinRange Range)
 add min and max value for the NumberOfBins bins (equally width bin)
 
void AddTime (int NumberOfBins, BinRange Range)
 add min and max value for the NumberOfBins bins (equally width bin)
 
virtual void Print (ofstream &Out)=0
 
virtual string GetName ()=0
 
vector< double > & GetEnergyBins ()
 
vector< double > & GetTimeBins ()
 
int GetEnergySize () const
 return either fNbinE or fEnergyBins.size()
 
int GetTimeSize () const
 return either fNbinT or fTimeBins.size()
 
int GetNumber () const
 
void SetNumber (int num)
 
void SetFirstBinUpperBound (bool flag)
 
bool IsFirstBinUpperBound ()
 
void SetEType (int type)
 
void SetTType (int type)
 
int GetEType ()
 
int GetTType ()
 

Protected Attributes

int fNumber
 the grid number
 
int fEType
 1=bin by bin, 2=equal bin width for E
 
int fTType
 1=bin by bin, 2=equal bin width for T
 
vector< double > fEnergyBins
 Energy (eV) grid values.
 
vector< double > fTimeBins
 time (s) grid values
 
bool fIsFirstBinUpperBound
 true if the first bin is a upper bound bin
 
int fNbinE
 number of energy bins
 
int fNbinT
 number of time bins
 

Detailed Description

Define a Time and/or Energy Grid for tallies (abstract class)

Author
J.Hajnrych
PTO
Version
1.0

Member Typedef Documentation

◆ BinRange

typedef pair< double, double > MureTimeEnergyGrid::BinRange

Min and Max value.

Constructor & Destructor Documentation

◆ MureTimeEnergyGrid() [1/3]

MureTimeEnergyGrid::MureTimeEnergyGrid ( )

default constructor.

◆ MureTimeEnergyGrid() [2/3]

MureTimeEnergyGrid::MureTimeEnergyGrid ( int  Number)

normal constructor.

◆ MureTimeEnergyGrid() [3/3]

MureTimeEnergyGrid::MureTimeEnergyGrid ( const MureTimeEnergyGrid other)

Copy constructor.

◆ ~MureTimeEnergyGrid()

MureTimeEnergyGrid::~MureTimeEnergyGrid ( )
virtual

destructor

Member Function Documentation

◆ AddEnergy() [1/2]

void MureTimeEnergyGrid::AddEnergy ( double  Energy)

add Energy to the energy vector

◆ AddEnergy() [2/2]

void MureTimeEnergyGrid::AddEnergy ( int  NumberOfBins,
BinRange  Range 
)

add min and max value for the NumberOfBins bins (equally width bin)

◆ AddTime() [1/2]

void MureTimeEnergyGrid::AddTime ( double  Time)

add Time to the energy vector

◆ AddTime() [2/2]

void MureTimeEnergyGrid::AddTime ( int  NumberOfBins,
BinRange  Range 
)

add min and max value for the NumberOfBins bins (equally width bin)

◆ Clone()

virtual MureTimeEnergyGrid * MureTimeEnergyGrid::Clone ( )
pure virtual

clone method

Implemented in MCNP::TimeEnergyGrid, and Serpent::TimeEnergyGrid.

◆ GetEnergyBins()

vector< double > & MureTimeEnergyGrid::GetEnergyBins ( )

◆ GetEnergySize()

int MureTimeEnergyGrid::GetEnergySize ( ) const

return either fNbinE or fEnergyBins.size()

◆ GetEType()

int MureTimeEnergyGrid::GetEType ( )
inline

< return the grid type

◆ GetName()

virtual string MureTimeEnergyGrid::GetName ( )
pure virtual

◆ GetNumber()

int MureTimeEnergyGrid::GetNumber ( ) const

◆ GetTimeBins()

vector< double > & MureTimeEnergyGrid::GetTimeBins ( )

◆ GetTimeSize()

int MureTimeEnergyGrid::GetTimeSize ( ) const

return either fNbinT or fTimeBins.size()

◆ GetTType()

int MureTimeEnergyGrid::GetTType ( )
inline

< return the grid type

◆ IsFirstBinUpperBound()

bool MureTimeEnergyGrid::IsFirstBinUpperBound ( )
inline

< return whether or not the 1st bin is a upper bound of the bin

◆ Print()

virtual void MureTimeEnergyGrid::Print ( ofstream &  Out)
pure virtual

◆ SetEType()

void MureTimeEnergyGrid::SetEType ( int  type)
inline

< 1=bins are given in a vector, 2=equally width bin

◆ SetFirstBinUpperBound()

void MureTimeEnergyGrid::SetFirstBinUpperBound ( bool  flag)
inline

< set that the 1st bin is a upper bound (flag=true) or lower bound (flag=false)

◆ SetNumber()

void MureTimeEnergyGrid::SetNumber ( int  num)
inline

◆ SetTType()

void MureTimeEnergyGrid::SetTType ( int  type)
inline

< 1=bins are given in a vector, 2=equally width bin

Member Data Documentation

◆ fEnergyBins

vector< double > MureTimeEnergyGrid::fEnergyBins
protected

Energy (eV) grid values.

◆ fEType

int MureTimeEnergyGrid::fEType
protected

1=bin by bin, 2=equal bin width for E

◆ fIsFirstBinUpperBound

bool MureTimeEnergyGrid::fIsFirstBinUpperBound
protected

true if the first bin is a upper bound bin

◆ fNbinE

int MureTimeEnergyGrid::fNbinE
protected

number of energy bins

◆ fNbinT

int MureTimeEnergyGrid::fNbinT
protected

number of time bins

◆ fNumber

int MureTimeEnergyGrid::fNumber
protected

the grid number

◆ fTimeBins

vector< double > MureTimeEnergyGrid::fTimeBins
protected

time (s) grid values

◆ fTType

int MureTimeEnergyGrid::fTType
protected

1=bin by bin, 2=equal bin width for T


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

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