TBTK
ElectronFluctuationVertex.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 
24 #ifndef COM_DAFER45_TBTK_PROPERTY_EXTRACTOR_ELECTRON_FLUCTUATION_VERTEX
25 #define COM_DAFER45_TBTK_PROPERTY_EXTRACTOR_ELECTRON_FLUCTUATION_VERTEX
26 
27 #include "TBTK/Solver/ElectronFluctuationVertex.h"
30 
31 #include <complex>
32 //#include <initializer_list>
33 
34 namespace TBTK{
35 namespace PropertyExtractor{
36 
40 public:
45 
47  virtual void setEnergyWindow(
48  double lowerBound,
49  double upperBound,
50  int resolution
51  );
52 
53  //TODO
54  //This should be extended to become part of the PropertyExtractor
55  //interface once its tested to work well for this specific case.
56  virtual void setEnergyWindow(
57  int lowerFermionicMatsubaraEnergyIndex,
58  int upperFermionicMatsubaraEnergyIndex,
59  int lowerBosonicMatsubaraEnergyIndex,
60  int upperBosonicEnergyIndex
61  );
62 
65 // std::initializer_list<Index> patterns
66  std::vector<Index> patterns
67  );
68 private:
70  static void calculateInteractionVertexCallback(
71  PropertyExtractor *cb_this,
72  void *interactionVertex,
73  const Index &index,
74  int offset
75  );
76 
79 
81 // std::vector<std::complex<double>> energies;
82 
83  //TODO
84  //These variables should be made part if the PropertyExtractor instead
85  //once its been tested to work well for this specific case.
86 /* enum class EnergyType{Real, Matsubara};
87  EnergyType energyType;
88  int lowerFermionicMatsubaraEnergyIndex;
89  int upperFermionicMatsubaraEnergyIndex;
90  int lowerBosonicMatsubaraEnergyIndex;
91  int upperBosonicMatsubaraEnergyIndex;*/
92 };
93 
94 }; //End of namespace PropertyExtractor
95 }; //End of namespace TBTK
96 
97 #endif
virtual Property::InteractionVertex calculateInteractionVertex(std::vector< Index > patterns)
Definition: ElectronFluctuationVertex.h:35
Property container for the Susceptibility.
Definition: InteractionVertex.h:36
virtual void setEnergyWindow(double lowerBound, double upperBound, int resolution)
Base class PropertyExtractors.
ElectronFluctuationVertex(Solver::ElectronFluctuationVertex &solver)
Flexible physical index.
Definition: Index.h:69
Definition: PropertyExtractor.h:44
Definition: ModelFactory.h:35
Definition: ElectronFluctuationVertex.h:39
Property container for an InteractionVertex.