CLASS  5.1
Fuel Cycle Simulator
DecayDataBank.hxx
Go to the documentation of this file.
1 #ifndef _DecayDataBank_
2 #define _DecayDataBank_
3 
10 #include "CLASSObject.hxx"
11 #include "EvolutionData.hxx"
12 #include "IsotopicVector.hxx"
13 
14 #include <map>
15 #include <vector>
16 
17 
18 using namespace std;
19 typedef long long int cSecond;
20 
21 class ZAI;
22 class CLASSLogger;
23 
26 
27 //-----------------------------------------------------------------------------//
29 
41 //________________________________________________________________________
42 
43 
44 
45 class DecayDataBank : public CLASSObject
46 {
47 
48  public :
49 
50 
51  //********* Constructor/Desctructor *********//
52 
57  DecayDataBank();
59 
60 
61  //{
63 
68  DecayDataBank(string DB_index_file );
69  //}
70  //{
72 
78  DecayDataBank(CLASSLogger* Log, string DB_index_file );
79  //}
80 
81  //{
83 
86  ~DecayDataBank();
87  //}
88 
89  //{
91 
95  void Clear();
96  //}
98 
99 
100 
101 
102  //********* Get Method *********//
107  map<ZAI ,EvolutionData > GetDecayDataBank() const { return fDecayDataBank; }
108  bool IsDefine(const ZAI& zai) const;
109 
110  string GetDataBaseIndex() const { return fDataBaseIndex; }
111 
112  IsotopicVector GetDecay(IsotopicVector isotopicvector, cSecond t);
113 
115 
116 
117 
118 
119  //********* Set Method *********//
120 
125 
126  void SetDecayDataBank(map<ZAI ,EvolutionData > mymap)
127  { fDecayDataBank = mymap; }
128 
129  void SetDataBaseIndex(string database) { fDataBaseIndex = database;; ReadDataBase(); }
130 
131  void SetFastCalculation(bool val) { fFastCalculation = val; }
132  //}
133 
134 
135 
136 
137  //********* Evolution Method *********//
138 
140 
144 
145  IsotopicVector Evolution(const ZAI& zai, double dt);
146 
148 
149 
150 
151 
152  //********* Other Method *********//
157  void ReadDataBase();
158 
159  void Print() const;
160 
162 
163 
164 
165 
166 
167  protected :
168 
170 
171  map<ZAI, EvolutionData> fDecayDataBank;
172  string fDataBaseIndex;
173 
174 };
175 
176 
177 
178 #endif
Header file for EvolutionData class.
Allows to store & operate on radioactive sample.
Definition: IsotopicVector.hxx:37
string fDataBaseIndex
Name of the index.
Definition: DecayDataBank.hxx:172
bool fFastCalculation
Definition: DecayDataBank.hxx:169
Definition: CLASSBackEndDict.cxx:37
Defines a nucleus.
Definition: ZAI.hxx:33
void SetDecayDataBank(map< ZAI, EvolutionData > mymap)
Set the DecayDataBank map.
Definition: DecayDataBank.hxx:126
map< ZAI, EvolutionData > fDecayDataBank
DataBank map.
Definition: DecayDataBank.hxx:171
Stores fuel inventory evolution , mean cross sections evolution, flux evolution, power ...
Definition: EvolutionData.hxx:54
void SetFastCalculation(bool val)
Definition: DecayDataBank.hxx:131
long long int cSecond
Definition: CLASSConstante.hxx:10
Header file for IsotopicVector class.
Describes outcore radioactive decays.
Definition: DecayDataBank.hxx:45
Object to handle output messages.
Definition: CLASSLogger.hxx:144
double ReactionRateWeightedDistance(IsotopicVector IV1, EvolutionData DB)
void SetDataBaseIndex(string database)
Set the name of the database index.
Definition: DecayDataBank.hxx:129
Define common proporties of all objects.
Definition: CLASSObject.hxx:39
long long int cSecond
Definition: DecayDataBank.hxx:19
string GetDataBaseIndex() const
Return the index name.
Definition: DecayDataBank.hxx:110
Header file for CLASSObject class.
map< ZAI,EvolutionData > GetDecayDataBank() const
Return the DecayDataBank.
Definition: DecayDataBank.hxx:107