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

Reactions to take into account for evolution of a given nucleus. More...

#include <ReactionList.hxx>

Public Member Functions

 ReactionList (ZAI *zai)
 Normal Constructor. More...
 
 ~ReactionList ()
 Normal destructor. More...
 
Reaction list methods

They are used to choose which reactions are allowed

void FindReactions ()
 Find the reaction list. More...
 
void SetReactionListDir (string str="ReactionList")
 Set the directory where binary reaction list files are store. More...
 
void SetReactionThreshold (double sigma=1e-2)
 Set the reaction ratio threshold. More...
 
void InitAll (bool state)
 Set all reactions to state. More...
 
void InitJon ()
 Simple Initialization of te reactions (debug only) More...
 
void InitFissionTest ()
 Simple Initialization of te reactions (debug only) More...
 
void InitFrancoTest ()
 Ultra Simple Initialization of reactions (debug only) More...
 
void InitU5Only ()
 Only n,gamma on U5 (debug only) More...
 
void InitPTO ()
 Initialization of the reactions according to autodetection. More...
 
void ReactionAutoDetection ()
 Auto detection of reactions that will be used in evolution using ENDF file. More...
 
Set/Get individual reaction allowed
void N_fission (bool state=true)
 Set the N_fission to state. More...
 
void N_gamma (bool state=true)
 Set the N_gamma to state. More...
 
void N_2N (bool state=true)
 Set the N_2N to state. More...
 
void N_3N (bool state=true)
 Set the N_3N to state. More...
 
void N_4N (bool state=true)
 Set the N_4N to state. More...
 
void N_p (bool state=true)
 Set the N_p to state. More...
 
void N_d (bool state=true)
 Set the N_d to state. More...
 
void N_t (bool state=true)
 Set the N_t to state. More...
 
void N_He3 (bool state=true)
 Set the N_He3 to state. More...
 
void N_alpha (bool state=true)
 Set the N_alpha to state. More...
 
void N_Np (bool state=true)
 Set the N_Np to state. More...
 
void N_Nd (bool state=true)
 Set the N_Nd to state. More...
 
void N_Nt (bool state=true)
 Set the N_Nt to state. More...
 
void N_NHe3 (bool state=true)
 Set the N_NHe3 to state. More...
 
void N_Nalpha (bool state=true)
 Set the N_Nalpha to state. More...
 
void N_2Np (bool state=true)
 Set the N_2Np to state. More...
 
void N_3Np (bool state=true)
 Set the N_3Np to state. More...
 
void N_2Nd (bool state=true)
 Set the N_2Nd to state. More...
 
void N_2Nalpha (bool state=true)
 Set the N_2Nalpha to state. More...
 
void N_3Nalpha (bool state=true)
 Set the N_3Nalpha to state. More...
 
void N_2p (bool state=true)
 Set the N_2p to state. More...
 
void N_2alpha (bool state=true)
 Set the N_2alpha to state. More...
 
void N_3alpha (bool state=true)
 Set the N_3alpha to state. More...
 
void N_N2p (bool state=true)
 Set the N_N2p to state. More...
 
void N_N2alpha (bool state=true)
 Set the N_N2alpha to state. More...
 
void N_N3alpha (bool state=true)
 Set the N_N3alpha to state. More...
 
void N_pd (bool state=true)
 Set the N_pd to state. More...
 
void N_pt (bool state=true)
 Set the N_pt to state. More...
 
void N_palpha (bool state=true)
 Set the N_palpha to state. More...
 
void N_dalpha (bool state=true)
 Set the N_dalpha to state. More...
 
void N_d2alpha (bool state=true)
 Set the N_d2alpha to state. More...
 
void N_t2alpha (bool state=true)
 Set the N_t2alpha to state. More...
 
void N_Npalpha (bool state=true)
 Set the N_Npalpha to state. More...
 
void N_2N2alpha (bool state=true)
 Set the N_2N2alpha to state. More...
 
void N_Nd2alpha (bool state=true)
 Set the N_Nd2alpha to state. More...
 
void N_Nt2alpha (bool state=true)
 Set the N_Nt2alpha to state. More...
 
