votca 2026-dev
Loading...
Searching...
No Matches
sigma_exact_uks.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_SIGMA_EXACT_UKS_H
22#define VOTCA_XTP_SIGMA_EXACT_UKS_H
23
24#include "votca/xtp/rpa_uks.h"
26
27namespace votca {
28namespace xtp {
29
31 public:
35
36 void PrepareScreening() final;
37
38 double CalcCorrelationDiagElement(Index gw_level,
39 double frequency) const final;
40
42 double frequency) const final;
45 Index gw_level, const Eigen::VectorXd& frequencies) const final;
46
47 double CalcCorrelationOffDiagElement(Index gw_level1, Index gw_level2,
48 double frequency1,
49 double frequency2) const final;
50
51 private:
52 // void BuildScreeningModes(const Eigen::MatrixXd& XpY,
53 // const Eigen::VectorXd& omegas);
54
55 Eigen::VectorXd rpa_omegas_;
56 std::vector<Eigen::VectorXd> screening_modes_;
57 std::vector<Eigen::MatrixXd> residues_;
58};
59
60} // namespace xtp
61} // namespace votca
62
63#endif
Unrestricted RPA helper for spin-resolved GW screening.
Definition rpa_uks.h:70
std::vector< Eigen::MatrixXd > residues_
double CalcCorrelationDiagElement(Index gw_level, double frequency) const final
double CalcCorrelationOffDiagElement(Index gw_level1, Index gw_level2, double frequency1, double frequency2) const final
std::vector< Eigen::VectorXd > screening_modes_
double CalcCorrelationDiagElementDerivative(Index gw_level, double frequency) const final
Sigma_Exact_UKS(TCMatrix_gwbse_spin &Mmn, RPA_UKS &rpa, TCMatrix::SpinChannel spin)
Eigen::VectorXd CalcCorrelationDiagElements(Index gw_level, const Eigen::VectorXd &frequencies) const final
All frequencies of a level in one pass (see exact_pole_sums).
Sigma_base_UKS(TCMatrix_gwbse_spin &Mmn, const RPA_UKS &rpa, TCMatrix::SpinChannel spin)
STL namespace.
Provides a means for comparing floating point numbers.
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26