TBTK
Greens.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 
23 #ifndef COM_DAFER45_TBTK_SOLVER_GREENS
24 #define COM_DAFER45_TBTK_SOLVER_GREENS
25 
26 #include "TBTK/Communicator.h"
27 #include "TBTK/Model.h"
29 #include "TBTK/Property/SelfEnergy.h"
30 #include "TBTK/Solver/Solver.h"
31 
32 #include <complex>
33 
34 namespace TBTK{
35 namespace Solver{
36 
38 class Greens : public Solver, public Communicator{
39 public:
41  Greens();
42 
44  virtual ~Greens();
45 
50  void setGreensFunction(const Property::GreensFunction &greensFunction);
51 
56 
66  const Property::SelfEnergy &selfEnergy
67  ) const;
68 private:
70  const Property::GreensFunction *greensFunction;
71 };
72 
74  const Property::GreensFunction &greensFunction
75 ){
76  this->greensFunction = &greensFunction;
77 }
78 
80  return *greensFunction;
81 }
82 
83 }; //End of namespace Solver
84 }; //End of namespace TBTK
85 
86 #endif
Base class for Solvers.
Definition: Solver.h:32
Property container for the SelfEnergy.
Definition: SelfEnergy.h:36
Container of Model related information.
Property container for the Green&#39;s function.
Calculates properties from a Green&#39;s function.
Definition: Greens.h:38
Base class for Solvers.
Definition: ModelFactory.h:35
Base class that communicate their current status during execution.
Property::GreensFunction calculateInteractingGreensFunction(const Property::SelfEnergy &selfEnergy) const
const Property::GreensFunction & getGreensFunction() const
Definition: Greens.h:79
Definition: Communicator.h:28
void setGreensFunction(const Property::GreensFunction &greensFunction)
Definition: Greens.h:73
Property container for the Green&#39;s function.
Definition: GreensFunction.h:36