votca 2024.1-dev
Loading...
Searching...
No Matches
dftcoupling.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2020 The VOTCA Development Team
3 * (http://www.votca.org)
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License")
6 *
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19
20#pragma once
21#ifndef VOTCA_XTP_DFTCOUPLING_H
22#define VOTCA_XTP_DFTCOUPLING_H
23
24// Local VOTCA includes
25#include "couplingbase.h"
26
27namespace votca {
28namespace xtp {
29
38class DFTcoupling : public CouplingBase {
39 public:
40 std::string Identify() const { return "dftcoupling"; }
41
42 void CalculateCouplings(const Orbitals& orbitalsA, const Orbitals& orbitalsB,
43 const Orbitals& orbitalsAB) override;
44
45 void Initialize(tools::Property&) override;
46
47 void Addoutput(tools::Property& type_summary, const Orbitals& orbitalsA,
48 const Orbitals& orbitalsB) const override;
49
50 private:
51 void WriteToProperty(tools::Property& type_summary, const Orbitals& orbitalsA,
52 const Orbitals& orbitalsB, Index a, Index b) const;
53 double getCouplingElement(Index levelA, Index levelB,
54 const Orbitals& orbitalsA,
55 const Orbitals& orbitalsB) const;
56
57 std::pair<Index, Index> DetermineRangeOfStates(const Orbitals& orbital,
58 Index numberofstates) const;
59
60 Eigen::MatrixXd JAB;
61
62 double degeneracy_ = 0.0;
65
66 std::pair<Index, Index> Range_orbA;
67 std::pair<Index, Index> Range_orbB;
68};
69
70} // namespace xtp
71} // namespace votca
72
73#endif // VOTCA_XTP_DFTCOUPLING_H
class to manage program options with xml serialization functionality
Definition property.h:55
Base Class to derive DFT and BSE coupling from.
Evaluates electronic coupling elements.
Definition dftcoupling.h:38
void WriteToProperty(tools::Property &type_summary, const Orbitals &orbitalsA, const Orbitals &orbitalsB, Index a, Index b) const
std::pair< Index, Index > Range_orbA
Definition dftcoupling.h:66
std::pair< Index, Index > DetermineRangeOfStates(const Orbitals &orbital, Index numberofstates) const
void Initialize(tools::Property &) override
double getCouplingElement(Index levelA, Index levelB, const Orbitals &orbitalsA, const Orbitals &orbitalsB) const
void Addoutput(tools::Property &type_summary, const Orbitals &orbitalsA, const Orbitals &orbitalsB) const override
std::pair< Index, Index > Range_orbB
Definition dftcoupling.h:67
void CalculateCouplings(const Orbitals &orbitalsA, const Orbitals &orbitalsB, const Orbitals &orbitalsAB) override
evaluates electronic couplings
std::string Identify() const
Definition dftcoupling.h:40
Eigen::MatrixXd JAB
Definition dftcoupling.h:60
container for molecular orbitals
Definition orbitals.h:46
base class for all analysis tools
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26