CLASS
5.1
Fuel Cycle Simulator
|
Defines a Storage object. More...
#include <Storage.hxx>
Public Member Functions | |
Constructor/Desctructor | |
Storage () | |
Normal Constructor. More... | |
Storage (CLASSLogger *log) | |
CLASSLogger Constructor. More... | |
Storage (CLASSLogger *log, DecayDataBank *evolutivedb) | |
Special Constructor. More... | |
~Storage () | |
Normal Destructor. More... | |
Storage specific methods | |
void | TakeFractionFromStock (int IVId, double fraction) |
Take a part from an IV in sotck;. More... | |
void | TakeFromStock (IsotopicVector isotopicvector) |
Take an entire IV from stock. More... | |
void | AddIV (IsotopicVector isotopicvector) |
Add an Isotopicvector to the IVArray. More... | |
void | AddToStock (IsotopicVector isotopicvector) |
Add an Isotopicvector to the IVArray if it is not empty. More... | |
void | RemoveEmptyStocks () |
delete the empty Isotopicvector(s) contained in IVArray More... | |
Evolution Method | |
void | Evolution (cSecond t) |
Perform the evolution until time t. More... | |
In/Out Method | |
void | Write (string filename, cSecond date=-1) |
Write the Isotope composition of all IsotopicVector stored. More... | |
Set Method | |
void | SetIsStorageType (bool val=true) |
Set the fIsStorage bool. More... | |
![]() | |
CLASSBackEnd (int type=0) | |
Default Constructor. More... | |
CLASSBackEnd (CLASSLogger *log, int type=0) | |
CLASSLogger Constructor. More... | |
CLASSBackEnd (CLASSLogger *log, cSecond cycletime, int type=0) | |
Cycle time Constructor. More... | |
void | UpdateInsideIV () |
std::vector< IsotopicVector > | GetIVArray () const |
Return the IsotopicVector Array. More... | |
std::vector< cSecond > | GetIVArrayArrivalTime () const |
Vector of arrival time of each IV in the CLASSBackEnd. More... | |
int | GetIVNumber () const |
Return the number of Isotopic Vector present in the CLASSBackEnd object. More... | |
bool | GetStorageType () const |
Return the storageType : True if it is a Storage. More... | |
IsotopicVector | GetIV (int i) const |
DecayDataBank * | GetDecayDataBank () |
Return the pointer to the decay DataBank. More... | |
CLASSBackEnd * | GetOutBackEndFacility () const |
Return the pointer to the OUtBackEndFacility. More... | |
virtual std::map< cSecond, int > | GetTheBackEndTimePath () |
Get the full path. More... | |
void | SetIsStorageType (bool val=true) |
Set the fIsStorage bool. More... | |
virtual void | SetIVArray (std::vector< IsotopicVector > const &ivarray) |
Set The isotopicVector Array. More... | |
void | SetIVArrayArrivalTime (std::vector< cSecond > const &IVArrayArrivalTime) |
Set Arrival Time in Back end. More... | |
void | SetDecayDataBank (DecayDataBank *decayDB) |
Set the Decay DataBank. More... | |
virtual void | SetOutBackEndFacility (CLASSBackEnd *befacility) |
Set an out Facility. More... | |
virtual void | ApplyZAIThreshold (int z=90) |
Put all nuclei below the threshold in -2 -2 -2 ZAI... More... | |
void | ClearIVArray () |
Empty the IVArray removing all fuel stored. More... | |
![]() | |
CLASSFacility (int type=0) | |
Normal Constructor. More... | |
CLASSFacility (CLASSLogger *log, int type=0) | |
Special Constructor. More... | |
CLASSFacility (CLASSLogger *log, cSecond cycletime, int type=0) | |
Special Constructor. More... | |
CLASSFacility (CLASSLogger *log, cSecond creationtime, cSecond lifetime, int type=0) | |
Special Constructor. More... | |
CLASSFacility (CLASSLogger *log, cSecond startingtime, cSecond lifetime, cSecond cycletime, int type=0) | |
Special Constructor. More... | |
int | GetId () const |
Return the Facility Parc'Is. More... | |
IsotopicVector | GetInsideIV () const |
Return the IV contained in the Facility. More... | |
int | GetFacilityType () const |
Return the Facility Type id. More... | |
cSecond | GetInternalTime () const |
Return Creation Time. More... | |
cSecond | GetCycleTime () const |
Return the cycle time of the Facility. More... | |
cSecond | GetCreationTime () const |
Return the creation time of the Facility. More... | |
cSecond | GetLifeTime () const |
Return the life time of the Facility. More... | |
Scenario * | GetParc () |
return the pointer to the Park More... | |
IsotopicVector | GetCumulativeIVIn () |
return the cumulative sum of all incoming IV More... | |
IsotopicVector | GetCumulativeIVOut () |
return the cumulative sum of all outcoming IV More... | |
void | SetId (int id) |
Set The Facility Parc'Id. More... | |
void | SetParc (Scenario *parc) |
Set the Pointer to the Parc. More... | |
void | SetFacilityType (int type) |
void | SetInsideIV (IsotopicVector const &isotopicvector) |
Set the IV inside the Facility. More... | |
void | SetCreationTime (cSecond CTtime) |
Set the creation Time. More... | |
void | SetLifeTime (cSecond Ltime) |
Set the life time of the facility. More... | |
void | SetShutDownTime (cSecond SDTime) |
Set the shutdown time of the facility. More... | |
void | SetInCycleTime (cSecond ICtime) |
Set the In cycle time. More... | |
void | SetInternalTime (cSecond INtime) |
Set the Internal Time. More... | |
virtual void | SetCycleTime (cSecond Ctime) |
Set the cycle time (Cycle of the loading Plan) More... | |
void | AddCumulativeIVIn (IsotopicVector const &IV) |
Add the Input IsotopicVector in the cumulative IV IN. More... | |
void | AddCumulativeIVOut (IsotopicVector const &IV) |
Add the Input IsotopicVector in the cumulative IV OUT. More... | |
virtual void | Dump () |
Write Modification (IV In/Out, filling the TF...) 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 | StorageEvolution (cSecond t) |
Deal the Storage Decay Evolution. More... | |
ClassDef (Storage, 3) | |
![]() | |
IsotopicVector | GetDecay (IsotopicVector const &isotopicvector, cSecond t) |
Get IsotopicVector decay at time t [s]. More... | |
Additional Inherited Members | |
![]() | |
std::vector< IsotopicVector > | fIVArray |
Vector containning all the fuel stored. More... | |
std::vector< cSecond > | fIVArrayArrivalTime |
Vector containning the arrival time of each fuel in [s]. More... | |
CLASSBackEnd * | fOutBackEndFacility |
Facility getting the fuel at the end of the cycle. More... | |
![]() | |
bool | fIsStarted |
True if Running, False Otherwise. More... | |
bool | fIsShutDown |
True if the facility is stoped, False Otherwise. More... | |
bool | fIsAtEndOfCycle |
True if Reaching the end of a Facility cycle. More... | |
cSecond | fInternalTime |
Internal Clock [s]. More... | |
cSecond | fInCycleTime |
Time spent since the beginning of the last Cycle [s]. More... | |
cSecond | fCycleTime |
Cycle duration Time [s]. More... | |
IsotopicVector | fInsideIV |
All IV in the Facility (fuel for reactor, total for all others...) More... | |
IsotopicVector | fCumulativeIVIn |
All IV in the Facility (fuel for reactor, total for all others...) More... | |
IsotopicVector | fCumulativeIVOut |
All IV in the Facility (fuel for reactor, total for all others...) More... | |
![]() | |
CLASSLogger * | fLog |
Pointer to the Log. More... | |
Defines a Storage object.
A Storage is a CLASSBackEnd facility. It is almost the same as a Pool with a infinite cooling time. A CLASSFacility can take IsotopicVector(s) contained in a Storage but a Storage cannot send its content in other CLASSFacility (its a kind of passive facility)
Storage::Storage | ( | ) |
Normal Constructor.
Storage::Storage | ( | CLASSLogger * | log | ) |
CLASSLogger Constructor.
Use to create an empty Storage with a CLASSLogger
log | : used for the log. |
Storage::Storage | ( | CLASSLogger * | log, |
DecayDataBank * | evolutivedb | ||
) |
Special Constructor.
Make a new Storage
log | : used for the log. |
evolutivedb | : DecayDataBank for decay management |
Storage::~Storage | ( | ) |
Normal Destructor.
|
virtual |
Add an Isotopicvector to the IVArray.
Reimplemented from CLASSBackEnd.
|
inline |
Add an Isotopicvector to the IVArray if it is not empty.
|
protected |
|
virtual |
Perform the evolution until time t.
Reimplemented from CLASSBackEnd.
void Storage::RemoveEmptyStocks | ( | ) |
delete the empty Isotopicvector(s) contained in IVArray
|
inline |
Set the fIsStorage bool.
void Storage::TakeFractionFromStock | ( | int | IVId, |
double | fraction | ||
) |
Take a part from an IV in sotck;.
void Storage::TakeFromStock | ( | IsotopicVector | isotopicvector | ) |
Take an entire IV from stock.
void Storage::Write | ( | string | filename, |
cSecond | date = -1 |
||
) |
Write the Isotope composition of all IsotopicVector stored.
Make a new reactor
filename | : CLASSLogger used for the log. |
date | : only use to write a date in the file |