bool IsReactionAllowed (int reaction_code)
 Retruns true if a reaction is used. More...
 
int GetReactionArray (int i)
 returns the ith value of fReactionArray More...
 
Miscellaneous methods
void WriteReactionList (int other_isomer)
 write reaction list in binary to speed up detection More...
 
void InitReactionArray ()
 Init static arrays (fReactionArray & fReactionName) More...
 
string Print ()
 Print all allowed reactions. More...
 
string PrintReaction (int reaction_code)
 Print reaction name (from the reaction_code) More...
 

Protected Attributes

ZAIfZAI
 the ZAI More...
 
map< int,bool > fList
 allow/disable Reaction list. More...
 
double fReactionThreshold
 Threshold for the ratio $\sigma_i/\sigma_{tot}$. More...
 
ifstream fXsdir
 XSDIR file. More...
 
string fXsdirName
 XSDIR file name. More...
 
string fReactionListDir
 binary ReactionList dir name More...
 

Static Protected Attributes

static int fN =36
 size of fReactionArray & fReactionName More...
 
static int * fReactionArray =0
 ENDF code for reaction (used as index of fList) More...
 
static string * fReactionName =0
 Reaction Name (e.g., N_2N) More...
 

Detailed Description

Reactions to take into account for evolution of a given nucleus.

First, try to find, in a binary file, if the reaction list for a ZAI has already been detected ; the file is stored locally in a directory name ReactionList and its name is Z.bin where Z is the atomic number of the ZAI. If it is not the case, using XSDIR file and the associated cross-section (in binary only) calculates the integral I over energy of cross-section for reaction i. If the I>fReactionThreshold then the reaction i will be taken into account in a future evolution (i.e., automatic tallies storing these cross-section reactions will be insert in MCNP input file).

Author
PTO
Version
0.1

Constructor & Destructor Documentation

ReactionList::ReactionList ( ZAI zai)

Normal Constructor.

Parameters
zai: the ZAI to which it refers
ReactionList::~ReactionList ( )

Normal destructor.

Member Function Documentation

void ReactionList::FindReactions ( )

Find the reaction list.

The function to call when using automatic=false in the constructor, else the constructor calls that function with default paths for Xsdir and binary rection list files.

int ReactionList::GetReactionArray ( int  i)
inline

returns the ith value of fReactionArray

void ReactionList::InitAll ( bool  state)

Set all reactions to state.

void ReactionList::InitFissionTest ( )

Simple Initialization of te reactions (debug only)

void ReactionList::InitFrancoTest ( )

Ultra Simple Initialization of reactions (debug only)

void ReactionList::InitJon ( )

Simple Initialization of te reactions (debug only)

void ReactionList::InitPTO ( )

Initialization of the reactions according to autodetection.

void ReactionList::InitReactionArray ( )

Init static arrays (fReactionArray & fReactionName)

void ReactionList::InitU5Only ( )

Only n,gamma on U5 (debug only)

bool ReactionList::IsReactionAllowed ( int  reaction_code)

Retruns true if a reaction is used.

ReactionId can be used for reaction code (kTotal=1,k_Fission=18,...)

Parameters
reaction_code: ENDF reaction code
void ReactionList::N_2alpha ( bool  state = true)
inline

Set the N_2alpha to state.

void ReactionList::N_2N ( bool  state = true)
inline

Set the N_2N to state.

void ReactionList::N_2N2alpha ( bool  state = true)
inline

Set the N_2N2alpha to state.

void ReactionList::N_2Nalpha ( bool  state = true)
inline

Set the N_2Nalpha to state.

void ReactionList::N_2Nd ( bool  state = true)
inline

Set the N_2Nd to state.

void ReactionList::N_2Np ( bool  state = true)
inline

Set the N_2Np to state.

void ReactionList::N_2p ( bool  state = true)
inline

Set the N_2p to state.

void ReactionList::N_3alpha ( bool  state = true)
inline

Set the N_3alpha to state.

void ReactionList::N_3N ( bool  state = true)
inline

Set the N_3N to state.

void ReactionList::N_3Nalpha ( bool  state = true)
inline

Set the N_3Nalpha to state.

