CLASS
5.1
Fuel Cycle Simulator
|
Defines an EquivalenceModel based on neural network to predict .
More...
#include <EQM_FBR_MLP_Keff.hxx>
Public Member Functions | |
map< string, double > | GetMolarFraction (map< string, IsotopicVector > IVStream, double BurnUp=0) |
Return the molar fissile fraction according fissile & ferile content using ![]() | |
Constructor | |
EQM_FBR_MLP_Keff (string TMVAWeightPath, double keff_target=1.00, string InformationFile="") | |
EQM_FBR_MLP_Keff (CLASSLogger *log, string TMVAWeightPath, double keff_target=1.00, string InformationFile="") | |
Get/Set methods | |
void | SetPCMprecision (double pcm) |
Set the precision on ![]() | |
double | GetPCMprecision () |
Get the precision on ![]() | |
double | GetActualFissileContent () |
return Fissile content at iteration i More... | |
TMVA related methods | |
TTree * | CreateTMVAInputTree (IsotopicVector FreshFuel, double ThisTime) |
Create input tmva tree to be read by ExecuteTMVA. More... | |
double | ExecuteTMVA (TTree *theTree, bool IsTimeDependant) |
Execute the MLP according to the input tree created by CreateTMVAInputTree. More... | |
Reading NFO related Method | |
void | LoadKeyword () |
LoadKeyword() : make the correspondance between keyword and reading method. More... | |
void | ReadZAIName (const string &line) |
ReadZAIName : read the zai name in the TMWA MLP model. More... | |
void | ReadMaxFisContent (const string &line) |
ReadMaxFisContent : read a guessed (very overestimated) maximum fissile content (purpose : algorithm initialization) More... | |
void | ReadLine (string line) |
ReadLine : read a line. More... | |
![]() | |
map< string, IsotopicVector > | GetAllStreamList () |
virtual map< string, vector< double > > | BuildFuel (double BurnUp, double HMMass, map< string, vector< IsotopicVector > > StreamArray, map< string, double > StreamListMassFractionMin, map< string, double > StreamListMassFractionMax, map< int, string > StreamListPriority, map< string, bool > StreamListIsBuffer) |
double | SecondToBurnup (double Second) |
double | BurnupToSecond (double BurnUp) |
bool | isIVInDomain (IsotopicVector IV) |
void | StocksTotalMassCalculation (map< string, vector< IsotopicVector > > const &Stocks) |
void | ConvertMassToLambdaVector (string MaterialDenomination, vector< double > &lambda, double MaterialMassNeeded, vector< IsotopicVector > Stocks) |
EquivalenceModel () | |
Default constructor with path. More... | |
EquivalenceModel (CLASSLogger *log) | |
Logger constructor with path. More... | |
virtual | ~EquivalenceModel () |
Destructor. More... | |
![]() | |
CLASSObject () | |
Normal Constructor. More... | |
CLASSObject (CLASSLogger *log) | |
Log Constructor. More... | |
virtual CLASSObject * | Clone () |
Correct way to copy a CLASSObject in case of derivation. More... | |
void | SetLog (CLASSLogger *log) |
Set the CLASSLogger. More... | |
CLASSLogger * | GetLog () |
Return the Pointer to the Log. More... | |
Additional Inherited Members | |
![]() | |
void | SetLambdaToErrorCode (vector< double > &lambda) |
![]() | |
map< string, IsotopicVector > | fStreamList |
double | fSpecificPower |
The specific power in W/gHM (HM: heavy Metal) More... | |
map< string, EQM_MthPtr > | fKeyword |
bool | freaded |
map< ZAI, pair< double, double > > | fZAILimits |
Fresh fuel range : map<ZAI<min edge ,max edge >> More... | |
map< string, double > | fTotalMassInStocks |
Total mass in each vector of stock. More... | |
map< string, double > | fLambdaMax |
Total lambda of available stocks. More... | |
![]() | |
CLASSLogger * | fLog |
Pointer to the Log. More... | |
Defines an EquivalenceModel based on neural network to predict .
The aim of these class is to constuct a fuel from an equivalence model based on a Multi layer perceptron (MLP). This MLP aims to predict the Pu content such as it has to verify with
is often close to 1.0 but can be set by user. The wanted time is often either the begining of cycle or end of cycle. WantedTime can't be set by user since it is contain in the .xml file. Indeed this method suppose you have trained your MLP to predict the
either at BOC or EOC (or any other time)
EQM_FBR_MLP_Keff::EQM_FBR_MLP_Keff | ( | string | TMVAWeightPath, |
double | keff_target = 1.00 , |
||
string | InformationFile = "" |
||
) |
Create a EQM_FBR_MLP_Keff using Keffective at a given time (see class desctiption)
Create a EQM_FBR_MLP_Keff
TMVAWeightPath | : Path to the .xml file containing neural network informations for prediction of keff(t = tfixed) |
keff_target | : Wanted ![]() |
InformationFile | : Total path to the file containing time steps, fissile and ferile list (ante and post fabrication time cooling). Default is the same total path as TMVAWeightPath but extension is replaced by .nfo (see manual for format) |
The tmva weight
EQM_FBR_MLP_Keff::EQM_FBR_MLP_Keff | ( | CLASSLogger * | log, |
string | TMVAWeightPath, | ||
double | keff_target = 1.00 , |
||
string | InformationFile = "" |
||
) |
Create a EQM_FBR_MLP_Keff using Keffective at a given time (see class desctiption)
Create a EQM_FBR_MLP_Keff
log | CLASSLogger object to handle log messages |
TMVAWeightPath | : Path to the .xml file containing neural network informations for prediction of keff(t = tfixed) |
keff_target | : Wanted ![]() |
InformationFile | : Total path to the file containing time steps, fissile and ferile list (ante and post fabrication time cooling). Default is the same total path as TMVAWeightPath but extension is replaced by .nfo (see manual for format) |
The tmva weight
TTree * EQM_FBR_MLP_Keff::CreateTMVAInputTree | ( | IsotopicVector | FreshFuel, |
double | ThisTime | ||
) |
Create input tmva tree to be read by ExecuteTMVA.
double EQM_FBR_MLP_Keff::ExecuteTMVA | ( | TTree * | theTree, |
bool | IsTimeDependant | ||
) |
Execute the MLP according to the input tree created by CreateTMVAInputTree.
|
inline |
return Fissile content at iteration i
map< string, double > EQM_FBR_MLP_Keff::GetMolarFraction | ( | map< string, IsotopicVector > | IVStream, |
double | BurnUp = 0 |
||
) |
Return the molar fissile fraction according fissile & ferile content using prediction.
Fissil | : The composition of the fissile matter |
Fertil | : The composition of the Fertil matter |
BurnUp | : Maximum achievable burn up envisaged |
|
inline |
Get the precision on prediction []. Neural network predictor constructors.
void EQM_FBR_MLP_Keff::LoadKeyword | ( | ) |
LoadKeyword() : make the correspondance between keyword and reading method.
void EQM_FBR_MLP_Keff::ReadLine | ( | string | line | ) |
ReadLine : read a line.
line | : line to read |
void EQM_FBR_MLP_Keff::ReadMaxFisContent | ( | const string & | line | ) |
ReadMaxFisContent : read a guessed (very overestimated) maximum fissile content (purpose : algorithm initialization)
line | : line suppossed to contain the ZAI name starts with "k_zainame" keyword |
void EQM_FBR_MLP_Keff::ReadZAIName | ( | const string & | line | ) |
ReadZAIName : read the zai name in the TMWA MLP model.
line | : line suppossed to contain the ZAI name starts with "k_zainame" keyword |
|
inline |
Set the precision on prediction [pcm]. Neural network predictor constructors.