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_; }
42
43 void FreeMatrix() { ppm_phi_.resize(0, 0); }
44
45 private:
48
49 Eigen::MatrixXd ppm_phi_;
50 Eigen::VectorXd ppm_freq_;
51 Eigen::VectorXd ppm_weight_;
52};
53
54} // namespace xtp
55} // namespace votca
56
57#endif
const Eigen::MatrixXd & getPpm_phi() const
Definition ppm.h:41
Eigen::VectorXd ppm_freq_
Definition ppm.h:50
Eigen::VectorXd ppm_weight_
Definition ppm.h:51
void PPM_construct_parameters(const RPA &rpa)
Definition ppm.cc:62
Eigen::MatrixXd ppm_phi_
Definition ppm.h:49
double screening_i
Definition ppm.h:47
const Eigen::VectorXd & getPpm_weight() const
Definition ppm.h:39
double screening_r
Definition ppm.h:46
const Eigen::VectorXd & getPpm_freq() const
Definition ppm.h:40
void FreeMatrix()
Definition ppm.h:43
Unrestricted RPA helper for spin-resolved GW screening.
Definition rpa_uks.h:68
Provides a means for comparing floating point numbers.
Definition basebead.h:33