votca 2026-dev
Loading...
Searching...
No Matches
sigma_base_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_BASE_UKS_H
22#define VOTCA_XTP_SIGMA_BASE_UKS_H
23
24#include "eigen.h"
25#include "votca/xtp/rpa_uks.h"
27
28namespace votca {
29namespace xtp {
30
32 public:
35 : Mmn_spin_(Mmn), Mmn_(Mmn[spin]), rpa_(rpa), spin_(spin) {}
36
37 virtual ~Sigma_base_UKS() = default;
38
50
51 void configure(options opt) {
52 opt_ = opt;
53 qptotal_ = opt.qpmax - opt.qpmin + 1;
54 rpatotal_ = opt.rpamax - opt.rpamin + 1;
55 }
56
57 Eigen::MatrixXd CalcExchangeMatrix() const;
58 Eigen::VectorXd CalcCorrelationDiag(const Eigen::VectorXd& frequencies) const;
59 Eigen::MatrixXd CalcCorrelationOffDiag(
60 const Eigen::VectorXd& frequencies) const;
61
62 virtual void PrepareScreening() = 0;
64 Index gw_level, double frequency) const = 0;
65 virtual double CalcCorrelationDiagElement(Index gw_level,
66 double frequency) const = 0;
67 virtual double CalcCorrelationOffDiagElement(Index gw_level1, Index gw_level2,
68 double frequency1,
69 double frequency2) const = 0;
70
71 protected:
72 const Eigen::VectorXd& getSpinRPAInputEnergies() const {
74 ? rpa_.getRPAInputEnergiesAlpha()
75 : rpa_.getRPAInputEnergiesBeta();
76 }
77
81 const RPA_UKS& rpa_;
83
86};
87
88} // namespace xtp
89} // namespace votca
90
91#endif
Unrestricted RPA helper for spin-resolved GW screening.
Definition rpa_uks.h:68
const Eigen::VectorXd & getSpinRPAInputEnergies() const
virtual double CalcCorrelationDiagElement(Index gw_level, double frequency) const =0
TCMatrix::SpinChannel spin_
TCMatrix_gwbse_spin & Mmn_spin_
void configure(options opt)
Eigen::MatrixXd CalcCorrelationOffDiag(const Eigen::VectorXd &frequencies) const
virtual double CalcCorrelationOffDiagElement(Index gw_level1, Index gw_level2, double frequency1, double frequency2) const =0
Eigen::MatrixXd CalcExchangeMatrix() const
virtual ~Sigma_base_UKS()=default
Sigma_base_UKS(TCMatrix_gwbse_spin &Mmn, const RPA_UKS &rpa, TCMatrix::SpinChannel spin)
virtual void PrepareScreening()=0
virtual double CalcCorrelationDiagElementDerivative(Index gw_level, double frequency) const =0
Eigen::VectorXd CalcCorrelationDiag(const Eigen::VectorXd &frequencies) const
Provides a means for comparing floating point numbers.
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26