MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Storage.hxx
Go to the documentation of this file.
1 #ifndef _STORAGE_HXX_
2 #define _STORAGE_HXX_
3 
9 #include <fstream>
10 #include <iostream>
11 #include <sstream>
12 #include <vector>
13 #include <string>
14 #include "MureHeaders.hxx"
15 using namespace std;
17 
26 class Storage
27 {
28  public:
30 
44  Storage(Material *Fuel, string Name,double SpatialVarVal);
45 
46  Storage(const Storage &m);
47 
48  Cell* GetCell(){return fVirtualCell;}
49  Material* GetFuel(){return fFuel;}
50 
51  string GetName(){return fName;}
52 
54 
65  double GetMass(int Z, int A=0);
67 
73  double GetMass(vector<int> Zvect);
74 
75 
76  protected:
79  string fName;
80 };
81 
83 
93 {
94  public:
96 
109  TemporalStorage(Material *Fuel, double WaitingTime, string Name,int Number=0);
110 
111  TemporalStorage(const TemporalStorage &m);
112 
113  double GetWaitingTime(){return fWaitingTime;}
114  vector<double> & GetRetreatmentTime(){return fRetreatmentTime;}
115  double GetCurrentRetreatmentTime();
116 
122  void SetRetreatmentTime(vector<double> T);
123  Storage* GetStorage(int i){return fStorage[i];}
124 
126 
137  void Build(int SN,vector<double> TimeVector);
138 
139  Cell *GetCell(int i){return fStorage[i]->GetCell();}
140  int GetRetreatmentTimeIndex(){return min(fRetreatmentIndex,int(fRetreatmentTime.size()-1));}
141  void SetRetreatmentTimeIndex(int idx){fRetreatmentIndex=idx;}
142 
143  protected:
144  double fWaitingTime;
145  vector<double> fRetreatmentTime;
146  vector<Storage*> fStorage;
148 };
149 
150 
151 #endif
vector< double > fRetreatmentTime
Time vector at which a storage is reprocessed.
Definition: Storage.hxx:145
A Cell is a MCNP cell.
Definition: Cell.hxx:48
void SetRetreatmentTimeIndex(int idx)
set the current Retreatment Time index
Definition: Storage.hxx:141
vector< Storage * > fStorage
Storage collection as a function of Reprocessing Time.
Definition: Storage.hxx:146
Storage are outcore containers.
Definition: Storage.hxx:26
vector< double > & GetRetreatmentTime()
return the retreatment time vector (Tfill+TWaiting)
Definition: Storage.hxx:114
string GetName()
return the storage name
Definition: Storage.hxx:51
double fWaitingTime
Period to wait before reprocessing a storage.
Definition: Storage.hxx:144
Cell * fVirtualCell
the out-core cell
Definition: Storage.hxx:77
File including all headers.
Cell * GetCell()
return the virtual cell
Definition: Storage.hxx:48
A Material constituing a Cell.
Definition: Material.hxx:53
double GetWaitingTime()
return Time to wait before reprocessing a storage
Definition: Storage.hxx:113
Cell * GetCell(int i)
return the cell of storage at Retreatment Time i
Definition: Storage.hxx:139
Material * GetFuel()
return the Storage material
Definition: Storage.hxx:49
Material * fFuel
the storage Material
Definition: Storage.hxx:78
int GetRetreatmentTimeIndex()
return the current Retreatment Time index
Definition: Storage.hxx:140
Storage * GetStorage(int i)
return the storage at GetReprocessingTime()[i]
Definition: Storage.hxx:123
int fRetreatmentIndex
The current Retreatment index in the fRetreatmenTime vector.
Definition: Storage.hxx:147
TemporalStorage are outcore containers function of a Retreatment time.
Definition: Storage.hxx:92
string fName
the storage Name
Definition: Storage.hxx:79

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