CLASS
5.1
Fuel Cycle Simulator
|
Defines a XSModel getting mean cross sections from the closest EvolutionData. More...
#include <XSM_CLOSEST.hxx>
Public Member Functions | |
void | SetDistanceType (int DistanceType) |
Choose the way to calculate the distance between two isotopic vectors. More... | |
Constructor/Desctructor | |
XSM_CLOSEST (string DB_index_file, bool oldreadmethod=false) | |
normal constructor More... | |
XSM_CLOSEST (CLASSLogger *Log, string DB_index_file, bool oldreadmethod=false) | |
Logger constructor. More... | |
~XSM_CLOSEST () | |
Get Method | |
virtual EvolutionData | GetCrossSections (IsotopicVector isotopicvector, double t=0) |
Reason to live of this CLASS : Return the closest Evolutiondata. More... | |
vector< EvolutionData > | GetFuelDataBank () const |
Return the FuelDataBank. More... | |
string | GetDataBaseIndex () const |
Return the index Name. More... | |
string | GetFuelType () const |
Return the fuel type of the DB. More... | |
vector< double > | GetFuelParameter () const |
Return the Fuel parameters of the DB. More... | |
pair< double, double > | GetBurnUpRange () const |
Return the Burnup range of the DB. More... | |
bool | IsDefine (IsotopicVector IV) const |
True if the key is define, false instead. More... | |
map< double, int > | GetDistancesTo (IsotopicVector isotopicvector, double t=0) |
Set Method | |
Return a map containing the distance of each EvolutionData in the DataBase to the set IV at the time t | |
void | SetFuelDataBank (vector< EvolutionData > mymap) |
Set the FuelDataBank map. More... | |
void | SetDataBaseIndex (string database) |
Set the Name of the database index. More... | |
void | SetOldReadMethod (bool val) |
use the old reading method More... | |
void | SetWeightedDistanceCalculation (bool val=true) |
Set weighted distance calculation. More... | |
void | SetInventoryEvolutionInterpolation (bool val=true) |
void | SetDistanceParameter (IsotopicVector DistanceParameter) |
Define mannually the weight for each ZAI in the distance calculation. More... | |
Other Method | |
void | ReadDataBase () |
read the index file and fill the evolutionData map More... | |
void | CalculateDistanceParameter () |
Calcul of the weight for each ZAI in the distance calculation from the mean XS of the FuelDataBank. More... | |
![]() | |
void | ReadNFO () |
virtual void | ReadLine (string line) |
void | ReadZAIlimits (const string &line) |
void | ReadType (const string &line) |
void | ReadRParam (const string &line) |
virtual void | LoadKeyword () |
void | SetZAIThreshold (int Z_Threshold) |
Set the Z threshold : ZAI with Z < fZAIThreshold are not manage by CLASS. More... | |
int | GetZAIThreshold () |
Get the Z threshold. More... | |
XSModel () | |
Default constructor. More... | |
XSModel (CLASSLogger *log) | |
Logger constructor. More... | |
virtual | ~XSModel () |
Destructor. More... | |
virtual bool | isIVInDomain (IsotopicVector IV) |
Check either the IsotopicVector IV is in the validity domain of the models. 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 | |
![]() | |
bool | freaded |
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... | |
double | fDBPower |
Power of the data base (read from fMLPInformationFile ) More... | |
double | fDBHMMass |
Heavy metal mass of the data base (read from fMLPInformationFile ) More... | |
string | fDBFType |
Fuel Type (e.g MOX, UOX, ThU, ThPu ...) More... | |
string | fDBRType |
Reactor Type (e.g PWR, FBR-Na, ADS..) More... | |
map< ZAI, pair< double, double > > | fZAILimits |
Fresh fuel range : map<ZAI<min edge ,max edge >> More... | |
map< string, XSM_MthPtr > | fKeyword |
int | fZAIThreshold |
Z threshold for handling nuclei mean cross section (take only ZAI reaction of Z>= fZAIThresold) More... | |
![]() | |
CLASSLogger * | fLog |
Pointer to the Log. More... | |
Defines a XSModel getting mean cross sections from the closest EvolutionData.
Define a XSM_CLOSEST. Class to get cross sections from a set of pre-calculation (with MURE,or other depletion code). With this class, cross sections needed to solves Bateman equation come from an already performed depletion calculation contained in a set of many depletion calculations. The way to pick up these or these depletion calculation is related to a distance : The depletion calculation (or EvolutionData) the closest from the new fresh fuel composition is selected. Different distances are defined :
XSM_CLOSEST::XSM_CLOSEST | ( | string | DB_index_file, |
bool | oldreadmethod = false |
||
) |
normal constructor
Make a new XSM_CLOSEST
DB_index_file | : File listing the path of all depletion calculations (in EvolutionData format (.dat file) ) |
oldreadmethod | : |
XSM_CLOSEST::XSM_CLOSEST | ( | CLASSLogger * | Log, |
string | DB_index_file, | ||
bool | oldreadmethod = false |
||
) |
Logger constructor.
Make a new XSM_CLOSEST
log | : Use for the log |
DB_index_file | : File listing the path of all depletion calculations (in EvolutionData format (.dat file) ) |
oldreadmethod | : |
XSM_CLOSEST::~XSM_CLOSEST | ( | ) |
void XSM_CLOSEST::CalculateDistanceParameter | ( | ) |
Calcul of the weight for each ZAI in the distance calculation from the mean XS of the FuelDataBank.
|
inline |
Return the Burnup range of the DB.
|
virtual |
Reason to live of this CLASS : Return the closest Evolutiondata.
Implements XSModel.
|
inline |
Return the index Name.
map< double, int > XSM_CLOSEST::GetDistancesTo | ( | IsotopicVector | isotopicvector, |
double | t = 0 |
||
) |
|
inline |
Return the FuelDataBank.
|
inline |
Return the Fuel parameters of the DB.
|
inline |
Return the fuel type of the DB.
bool XSM_CLOSEST::IsDefine | ( | IsotopicVector | IV | ) | const |
True if the key is define, false instead.
void XSM_CLOSEST::ReadDataBase | ( | ) |
read the index file and fill the evolutionData map
|
inline |
Set the Name of the database index.
void XSM_CLOSEST::SetDistanceParameter | ( | IsotopicVector | DistanceParameter | ) |
Define mannually the weight for each ZAI in the distance calculation.
void XSM_CLOSEST::SetDistanceType | ( | int | DistanceType | ) |
|
inline |
Set the FuelDataBank map.
|
inline |
|
inline |
use the old reading method
|
inline |
Set weighted distance calculation.