CLASS
5.1
Fuel Cycle Simulator
|
Determines how to build a fresh fuel. More...
#include <EQ_OneParameter.hxx>
Public Member Functions | |
void | BookTMVAReader () |
vector< float > | CreateTMVAInput (IsotopicVector TheFreshfuel, double ThisTime) |
Create input tmva tree to be read by ExecuteTMVA. More... | |
double | CalculateTargetParameter (IsotopicVector TheFuel, string TargetParameterName) |
Get a fuel parameter associated to the fuel —> ex : BurnUpMax, keffBOC, keffEOC, ... More... | |
double | CalculateBurnUpMax (IsotopicVector TheFuel, map< string, double > ModelParameter) |
Calculate the BU max associated to a fuel composition based on MLP prediction (suitable for PWR) More... | |
double | CalculateKeffAtBOC (IsotopicVector TheFuel) |
Calculate the keff at BOC associated to a fuel composition based on MLP prediction (suitable for SFR) More... | |
string | GetTMVAXMLFilePath () |
string | GetTMVANFOFilePath () |
void | SetTMVAXMLFilePath (string TMVAXMLFilePath) |
void | SetTMVANFOFilePath (string TMVANFOFilePath) |
Constructor/Desctructor | |
EQ_OneParameter (string TMVAXMLFilePath, string TMVANFOFilePath) | |
Default constructor with path. More... | |
EQ_OneParameter (CLASSLogger *log, string TMVAXMLFilePath, string TMVANFOFilePath) | |
Logger constructor with path. More... | |
EQ_OneParameter (string TMVANFOFilePath) | |
Default constructor without Eq Model. More... | |
EQ_OneParameter (CLASSLogger *log, string TMVANFOFilePath) | |
Logger constructor Without Eq Model. More... | |
virtual | ~EQ_OneParameter () |
Destructor. More... | |
Fuel Construction Method | |
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) |
BuildFuel function. More... | |
Get/Set Method | |
int | GetStreamListNumber () |
int | GetMaxIterration () const |
Max iterration in build fueld algorythm. More... | |
double | GetTargetParameterStDev () |
Get the precision on fTargetParameterStDev. More... | |
double | GetStreamListEqMMassFractionMax (string keyword) |
double | GetStreamListEqMMassFractionMin (string keyword) |
double | GetPCMPrecision () |
Get the precision on ![]() | |
void | SetModelParameter (string sMP, double dMP) |
Set Model Parameters precised in NFO file. More... | |
map< string, double > | GetModelParameter () |
Get Model Parameters precised in NFO file. More... | |
void | SetNonZaiTMVAVariable (string snZP, double dnZP) |
Set NonZaiTMVAVariables. More... | |
vector< pair< double, string > > | GetNonZaiTMVAVariables () |
Get NonZaiTMVAVariables. More... | |
void | SetMaxIterration (int val) |
Max iteration in build fuel algorithm. More... | |
void | SetTargetParameterStDev (double TPSD) |
Set the precision on Target Parameter. More... | |
void | SetStreamListEqMMassFractionMax (string keyword, double value) |
void | SetStreamListEqMMassFractionMin (string keyword, double value) |
void | SetPCMPrecision (double pcm) |
Set the precision on ![]() | |
Time <-> Burnup conversion | |
double | SecondToBurnup (double Second) |
double | BurnupToSecond (double BurnUp) |
![]() | |
map< string, IsotopicVector > | GetAllStreamList () |
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... | |
Reading NFO related Method | |
bool | fUseTMVAPredictor |
Bool that says if we need a TMVA predictor. If not, fuel fraction isimpoased by the FP. More... | |
map< string, double > | fStreamListEqMMassFractionMax |
Map that contains lists of stream according to the EqModel with mass maximum fraction. More... | |
map< string, double > | fStreamListEqMMassFractionMin |
Map that contains lists of stream according to the EqModel with mass minimum fraction. More... | |
string | fPredictorType |
Type of predictor used in Equivalence Model (ex: MLP) More... | |
string | fOutput |
Type of output calculated by the predictor. More... | |
string | fBuffer |
Name of material used as buffer in fuel. More... | |
map< string, double > | fModelParameter |
Map of equivalence model parameter. More... | |
vector< pair< double, string > > | fListOfNonZaiTMVAVariables |
map< ZAI, string > | fMapOfTMVAVariableNames |
!< List of TMVA input variable names that are not ZAIs More... | |
double | fTargetParameterStDev |
Precision on target parameter calculation. More... | |
double | fMaximalBU |
The Maximum burn-up of the model in GWd/t. More... | |
string | fTargetParameter |
Type of target parameter optimized in build fuel (ex. BUmax) More... | |
int | fMaxIterration |
Max iterrations in build fueld algorithm. More... | |
string | fTMVAXMLFilePath |
The weight needed by TMVA to construct and execute the multilayer perceptron. More... | |
string | fTMVANFOFilePath |
The weight needed by TMVA to construct and execute the multilayer perceptron. More... | |
CLASSReader * | fReader |
map< string, EQOP_MthPtr > | fKeyword |
map< ZAI, pair< double, double > > | fZAILimits |
Fresh fuel range : map<ZAI<min edge ,max edge >> More... | |
string | fInformationFile |
file containing Reactor Type, Fuel type, HM mass, Power, time vector, and TMVA input variables names (looks the manual for format details) More... | |
string | fDBFType |
Fuel Type (e.g MOX, UOX, ThU, ThPu ...) More... | |
string | fDBRType |
Reactor Type (e.g PWR, FBR-Na, ADS..) More... | |
void | ReadNFO () |
virtual void | ReadLine (string line) |
virtual void | LoadKeyword () |
void | ReadZAIlimits (const string &line) |
void | ReadType (const string &line) |
void | ReadZAIName (const string &line) |
ReadZAIName : read the zai name in the TMWA MLP model. More... | |
void | ReadMaxBurnUp (const string &line) |
ReadMaxBurnUp : read a guessed (very overestimated) maximum burnup a fuel can reach (purpose : algorithm initialization) More... | |
void | ReadSpecificPower (const string &line) |
ReadSpecificPower : read the Specific Power of the DataBase. More... | |
void | ReadTargetParameter (const string &line) |
ReadTargetParameter : type of target parameter optimized in build fuel (ex. BUmax) More... | |
void | ReadNonZaiTMVAVariables (const string &line) |
ReadNonZaiTMVAVariables : read the NonZai variables for the predictor (ex : Nbatch, Specific power) More... | |
void | ReadOutput (const string &line) |
ReadOutput : read the output type of the predictor (ex : kinf) More... | |
void | ReadBuffer (const string &line) |
ReadBuffer : read the Buffer material name in the fuel. More... | |
void | ReadModelParameter (const string &line) |
ReadModelParameter : read the name of equivalence model parameter. More... | |
void | ReadPredictorType (const string &line) |
ReadPredictorType: read the type of predictor used (ex : MLP) More... | |
void | ReadTargetParameterStDev (const string &line) |
ReadTargetParameterStDev: read the target parameter standard deviation. More... | |
void | PrintInfo () |
void | ReadList (const string &line) |
ReadFissil : read the zai name in the TMWA MLP model starts with "k_fissil" keyword. More... | |
void | ReadEqMaxFraction (const string &line) |
void | ReadEqMinFraction (const string &line) |
IsotopicVector | BuildFuelToTest (map< string, vector< double > > &lambda, map< string, vector< IsotopicVector > > const &StreamArray, double HMMass, map< string, bool > StreamListIsBuffer) |
void | CheckTargetParameterConsistency (map< int, string > StreamListPriority, map< string, double > TargetParameterMin, map< string, double > TargetParameterMax) |
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... | |
Determines how to build a fresh fuel.
Define an EQ_OneParameter. The aim of these class is to gather all the commum properties of all Equivalence Model.
EQ_OneParameter::EQ_OneParameter | ( | string | TMVAXMLFilePath, |
string | TMVANFOFilePath | ||
) |
Default constructor with path.
EQ_OneParameter::EQ_OneParameter | ( | CLASSLogger * | log, |
string | TMVAXMLFilePath, | ||
string | TMVANFOFilePath | ||
) |
Logger constructor with path.
EQ_OneParameter::EQ_OneParameter | ( | string | TMVANFOFilePath | ) |
Default constructor without Eq Model.
EQ_OneParameter::EQ_OneParameter | ( | CLASSLogger * | log, |
string | TMVANFOFilePath | ||
) |
Logger constructor Without Eq Model.
|
virtual |
Destructor.
void EQ_OneParameter::BookTMVAReader | ( | ) |
|
virtual |
BuildFuel function.
Build the fuel following the equivalance model with the proper requierment in term of mass, burnup....
double | burnup reached by the fuel at the end of irradiation |
double | HMMass, Heavy metal mass needed |
map | < string , vector <IsotopicVector> > StreamArray, the string is the stream code (fissile fertile ,...) the IsotopicVector the fraction of each IV to take in the (fissile, fertile,..) stock . |
Search for the minimum and maximum fraction of each material in fuel ///
Search for the fraction of each material in fuel ///
Reimplemented from EquivalenceModel.
IsotopicVector EQ_OneParameter::BuildFuelToTest | ( | map< string, vector< double > > & | lambda, |
map< string, vector< IsotopicVector > > const & | StreamArray, | ||
double | HMMass, | ||
map< string, bool > | StreamListIsBuffer | ||
) |
|
inline |
double EQ_OneParameter::CalculateBurnUpMax | ( | IsotopicVector | TheFuel, |
map< string, double > | ModelParameter | ||
) |
Calculate the BU max associated to a fuel composition based on MLP prediction (suitable for PWR)
double EQ_OneParameter::CalculateKeffAtBOC | ( | IsotopicVector | TheFuel | ) |
Calculate the keff at BOC associated to a fuel composition based on MLP prediction (suitable for SFR)
double EQ_OneParameter::CalculateTargetParameter | ( | IsotopicVector | TheFuel, |
string | TargetParameterName | ||
) |
Get a fuel parameter associated to the fuel —> ex : BurnUpMax, keffBOC, keffEOC, ...
void EQ_OneParameter::CheckTargetParameterConsistency | ( | map< int, string > | StreamListPriority, |
map< string, double > | TargetParameterMin, | ||
map< string, double > | TargetParameterMax | ||
) |
vector< float > EQ_OneParameter::CreateTMVAInput | ( | IsotopicVector | TheFreshfuel, |
double | ThisTime | ||
) |
Create input tmva tree to be read by ExecuteTMVA.
|
inline |
Max iterration in build fueld algorythm.
|
inline |
Get Model Parameters precised in NFO file.
|
inline |
Get NonZaiTMVAVariables.
|
inline |
Get the precision on prediction []. Neural network predictor constructors.
|
inline |
|
inline |
|
inline |
|
inline |
Get the precision on fTargetParameterStDev.
|
inline |
|
inline |
|
virtual |
void EQ_OneParameter::PrintInfo | ( | ) |
void EQ_OneParameter::ReadBuffer | ( | const string & | line | ) |
ReadBuffer : read the Buffer material name in the fuel.
line | : line suppossed to contain the Buffer information starts with "k_buffer" keyword |
void EQ_OneParameter::ReadEqMaxFraction | ( | const string & | line | ) |
void EQ_OneParameter::ReadEqMinFraction | ( | const string & | line | ) |
|
virtual |
void EQ_OneParameter::ReadList | ( | const string & | line | ) |
ReadFissil : read the zai name in the TMWA MLP model starts with "k_fissil" keyword.
line | : line suppossed to contain the fissil list |
void EQ_OneParameter::ReadMaxBurnUp | ( | const string & | line | ) |
ReadMaxBurnUp : read a guessed (very overestimated) maximum burnup a fuel can reach (purpose : algorithm initialization)
line | : line suppossed to contain the ZAI name starts with "k_maxburnup" keyword |
void EQ_OneParameter::ReadModelParameter | ( | const string & | line | ) |
ReadModelParameter : read the name of equivalence model parameter.
line | : line suppossed to contain the Buffer information starts with "k_modelparameter" keyword |
void EQ_OneParameter::ReadNFO | ( | ) |
void EQ_OneParameter::ReadNonZaiTMVAVariables | ( | const string & | line | ) |
ReadNonZaiTMVAVariables : read the NonZai variables for the predictor (ex : Nbatch, Specific power)
line | : line suppossed to contain the NonZai variables for TMVA starts with "k_nonZAIforTMVA" keyword |
void EQ_OneParameter::ReadOutput | ( | const string & | line | ) |
ReadOutput : read the output type of the predictor (ex : kinf)
line | : line suppossed to contain the Specific Power information starts with "k_output" keyword |
void EQ_OneParameter::ReadPredictorType | ( | const string & | line | ) |
ReadPredictorType: read the type of predictor used (ex : MLP)
line | : line suppossed to contain the Buffer information starts with "k_predictortype" keyword |
void EQ_OneParameter::ReadSpecificPower | ( | const string & | line | ) |
ReadSpecificPower : read the Specific Power of the DataBase.
line | : line suppossed to contain the Specific Power information starts with "k_specpower" keyword |
void EQ_OneParameter::ReadTargetParameter | ( | const string & | line | ) |
ReadTargetParameter : type of target parameter optimized in build fuel (ex. BUmax)
line | : line suppossed to contain the Target Parameter information starts with "k_targetparameter" keyword |
void EQ_OneParameter::ReadTargetParameterStDev | ( | const string & | line | ) |
ReadTargetParameterStDev: read the target parameter standard deviation.
line | : line suppossed to contain the Buffer information starts with "k_targetparameterstdev" keyword |
void EQ_OneParameter::ReadType | ( | const string & | line | ) |
void EQ_OneParameter::ReadZAIlimits | ( | const string & | line | ) |
void EQ_OneParameter::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 |
|
inline |
Max iteration in build fuel algorithm.
|
inline |
Set Model Parameters precised in NFO file.
void EQ_OneParameter::SetNonZaiTMVAVariable | ( | string | snZP, |
double | dnZP | ||
) |
Set NonZaiTMVAVariables.
|
inline |
Set the precision on prediction [pcm]. Neural network predictor constructors.
|
inline |
|
inline |
|
inline |
Set the precision on Target Parameter.
|
inline |
|
inline |
|
protected |
Name of material used as buffer in fuel.
|
protected |
Fuel Type (e.g MOX, UOX, ThU, ThPu ...)
|
protected |
Reactor Type (e.g PWR, FBR-Na, ADS..)
|
protected |
file containing Reactor Type, Fuel type, HM mass, Power, time vector, and TMVA input variables names (looks the manual for format details)
|
protected |
|
protected |
|
protected |
!< List of TMVA input variable names that are not ZAIs
List of TMVA input variable names (read from fMLPInformationFile ) , name depends on the training step
|
protected |
The Maximum burn-up of the model in GWd/t.
|
protected |
Max iterrations in build fueld algorithm.
|
protected |
Map of equivalence model parameter.
|
protected |
Type of output calculated by the predictor.
|
protected |
Type of predictor used in Equivalence Model (ex: MLP)
|
protected |
|
protected |
Map that contains lists of stream according to the EqModel with mass maximum fraction.
|
protected |
Map that contains lists of stream according to the EqModel with mass minimum fraction.
|
protected |
Type of target parameter optimized in build fuel (ex. BUmax)
|
protected |
Precision on target parameter calculation.
|
protected |
The weight needed by TMVA to construct and execute the multilayer perceptron.
|
protected |
The weight needed by TMVA to construct and execute the multilayer perceptron.
|
protected |
Bool that says if we need a TMVA predictor. If not, fuel fraction isimpoased by the FP.
|
protected |
Fresh fuel range : map<ZAI<min edge ,max edge >>