TBTK
Need a break? Support the development by playing Polarity Puzzles
RPASusceptibility.h
1 /* Copyright 2018 Kristofer Björnson
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
17 
25 #ifndef COM_DAFER45_TBTK_PROPERTY_EXTRACTOR_RPA_SUSCEPTIBILITY
26 #define COM_DAFER45_TBTK_PROPERTY_EXTRACTOR_RPA_SUSCEPTIBILITY
27 
28 #include "TBTK/Solver/RPASusceptibility.h"
29 #include "TBTK/Property/Susceptibility.h"
31 
32 #include <complex>
33 
34 namespace TBTK{
35 namespace PropertyExtractor{
36 
39 class RPASusceptibility : public PropertyExtractor{
40 public:
44  RPASusceptibility(Solver::RPASusceptibility &solver);
45 
47  virtual void setEnergyWindow(
48  double lowerBound,
49  double upperBound,
50  int resolution
51  );
52 
54  virtual void setEnergyWindow(
55  int lowerFermionicMatsubaraEnergyIndex,
56  int upperFermionicMatsubaraEnergyIndex,
57  int lowerBosonicMatsubaraEnergyIndex,
58  int upperBosonicEnergyIndex
59  );
60 
62  virtual Property::Susceptibility calculateRPASusceptibility(
63  std::vector<Index> patterns
64  );
65 
67 /* virtual Property::Susceptibility calculateChargeSusceptibility(
68  std::vector<Index> patterns
69  );*/
70 
72 /* virtual Property::Susceptibility calculateSpinSusceptibility(
73  std::vector<Index> patterns
74  );*/
75 private:
77  static void calculateRPASusceptibilityCallback(
78  PropertyExtractor *cb_this,
79  Property::Property &property,
80  const Index &index,
81  int offset,
82  Information &information
83  );
84 
86 /* static void calculateChargeSusceptibilityCallback(
87  PropertyExtractor *cb_this,
88  Property::Property &property,
89  const Index &index,
90  int offset,
91  Information &information
92  );*/
93 
95 /* static void calculateSpinSusceptibilityCallback(
96  PropertyExtractor *cb_this,
97  Property::Property &property,
98  const Index &index,
99  int offset,
100  Information &information
101  );*/
102 
104  Solver::RPASusceptibility *solver;
105 
108  IndexedDataTree<
109  std::vector<std::complex<double>>
110  > rpaSusceptibilityTree;
111 
113  virtual const Solver::Solver& getSolver() const;
114 
117 /* IndexedDataTree<
118  std::vector<std::complex<double>>
119  > chargeSusceptibilityTree;*/
120 
123 /* IndexedDataTree<
124  std::vector<std::complex<double>>
125  > spinSusceptibilityTree;*/
126 };
127 
128 inline const Solver::Solver& RPASusceptibility::getSolver() const{
129  return *solver;
130 }
131 
132 }; //End of namespace PropertyExtractor
133 }; //End of namespace TBTK
134 
135 #endif
136 
Generates IndexTrees to be used as loop ranges and memory layout for Properties in the PropertyExtrac...
Definition: Boolean.h:32