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 | |
ZAI * | fZAI |
the ZAI More... | |
map< int,bool > | fList |
allow/disable Reaction list. More... | |
double | fReactionThreshold |
Threshold for the ratio ![]() | |
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... | |
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).
ReactionList::ReactionList | ( | ZAI * | zai | ) |
Normal Constructor.
zai | : the ZAI to which it refers |
ReactionList::~ReactionList | ( | ) |
Normal destructor.
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.
|
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,...)
reaction_code | : ENDF reaction code |
|
inline |
Set the N_2alpha to state.
|
inline |
Set the N_2N to state.
|
inline |
Set the N_2N2alpha to state.
|
inline |
Set the N_2Nalpha to state.
|
inline |
Set the N_2Nd to state.
|
inline |
Set the N_2Np to state.
|
inline |
Set the N_2p to state.
|
inline |
Set the N_3alpha to state.
|
inline |
Set the N_3N to state.
|
inline |
Set the N_3Nalpha to state.
|
inline |
Set the N_3Np to state.
|
inline |
Set the N_4N to state.
|
inline |
Set the N_alpha to state.
|
inline |
Set the N_d to state.
|
inline |
Set the N_d2alpha to state.
|
inline |
Set the N_dalpha to state.
|
inline |
Set the N_fission to state.
|
inline |
Set the N_gamma to state.
|
inline |
Set the N_He3 to state.
|
inline |
Set the N_N2alpha to state.
|
inline |
Set the N_N2p to state.
|
inline |
Set the N_N3alpha to state.
|
inline |
Set the N_Nalpha to state.
|
inline |
Set the N_Nd to state.
|
inline |
Set the N_Nd2alpha to state.
|
inline |
Set the N_NHe3 to state.
|
inline |
Set the N_Np to state.
|
inline |
Set the N_Npalpha to state.
|
inline |
Set the N_Nt to state.
|
inline |
Set the N_Nt2alpha to state.
|
inline |
Set the N_p to state.
|
inline |
Set the N_palpha to state.
|
inline |
Set the N_pd to state.
|
inline |
Set the N_pt to state.
|
inline |
Set the N_t to state.
|
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 , where
and
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.
|
inline |
Set the reaction ratio threshold.
void ReactionList::WriteReactionList | ( | int | other_isomer | ) |
write reaction list in binary to speed up detection
|
protected |
allow/disable Reaction list.
|
staticprotected |
size of fReactionArray & fReactionName
|
staticprotected |
ENDF code for reaction (used as index of fList)
|
protected |
binary ReactionList dir name
|
staticprotected |
Reaction Name (e.g., N_2N)
|
protected |
Threshold for the ratio .
|
protected |
XSDIR file.
|
protected |
XSDIR file name.