CLASS  5.1
Fuel Cycle Simulator
Storage Class Reference

Defines a Storage object. More...

#include <Storage.hxx>

Inheritance diagram for Storage:
CLASSBackEnd CLASSFacility CLASSObject

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...
 
- Public Member Functions inherited from CLASSBackEnd
 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< IsotopicVectorGetIVArray () const
 Return the IsotopicVector Array. More...
 
std::vector< cSecondGetIVArrayArrivalTime () 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
 
DecayDataBankGetDecayDataBank ()
 Return the pointer to the decay DataBank. More...
 
CLASSBackEndGetOutBackEndFacility () 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...
 
- Public Member Functions inherited from CLASSFacility
 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...
 
ScenarioGetParc ()
 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...
 
- Public Member Functions inherited from CLASSObject
 CLASSObject ()
 Normal Constructor. More...
 
 CLASSObject (CLASSLogger *log)
 Log Constructor. More...
 
virtual CLASSObjectClone ()
 Correct way to copy a CLASSObject in case of derivation. More...
 
void SetLog (CLASSLogger *log)
 Set the CLASSLogger. More...
 
CLASSLoggerGetLog ()
 Return the Pointer to the Log. More...
 

Protected Member Functions

void StorageEvolution (cSecond t)
 Deal the Storage Decay Evolution. More...
 
 ClassDef (Storage, 3)
 
- Protected Member Functions inherited from CLASSBackEnd
IsotopicVector GetDecay (IsotopicVector const &isotopicvector, cSecond t)
 Get IsotopicVector decay at time t [s]. More...
 

Additional Inherited Members

- Protected Attributes inherited from CLASSBackEnd
std::vector< IsotopicVectorfIVArray
 Vector containning all the fuel stored. More...
 
std::vector< cSecondfIVArrayArrivalTime
 Vector containning the arrival time of each fuel in [s]. More...
 
CLASSBackEndfOutBackEndFacility
 Facility getting the fuel at the end of the cycle. More...
 
- Protected Attributes inherited from CLASSFacility
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...
 
- Protected Attributes inherited from CLASSObject
CLASSLoggerfLog
 Pointer to the Log. More...
 

Detailed Description

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)

Author
BaM
Version
2.0

Constructor & Destructor Documentation

◆ Storage() [1/3]

Storage::Storage ( )

Normal Constructor.

◆ Storage() [2/3]

Storage::Storage ( CLASSLogger log)

CLASSLogger Constructor.

Use to create an empty Storage with a CLASSLogger

Parameters
log: used for the log.

◆ Storage() [3/3]

Storage::Storage ( CLASSLogger log,
DecayDataBank evolutivedb 
)

Special Constructor.

Make a new Storage

Parameters
log: used for the log.
evolutivedb: DecayDataBank for decay management

◆ ~Storage()

Storage::~Storage ( )

Normal Destructor.

Member Function Documentation

◆ AddIV()

void Storage::AddIV ( IsotopicVector  isotopicvector)
virtual

Add an Isotopicvector to the IVArray.

Reimplemented from CLASSBackEnd.

◆ AddToStock()

void Storage::AddToStock ( IsotopicVector  isotopicvector)
inline

Add an Isotopicvector to the IVArray if it is not empty.

◆ ClassDef()

Storage::ClassDef ( Storage  ,
 
)
protected

◆ Evolution()

void Storage::Evolution ( cSecond  t)
virtual

Perform the evolution until time t.

Reimplemented from CLASSBackEnd.

◆ RemoveEmptyStocks()

void Storage::RemoveEmptyStocks ( )

delete the empty Isotopicvector(s) contained in IVArray

◆ SetIsStorageType()

void CLASSBackEnd::SetIsStorageType
inline

Set the fIsStorage bool.

◆ StorageEvolution()

void Storage::StorageEvolution ( cSecond  t)
protected

Deal the Storage Decay Evolution.

◆ TakeFractionFromStock()

void Storage::TakeFractionFromStock ( int  IVId,
double  fraction 
)

Take a part from an IV in sotck;.

◆ TakeFromStock()

void Storage::TakeFromStock ( IsotopicVector  isotopicvector)

Take an entire IV from stock.

◆ Write()

void Storage::Write ( string  filename,
cSecond  date = -1 
)

Write the Isotope composition of all IsotopicVector stored.

Make a new reactor

Parameters
filename: CLASSLogger used for the log.
date: only use to write a date in the file

The documentation for this class was generated from the following files: