CLASS
5.1
Fuel Cycle Simulator
|
Stores fuel inventory evolution , mean cross sections evolution, flux evolution, power , ... More...
#include <EvolutionData.hxx>
Public Member Functions | |
Constructor/Desctructor | |
EvolutionData () | |
Normal DB Constructor. More... | |
EvolutionData (CLASSLogger *log) | |
CLASSLogger Constructor. More... | |
EvolutionData (CLASSLogger *log, string DB_file, bool isDecay=false, ZAI zai=ZAI(0, 0, 0)) | |
Special Constructor. More... | |
EvolutionData (bool oldread, CLASSLogger *log, string DB_file, bool isDecay=false, ZAI zai=ZAI(0, 0, 0)) | |
Special Constructor. More... | |
~EvolutionData () | |
Normal Destructor. More... | |
void | DeleteEvolutionData () |
Delete the EvolutionData. More... | |
void | DeleteEvolutionDataCopy () |
Set Method | |
void | SetHeavyMetalMass (double Mass) |
Set the heavy metal Mass [t]. More... | |
void | SetReactorType (string reactortype) |
Set the reactor type (e.g PWR, FBR-Na,...) More... | |
void | SetFuelType (string fueltype) |
Set the fuel type (e.g MOX,UOX,...) More... | |
void | SetPower (double power) |
Set the power of the EvolutionData [W]. More... | |
void | SetFlux (TGraph *flux) |
Set the neutron flux of the EvolutionData [cm^{-2}.s^{-1}]. More... | |
void | SetKeff (TGraph *keff) |
Set the keff evolution for the EvolutionData. More... | |
void | SetCycleTime (cSecond cycletime) |
Set cycletime of the EvolutionData [s]. More... | |
void | SetInventoryEvolution (map< ZAI, TGraph *> maptoinsert) |
Set EvolutionData map. More... | |
void | SetFissionXS (map< ZAI, TGraph *> maptoinsert) |
Set fission cross section map. More... | |
void | SetCaptureXS (map< ZAI, TGraph *> maptoinsert) |
Set capture cross section map. More... | |
void | Setn2nXS (map< ZAI, TGraph *> maptoinsert) |
Set (n,2n) cross section map. More... | |
void | Print (string filename) |
Print EvolutionData in a .dat format in a file of Name filename. More... | |
Get Method | |
map< ZAI,TGraph *> | GetInventoryEvolution () const |
return the EvolutionData map More... | |
map< ZAI,TGraph *> | GetFissionXS () const |
return the fission cross section map More... | |
map< ZAI,TGraph *> | GetCaptureXS () const |
return the capture cross section map More... | |
map< ZAI,TGraph *> | Getn2nXS () const |
return the (n,2n) cross section map More... | |
TGraph * | GetKeff () const |
return the evolution of the keff (TGraph*) More... | |
TGraph * | GetFlux () const |
return the evolution of the neutron flux (TGraph*) More... | |
double | GetFinalTime () const |
return the final time - last point (double) More... | |
double | GetCycleTime () const |
return the cycletime (double) More... | |
double | GetPower () const |
return the power (double) More... | |
string | GetDB_file () const |
return the name of the Database file (string) More... | |
string | GetReactorType () const |
return the type of reactor (string) More... | |
TGraph * | GetEvolutionTGraph (const ZAI &zai) |
return the evolution of the ZAI quantity (TGraph*) More... | |
IsotopicVector | GetIsotopicVectorAt (double t) |
Return the Product IsotopicVector at time t. More... | |
double | GetHeavyMetalMass () const |
Return the heavy metal mass in the core at the begining of the cycle [t]. More... | |
double | GetXSForAt (double t, ZAI zai, int ReactionId) |
Return the XS for a reactionId on zai at t time. More... | |
Insertion Method | |
bool | NucleiInsert (pair< ZAI, TGraph *> zaitoinsert) |
Add a nuclei evolution to the evolution map. More... | |
bool | FissionXSInsert (pair< ZAI, TGraph *> zaitoinsert) |
Add a nuclei to the fission cross section map. More... | |
bool | CaptureXSInsert (pair< ZAI, TGraph *> zaitoinsert) |
Add a nuclei to the capture cross section map. More... | |
bool | n2nXSInsert (pair< ZAI, TGraph *> zaitoinsert) |
Add a nuclei to the (n,2n) cross section map. 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... | |
Protected Member Functions | |
void | OldReadDB (string DBfile) |
Read old format database. More... | |
void | ReadDB (string DBfile, bool oldread=false) |
Main function to read database. More... | |
void | ReadKeff (string line, double *time, int NTimeStep) |
Read the Keff in the database. More... | |
void | ReadFlux (string line, double *time, int NTimeStep) |
Read the Flux in the database. More... | |
void | ReadInv (string line, double *time, int NTimeStep) |
Read the Inventory evolution in the database. More... | |
void | ReadXSFis (string line, double *time, int NTimeStep) |
Read the fission cross section evolution in the database. More... | |
void | ReadXSCap (string line, double *time, int NTimeStep) |
Read the capture cross evolution in the database. More... | |
void | ReadXSn2n (string line, double *time, int NTimeStep) |
Read the (n,2n) cross evolution in the database. More... | |
void | ReadInfo () |
Read the info file of the database. More... | |
double | Interpolate (double t, TGraph &EvolutionGraph) |
Interpolating the value of EvolutionGraph at the t time. More... | |
void | AddAsStable (ZAI zai) |
Use when adding an EvolutionData of a stable nuclei (for "non" decay) More... | |
ClassDef (EvolutionData, 0) | |
Protected Attributes | |
string | fDB_file |
map< ZAI,TGraph *> | fInventoryEvolution |
!< path to the DataBase file More... | |
map< ZAI,TGraph *> | fFissionXS |
fission cross section map More... | |
map< ZAI,TGraph *> | fCaptureXS |
capture cross section map More... | |
map< ZAI,TGraph *> | fn2nXS |
(n,2n) cross section map More... | |
TGraph * | fKeff |
Keff evolution. More... | |
TGraph * | fFlux |
Flux evolution. More... | |
cSecond | fFinalTime |
time of the last point More... | |
bool | fIsCrossSection |
true if some cross section are present in the database More... | |
bool | fisDecay |
string | fReactorType |
Type of reactor. More... | |
string | fFuelType |
Type of fuel. More... | |
double | fPower |
Power in W. More... | |
double | fCycleTime |
Cycle time of the DataBase. More... | |
double | fHeavyMetalMass |
Cycle time of the DataBase. More... | |
![]() | |
CLASSLogger * | fLog |
Pointer to the Log. More... | |
Stores fuel inventory evolution , mean cross sections evolution, flux evolution, power , ...
Define an EvolutionData. The aim of these class is to describe the evolution of a single evoluting system in CLASS. The system can either be a fuel evolution trough irradiation or a nuclei which produce, trough its decay, a large nuclei tree.
The nuclei tree resulting of the evolution are stored in a map of ZAI and TGraph, each TGraph correspond to the evolution of the quantity of the associeted ZAI.
EvolutionData::EvolutionData | ( | ) |
Normal DB Constructor.
EvolutionData::EvolutionData | ( | CLASSLogger * | log | ) |
CLASSLogger Constructor.
Use create an empty EvolutionData loading a CLASSLogger
log | : used for the log.Make a new Evolutive Product evolution |
EvolutionData::EvolutionData | ( | CLASSLogger * | log, |
string | DB_file, | ||
bool | isDecay = false , |
||
ZAI | zai = ZAI(0,0,0) |
||
) |
Special Constructor.
Make a new EvolutionData
log | : used for the log. |
DB_file | path to the DataBase file |
oldread | true if the oldmethod should be use to read the DatBase File (deprecated) |
zai | set the ZAI if you want to add a stable nuclei. |
EvolutionData::EvolutionData | ( | bool | oldread, |
CLASSLogger * | log, | ||
string | DB_file, | ||
bool | isDecay = false , |
||
ZAI | zai = ZAI(0,0,0) |
||
) |
Special Constructor.
Make a new EvolutionData
log | : used for the log. |
DB_file | path to the DataBase file |
oldread | true if the oldmethod should be use to read the DatBase File (deprecated) |
zai | set the ZAI if you want to add a stable nuclei. |
EvolutionData::~EvolutionData | ( | ) |
Normal Destructor.
Only remove the map without deleting the pointer to TGraph... One need to call the DeleteEvolutionData() method to fully delete the EvolutionData, and then avoiding memory leak...
|
protected |
Use when adding an EvolutionData of a stable nuclei (for "non" decay)
bool EvolutionData::CaptureXSInsert | ( | pair< ZAI, TGraph *> | zaitoinsert | ) |
Add a nuclei to the capture cross section map.
|
protected |
void EvolutionData::DeleteEvolutionData | ( | ) |
Delete the EvolutionData.
Use to fully delete the EvolutionData and all associeted TGraph. In some case needed to be called to avoid memory leaks.
void EvolutionData::DeleteEvolutionDataCopy | ( | ) |
bool EvolutionData::FissionXSInsert | ( | pair< ZAI, TGraph *> | zaitoinsert | ) |
Add a nuclei to the fission cross section map.
|
inline |
return the capture cross section map
|
inline |
return the cycletime (double)
|
inline |
return the name of the Database file (string)
TGraph * EvolutionData::GetEvolutionTGraph | ( | const ZAI & | zai | ) |
return the evolution of the ZAI quantity (TGraph*)
|
inline |
return the final time - last point (double)
|
inline |
return the fission cross section map
|
inline |
return the evolution of the neutron flux (TGraph*)
|
inline |
Return the heavy metal mass in the core at the begining of the cycle [t].
|
inline |
return the EvolutionData map
IsotopicVector EvolutionData::GetIsotopicVectorAt | ( | double | t | ) |
Return the Product IsotopicVector at time t.
|
inline |
return the evolution of the keff (TGraph*)
|
inline |
return the (n,2n) cross section map
|
inline |
return the power (double)
|
inline |
return the type of reactor (string)
double EvolutionData::GetXSForAt | ( | double | t, |
ZAI | zai, | ||
int | ReactionId | ||
) |
|
protected |
Interpolating the value of EvolutionGraph at the t time.
bool EvolutionData::n2nXSInsert | ( | pair< ZAI, TGraph *> | zaitoinsert | ) |
Add a nuclei to the (n,2n) cross section map.
bool EvolutionData::NucleiInsert | ( | pair< ZAI, TGraph *> | zaitoinsert | ) |
Add a nuclei evolution to the evolution map.
|
protected |
Read old format database.
void EvolutionData::Print | ( | string | filename | ) |
Print EvolutionData in a .dat format in a file of Name filename.
|
protected |
Main function to read database.
|
protected |
Read the Flux in the database.
|
protected |
Read the info file of the database.
|
protected |
Read the Inventory evolution in the database.
|
protected |
Read the Keff in the database.
|
protected |
Read the capture cross evolution in the database.
|
protected |
Read the fission cross section evolution in the database.
|
protected |
Read the (n,2n) cross evolution in the database.
|
inline |
Set capture cross section map.
|
inline |
Set cycletime of the EvolutionData [s].
|
inline |
Set fission cross section map.
|
inline |
Set the neutron flux of the EvolutionData [cm^{-2}.s^{-1}].
|
inline |
Set the fuel type (e.g MOX,UOX,...)
|
inline |
Set the heavy metal Mass [t].
|
inline |
Set EvolutionData map.
|
inline |
Set the keff evolution for the EvolutionData.
|
inline |
Set (n,2n) cross section map.
|
inline |
Set the power of the EvolutionData [W].
|
inline |
Set the reactor type (e.g PWR, FBR-Na,...)
|
protected |
capture cross section map
|
protected |
Cycle time of the DataBase.
|
protected |
|
protected |
time of the last point
|
protected |
fission cross section map
|
protected |
Flux evolution.
|
protected |
Type of fuel.
|
protected |
Cycle time of the DataBase.
|
protected |
!< path to the DataBase file
evolution map
|
protected |
true if some cross section are present in the database
|
protected |
|
protected |
Keff evolution.
|
protected |
(n,2n) cross section map
|
protected |
Power in W.
|
protected |
Type of reactor.