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

Define a Tally Multiplicator entry (FM card in MCNP). More...

#include <Tally.hxx>

Public Member Functions

 TallyFM (Material *M, int reaction, double constant=1)
 
 TallyFM (Material *M, Reaction *R, double constant=1)
 
 TallyFM (int MatNumber, int reaction, double constant=1)
 
 TallyFM (int MatNumber, Reaction *R, double constant=1)
 Constructor of Multiplicator Bin. More...
 
 TallyFM (const TallyFM &fm)
 Copy constructor. More...
 
 ~TallyFM ()
 Destructor. More...
 
string Print ()
 Print a TallyFM. More...
 
int GetMaterial ()
 

Private Member Functions

void Init (int MatNumber, Reaction *R, double constant=1)
 Build a TallyFM. Called by constructors. More...
 

Private Attributes

double fConstant
 multiplicative constant of the FM More...
 
int fMatNumber
 Material Number of the FM. More...
 
ReactionfReaction
 Reaction of the FM. More...
 

Detailed Description

Define a Tally Multiplicator entry (FM card in MCNP).

Author
PTO
Version
1.0

Constructor & Destructor Documentation

TallyFM::TallyFM ( Material M,
int  reaction,
double  constant = 1 
)

Constructor of Multiplicator Bin. The Tally Multiplicator will be multiply by the parameter "constant". if constant<0 then constant is replaced by |constant|*(atom density of the cell where Tally is made). For example, if constant=-1 in a cell Flux Tally (F4), for a given reaction, the result will be the the macrosopic cross section * Flux, whereas if constant=1 this will be the microscopic cross section *Flux.

Parameters
M: the Material to consider for the reaction
reaction: a simple reaction code (-1=total, -6=fission,...)
constant: the multiplicative constant of the FM (see above). Default=1;
TallyFM::TallyFM ( Material M,
Reaction R,
double  constant = 1 
)

Constructor of Multiplicator Bin. The Tally Multiplicator will be multiply by the parameter "constant".

if constant<0 then constant is replaced by |constant|*(atom density of the cell where Tally is made).

For example, if constant=-1 in a cell Flux Tally (F4), for a given reaction, the result will be the the macrosopic cross section * Flux, whereas if constant=1 this will be the microscopic cross section *Flux.

Parameters
M: the Material to consider for the reaction
R: a Reaction
constant: the multiplicative constant of the FM (see above). Default=1;
TallyFM::TallyFM ( int  MatNumber,
int  reaction,
double  constant = 1 
)

Constructor of Multiplicator Bin. see description of TallyFM(Material *M,int reaction,double constant=1)

Parameters
MatNumber: the Material Number to consider for the reaction
reaction: a simple reaction code (-1=total, -6=fission,...)
constant: the multiplicative constant of the FM (see above). Default=1;
TallyFM::TallyFM ( int  MatNumber,
Reaction R,
double  constant = 1 
)

Constructor of Multiplicator Bin.

see description of TallyFM(Material *M,int reaction,double constant=1)

Parameters
MatNumber: the Material Number to consider for the reaction
R: a Reaction
constant: the multiplicative constant of the FM (see above). Default=1;
TallyFM::TallyFM ( const TallyFM fm)

Copy constructor.

TallyFM::~TallyFM ( )

Destructor.

Member Function Documentation

int TallyFM::GetMaterial ( )
inline
void TallyFM::Init ( int  MatNumber,
Reaction R,
double  constant = 1 
)
private

Build a TallyFM. Called by constructors.

string TallyFM::Print ( )

Print a TallyFM.

Member Data Documentation

double TallyFM::fConstant
private

multiplicative constant of the FM

int TallyFM::fMatNumber
private

Material Number of the FM.

Reaction* TallyFM::fReaction
private

Reaction of the FM.


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

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