MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Protected Attributes | List of all members
TemporalStorage Class Reference

TemporalStorage are outcore containers function of a Retreatment time. More...

#include <Storage.hxx>

Public Member Functions

 TemporalStorage (Material *Fuel, double WaitingTime, string Name, int Number=0)
 Normal constructor. More...
 
 TemporalStorage (const TemporalStorage &m)
 copy constructor More...
 
double GetWaitingTime ()
 return Time to wait before reprocessing a storage More...
 
vector< double > & GetRetreatmentTime ()
 return the retreatment time vector (Tfill+TWaiting) More...
 
double GetCurrentRetreatmentTime ()
 
void SetRetreatmentTime (vector< double > T)
 Set the reprocessing time vector. More...
 
StorageGetStorage (int i)
 return the storage at GetReprocessingTime()[i] More...
 
void Build (int SN, vector< double > TimeVector)
 Build Storage vectors. More...
 
CellGetCell (int i)
 return the cell of storage at Retreatment Time i More...
 
int GetRetreatmentTimeIndex ()
 return the current Retreatment Time index More...
 
void SetRetreatmentTimeIndex (int idx)
 set the current Retreatment Time index More...
 

Protected Attributes

double fWaitingTime
 Period to wait before reprocessing a storage. More...
 
vector< double > fRetreatmentTime
 Time vector at which a storage is reprocessed. More...
 
vector< Storage * > fStorage
 Storage collection as a function of Reprocessing Time. More...
 
int fRetreatmentIndex
 The current Retreatment index in the fRetreatmenTime vector. More...
 

Detailed Description

TemporalStorage are outcore containers function of a Retreatment time.

A TemporalStorage is a collection of Storages: one Storage for each Retreatment time. It is used to keep depleted fuel, waste, ... during the evolution when FuelReprocessing object is build and used. Fuel of one or more depleted core cells can be put in the same TemporalStorage. A storage is reprocessed at each Retreatment Time (see e.g., FuelReprocessing::ReprocessInterimStorage())

Author
PTO
Version
0.1

Constructor & Destructor Documentation

TemporalStorage::TemporalStorage ( Material Fuel,
double  WaitingTime,
string  Name,
int  Number = 0 
)

Normal constructor.

Build the first storage (i.e. at Retreatment Time 0). To find a storage with MureGui, it has a "spatial variable" (the storage name), with a given value: X.Y where X corresponds to the index of Retreatment time at which the storage is built and Y is the storage number at this time. When having only 1 storage type per Retreatment time, the spatial variable value is just, 0, 1 ...

Parameters
Fuel: The Storage material.
WaitingTime: Time to wait before reprocessing the storage (cooling, refabrication).
Name: The name of the storage (e.g. InterimStorrage)
Number: Number of the storage
TemporalStorage::TemporalStorage ( const TemporalStorage m)

copy constructor

Member Function Documentation

void TemporalStorage::Build ( int  SN,
vector< double >  TimeVector 
)

Build Storage vectors.

Build all storages (i.e. at each Refuelling Time). To find a storage with MureGui, it has a "spatial variable" (the storage name), with a given value: X.Y where X corresponds to the index of reprocessing time at which the storage is built and Y is the storage number at this time. The SN parameter is this Y. When having only 1 storage type per reprocessing time, the spatial variable value is just, 0, 1 ... The Retreatment time vector is built as TimeVector[i]+fWaitingTime.

Parameters
SN: the Storage Number is used for the spatial variables of Cell.
TimeVector: the Time vector of refuelling time for the storage (i.e. when it is filled).
Cell* TemporalStorage::GetCell ( int  i)
inline

return the cell of storage at Retreatment Time i

double TemporalStorage::GetCurrentRetreatmentTime ( )

return the current retreatment time (Tfill+TWaiting)

vector<double>& TemporalStorage::GetRetreatmentTime ( )
inline

return the retreatment time vector (Tfill+TWaiting)

int TemporalStorage::GetRetreatmentTimeIndex ( )
inline

return the current Retreatment Time index

Storage* TemporalStorage::GetStorage ( int  i)
inline

return the storage at GetReprocessingTime()[i]

double TemporalStorage::GetWaitingTime ( )
inline

return Time to wait before reprocessing a storage

void TemporalStorage::SetRetreatmentTime ( vector< double >  T)

Set the reprocessing time vector.

The time vector T contains the time at which the storage is filled (refuel). The fRetreatmentTime vector is set to T+fWaitingTime

Parameters
T: the Time vector of refuelling time for the storage (i.e. when it is filled).
void TemporalStorage::SetRetreatmentTimeIndex ( int  idx)
inline

set the current Retreatment Time index

Member Data Documentation

int TemporalStorage::fRetreatmentIndex
protected

The current Retreatment index in the fRetreatmenTime vector.

vector<double> TemporalStorage::fRetreatmentTime
protected

Time vector at which a storage is reprocessed.

vector<Storage*> TemporalStorage::fStorage
protected

Storage collection as a function of Reprocessing Time.

double TemporalStorage::fWaitingTime
protected

Period to wait before reprocessing a storage.


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

MURE Project, documentation generated by Doxygen 1.8.5 - Mon Nov 17 2014