TBTK
Need a break? Support the development by playing Polarity Puzzles
AnalyticalContinuerContinuousFractions.h
1 /* Copyright 2019 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_SOLVER_ANALYTICAL_CONTINUER_CONTINUOUS_FRACTIONS
26 #define COM_DAFER45_TBTK_SOLVER_ANALYTICAL_CONTINUER_CONTINUOUS_FRACTIONS
27 
28 #include "TBTK/Communicator.h"
30 #include "TBTK/Property/SelfEnergy.h"
31 #include "TBTK/Solver/Solver.h"
32 
33 #include <complex>
34 
35 namespace TBTK{
36 namespace Solver{
37 
40 class AnalyticalContinuerContinuousFractions : public Solver, public Communicator{
41 public:
43  AnalyticalContinuerContinuousFractions();
44 
51  void setEnergyWindow(
52  double lowerBound,
53  double upperBound,
54  int resolution
55  );
56 
61  void setEnergyInfinitesimal(double energyInfinitesimal);
62 
68  Property::GreensFunction convert(
69  const Property::GreensFunction &greensFunction,
71  ) const;
72 private:
74  double lowerBound;
75 
77  double upperBound;
78 
80  int resolution;
81 
83  static constexpr double ENERGY_INFINITESIMAL = 0;
84 
87  double energyInfinitesimal;
88 
100  std::complex<double> getContourDeformation(
101  double energy,
103  ) const;
104 };
105 
106 inline void AnalyticalContinuerContinuousFractions::setEnergyWindow(
107  double lowerBound,
108  double upperBound,
109  int resolution
110 ){
111  this->lowerBound = lowerBound;
112  this->upperBound = upperBound;
113  this->resolution = resolution;
114 }
115 
116 inline void AnalyticalContinuerContinuousFractions::setEnergyInfinitesimal(
117  double energyInfinitesimal
118 ){
119  this->energyInfinitesimal = energyInfinitesimal;
120 }
121 
122 }; //End of namespace Solver
123 }; //End of namespace TBTK
124 
125 #endif
126 
Type
Definition: GreensFunction.h:47
Property container for the Green&#39;s function.
Base class for Solvers.
Definition: Boolean.h:32
Base class for classes that can communicate their status during execution.