votca 2024.2-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// Local VOTCA includes
25#include "eigen.h"
26#include "rpa.h"
27
28namespace votca {
29namespace xtp {
30
31class PPM {
32 public:
33 PPM() : screening_r(0.0), screening_i(0.5) {};
34
35 // This sets the screening frequencies for real and imaginary part in hartree
36
37 void PPM_construct_parameters(const RPA& rpa);
38
39 const Eigen::VectorXd& getPpm_weight() const { return ppm_weight_; }
40
41 const Eigen::VectorXd& getPpm_freq() const { return ppm_freq_; }
42
43 const Eigen::MatrixXd& getPpm_phi() const { return ppm_phi_; }
44
45 void FreeMatrix() { ppm_phi_.resize(0, 0); }
46
47 private:
50
51 // PPM related variables and functions
52 Eigen::MatrixXd ppm_phi_;
53 Eigen::VectorXd ppm_freq_;
54 Eigen::VectorXd ppm_weight_;
55};
56} // namespace xtp
57} // namespace votca
58
59#endif // VOTCA_XTP_PPM_H
const Eigen::MatrixXd & getPpm_phi() const
Definition ppm.h:43
Eigen::VectorXd ppm_freq_
Definition ppm.h:53
Eigen::VectorXd ppm_weight_
Definition ppm.h:54
void PPM_construct_parameters(const RPA &rpa)
Definition ppm.cc:29
Eigen::MatrixXd ppm_phi_
Definition ppm.h:52
double screening_i
Definition ppm.h:49
const Eigen::VectorXd & getPpm_weight() const
Definition ppm.h:39
double screening_r
Definition ppm.h:48
const Eigen::VectorXd & getPpm_freq() const
Definition ppm.h:41
void FreeMatrix()
Definition ppm.h:45
base class for all analysis tools
Definition basebead.h:33