CLASS  5.1
Fuel Cycle Simulator
XSM_CLOSEST.hxx
Go to the documentation of this file.
1 
2 #ifndef _XSM_CLOSEST_HXX
3 #define _XSM_CLOSEST_HXX
4 
5 
14 #include "XSModel.hxx"
15 #include <string>
16 #include <fstream>
17 #include <iostream>
18 #include <map>
19 #include <vector>
20 typedef long long int cSecond;
21 using namespace std;
22 
23 //-----------------------------------------------------------------------------//
25 
43 //________________________________________________________________________
44 
45 
46 class XSM_CLOSEST : public XSModel
47 {
48 
49  public :
50 
55 
56  //{
58  //
64  XSM_CLOSEST(string DB_index_file, bool oldreadmethod = false );
65  //}
66 
67  //{
69  //
76  XSM_CLOSEST(CLASSLogger* Log, string DB_index_file, bool oldreadmethod = false );
77  //}
78 
79  ~XSM_CLOSEST();
81 
82 
83  //********* Get Method *********//
88  virtual EvolutionData GetCrossSections(IsotopicVector isotopicvector,double t = 0) ;
89  vector< EvolutionData > GetFuelDataBank() const { return fFuelDataBank; }
90  string GetDataBaseIndex() const { return fDataBaseIndex; }
91  string GetFuelType() const { return fFuelType; }
92  vector<double> GetFuelParameter() const { return fFuelParameter; }
93  pair<double,double> GetBurnUpRange() const { return fBurnUpRange;}
94  bool IsDefine(IsotopicVector IV) const;
95 
96  map<double, int> GetDistancesTo(IsotopicVector isotopicvector, double t = 0);
97 
98 
99  //********* Set Method *********//
100 
105 
106  void SetFuelDataBank(vector< EvolutionData > mymap) { fFuelDataBank = mymap; }
107 
108  void SetDataBaseIndex(string database) { fDataBaseIndex = database;; ReadDataBase(); }
109  void SetOldReadMethod(bool val) { fOldReadMethod = val; ReadDataBase();}
110 
111 
112 
113  void SetWeightedDistanceCalculation(bool val = true) { fWeightedDistance = val;}
114  void SetInventoryEvolutionInterpolation(bool val = true) { fEvolutionDataInterpolation = val;}
115  void SetDistanceParameter(IsotopicVector DistanceParameter);
116 
117 
118  //{
120 
126  void SetDistanceType(int DistanceType);
127  //}
128 
129  //********* Other Method *********//
134  void ReadDataBase();
135  void CalculateDistanceParameter();
136 
138 
139  private :
140 
141  vector< EvolutionData > fFuelDataBank;
142 
143  string fDataBaseIndex;
144 
145  bool fOldReadMethod;
146  bool fWeightedDistance;
147  bool fEvolutionDataInterpolation;
148 
149 
150  string fFuelType;
151  pair<double,double> fBurnUpRange;
152  vector<double> fFuelParameter;
153 
154 
155 
156  int fDistanceType;
157 
161  IsotopicVector fDistanceParameter;
162 
163 };
164 
165 #endif
166 
void SetWeightedDistanceCalculation(bool val=true)
Set weighted distance calculation.
Definition: XSM_CLOSEST.hxx:113
Allows to store & operate on radioactive sample.
Definition: IsotopicVector.hxx:37
void SetOldReadMethod(bool val)
use the old reading method
Definition: XSM_CLOSEST.hxx:109
long long int cSecond
Definition: XSM_CLOSEST.hxx:20
Definition: CLASSBackEndDict.cxx:37
Defines a XSModel getting mean cross sections from the closest EvolutionData.
Definition: XSM_CLOSEST.hxx:46
vector< EvolutionData > GetFuelDataBank() const
Return the FuelDataBank.
Definition: XSM_CLOSEST.hxx:89
Header file for XSMODEL class.
Stores fuel inventory evolution , mean cross sections evolution, flux evolution, power ...
Definition: EvolutionData.hxx:54
void SetFuelDataBank(vector< EvolutionData > mymap)
Set the FuelDataBank map.
Definition: XSM_CLOSEST.hxx:106
void SetInventoryEvolutionInterpolation(bool val=true)
Definition: XSM_CLOSEST.hxx:114
string GetDataBaseIndex() const
Return the index Name.
Definition: XSM_CLOSEST.hxx:90
Object to handle output messages.
Definition: CLASSLogger.hxx:144
void SetDataBaseIndex(string database)
Set the Name of the database index.
Definition: XSM_CLOSEST.hxx:108
vector< double > GetFuelParameter() const
Return the Fuel parameters of the DB.
Definition: XSM_CLOSEST.hxx:92
string GetFuelType() const
Return the fuel type of the DB.
Definition: XSM_CLOSEST.hxx:91
Defines a mean cross section predictor.
Definition: XSModel.hxx:48
pair< double, double > GetBurnUpRange() const
Return the Burnup range of the DB.
Definition: XSM_CLOSEST.hxx:93