votca 2026-dev
Loading...
Searching...
No Matches
ppm.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_PPM_H
22#define VOTCA_XTP_PPM_H
23
24#include "eigen.h"
25#include "rpa.h"
26
27namespace votca {
28namespace xtp {
29
30class RPA_UKS;
31
32class PPM {
33 public:
34 PPM() : screening_r(0.0), screening_i(0.5) {};
35
36 void PPM_construct_parameters(const RPA& rpa);
37 void PPM_construct_parameters(const RPA_UKS& rpa);
38
39 const Eigen::VectorXd& getPpm_weight() const { return ppm_weight_; }
40 const Eigen::VectorXd& getPpm_freq() const { return ppm_freq_; }
41 const Eigen::MatrixXd& getPpm_phi() const { return ppm_phi_; }
44 Index InvalidModes() const { return invalid_modes_; }
47 double RealFittingFrequency() const { return screening_r; }
48 double ImaginaryFittingFrequency() const { return screening_i; }
49
50 void FreeMatrix() { ppm_phi_.resize(0, 0); }
51
52 private:
55
56 Eigen::MatrixXd ppm_phi_;
57 Eigen::VectorXd ppm_freq_;
58 Eigen::VectorXd ppm_weight_;
60};
61
62} // namespace xtp
63} // namespace votca
64
65#endif
const Eigen::MatrixXd & getPpm_phi() const
Definition ppm.h:41
Eigen::VectorXd ppm_freq_
Definition ppm.h:57
double ImaginaryFittingFrequency() const
Definition ppm.h:48
Eigen::VectorXd ppm_weight_
Definition ppm.h:58
void PPM_construct_parameters(const RPA &rpa)
Definition ppm.cc:70
Index InvalidModes() const
Definition ppm.h:44
double RealFittingFrequency() const
Definition ppm.h:47
Eigen::MatrixXd ppm_phi_
Definition ppm.h:56
double screening_i
Definition ppm.h:54
const Eigen::VectorXd & getPpm_weight() const
Definition ppm.h:39
Index invalid_modes_
Definition ppm.h:59
double screening_r
Definition ppm.h:53
const Eigen::VectorXd & getPpm_freq() const
Definition ppm.h:40
void FreeMatrix()
Definition ppm.h:50
Unrestricted RPA helper for spin-resolved GW screening.
Definition rpa_uks.h:70
Provides a means for comparing floating point numbers.
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26