void ReactionList::N_3Np ( bool  state = true)
inline

Set the N_3Np to state.

void ReactionList::N_4N ( bool  state = true)
inline

Set the N_4N to state.

void ReactionList::N_alpha ( bool  state = true)
inline

Set the N_alpha to state.

void ReactionList::N_d ( bool  state = true)
inline

Set the N_d to state.

void ReactionList::N_d2alpha ( bool  state = true)
inline

Set the N_d2alpha to state.

void ReactionList::N_dalpha ( bool  state = true)
inline

Set the N_dalpha to state.

void ReactionList::N_fission ( bool  state = true)
inline

Set the N_fission to state.

void ReactionList::N_gamma ( bool  state = true)
inline

Set the N_gamma to state.

void ReactionList::N_He3 ( bool  state = true)
inline

Set the N_He3 to state.

void ReactionList::N_N2alpha ( bool  state = true)
inline

Set the N_N2alpha to state.

void ReactionList::N_N2p ( bool  state = true)
inline

Set the N_N2p to state.

void ReactionList::N_N3alpha ( bool  state = true)
inline

Set the N_N3alpha to state.

void ReactionList::N_Nalpha ( bool  state = true)
inline

Set the N_Nalpha to state.

void ReactionList::N_Nd ( bool  state = true)
inline

Set the N_Nd to state.

void ReactionList::N_Nd2alpha ( bool  state = true)
inline

Set the N_Nd2alpha to state.

void ReactionList::N_NHe3 ( bool  state = true)
inline

Set the N_NHe3 to state.

void ReactionList::N_Np ( bool  state = true)
inline

Set the N_Np to state.

void ReactionList::N_Npalpha ( bool  state = true)
inline

Set the N_Npalpha to state.

void ReactionList::N_Nt ( bool  state = true)
inline

Set the N_Nt to state.

void ReactionList::N_Nt2alpha ( bool  state = true)
inline

Set the N_Nt2alpha to state.

void ReactionList::N_p ( bool  state = true)
inline

Set the N_p to state.

void ReactionList::N_palpha ( bool  state = true)
inline

Set the N_palpha to state.

void ReactionList::N_pd ( bool  state = true)
inline

Set the N_pd to state.

void ReactionList::N_pt ( bool  state = true)
inline

Set the N_pt to state.

void ReactionList::N_t ( bool  state = true)
inline

Set the N_t to state.

void ReactionList::N_t2alpha ( bool  state = true)
inline

Set the N_t2alpha to state.

string ReactionList::Print ( )

Print all allowed reactions.

string ReactionList::PrintReaction ( int  reaction_code)

Print reaction name (from the reaction_code)

void ReactionList::ReactionAutoDetection ( )

Auto detection of reactions that will be used in evolution using ENDF file.

This is based on the ratio of $\sigma_i/\sigma_{tot}$ , where $\sigma_i$ and $\sigma_{tot}$ are integral over energy of cross-section for reaction i and total cross-section respectively. If the r>fReactionThreshold then the reaction i will be taken into account

void ReactionList::SetReactionListDir ( string  str = "ReactionList")

Set the directory where binary reaction list files are store.

void ReactionList::SetReactionThreshold ( double  sigma = 1e-2)
inline

Set the reaction ratio threshold.

void ReactionList::WriteReactionList ( int  other_isomer)

write reaction list in binary to speed up detection

Member Data Documentation

map<int ,bool> ReactionList::fList
protected

allow/disable Reaction list.

int ReactionList::fN =36
staticprotected

size of fReactionArray & fReactionName

int * ReactionList::fReactionArray =0
staticprotected

ENDF code for reaction (used as index of fList)

string ReactionList::fReactionListDir
protected

binary ReactionList dir name

string * ReactionList::fReactionName =0
staticprotected

Reaction Name (e.g., N_2N)

double ReactionList::fReactionThreshold
protected

Threshold for the ratio $\sigma_i/\sigma_{tot}$.

ifstream ReactionList::fXsdir
protected

XSDIR file.

string ReactionList::fXsdirName
protected

XSDIR file name.

ZAI* ReactionList::fZAI
protected

the ZAI


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

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