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

Define a Time and/or Energy Grid for tallies. More...

#include <MCNPTimeEnergyGrid.hxx>

Inheritance diagram for MCNP::TimeEnergyGrid:
MureTimeEnergyGrid

Public Member Functions

 TimeEnergyGrid ()
 default constructor.
 
 TimeEnergyGrid (int Number)
 normal constructor.
 
 TimeEnergyGrid (const TimeEnergyGrid &other)=default
 Copy constructor.
 
TimeEnergyGridClone () override
 clone method
 
void Print (ofstream &Out) override
 Print the grid to serpent input file.
 
string GetName () override
 return the grid number as a string
 
- Public Member Functions inherited from MureTimeEnergyGrid
 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 ()
 

Additional Inherited Members

- Public Types inherited from MureTimeEnergyGrid
typedef pair< double, double > BinRange
 Min and Max value.
 
- Protected Attributes inherited from MureTimeEnergyGrid
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.

This is the real implementation to use instead of MureTimeEnergyGrid. It mainly redefine print method.

Author
J.Hajnrych
Version
1.0

Constructor & Destructor Documentation

◆ TimeEnergyGrid() [1/3]

MCNP::TimeEnergyGrid::TimeEnergyGrid ( )
inline

default constructor.

◆ TimeEnergyGrid() [2/3]

MCNP::TimeEnergyGrid::TimeEnergyGrid ( int  Number)
inline

normal constructor.

◆ TimeEnergyGrid() [3/3]

MCNP::TimeEnergyGrid::TimeEnergyGrid ( const TimeEnergyGrid other)
default

Copy constructor.

Member Function Documentation

◆ Clone()

TimeEnergyGrid * MCNP::TimeEnergyGrid::Clone ( )
inlineoverridevirtual

clone method

< clone method

Implements MureTimeEnergyGrid.

◆ GetName()

string MCNP::TimeEnergyGrid::GetName ( )
overridevirtual

return the grid number as a string

Implements MureTimeEnergyGrid.

◆ Print()

void MCNP::TimeEnergyGrid::Print ( ofstream &  Out)
overridevirtual

Print the grid to serpent input file.

Implements MureTimeEnergyGrid.


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

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