votca 2024.2-dev
Loading...
Searching...
No Matches
erdiabatization.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_ERDIABATIZATION_H
22#define VOTCA_XTP_ERDIABATIZATION_H
23
24#include "logger.h"
25#include "votca/xtp/ERIs.h"
26#include "votca/xtp/orbitals.h"
27#include "votca/xtp/qmtool.h"
28#include <cstdio>
30#include <votca/tools/types.h>
31#include <votca/xtp/aobasis.h>
32
33namespace votca {
34namespace xtp {
35
37 public:
39
40 ERDiabatization(Orbitals& orbitals1, Orbitals& orbitals2, Logger* log,
41 Index state_idx_1, Index state_idx_2, std::string qmtype,
42 bool useRI = true)
43 : orbitals1_(orbitals1),
44 orbitals2_(orbitals2),
45 pLog_(log),
46 state_idx_1_{state_idx_1},
47 state_idx_2_{state_idx_2},
48 qmtype_str_(qmtype),
49 useRI_(useRI) {};
50
51 // Function to set up the ERI matrices
52 void setUpMatrices();
53
54 void configure();
55
56 double Calculate_angle() const;
57 std::pair<Eigen::VectorXd, Eigen::MatrixXd> Calculate_diabatic_H(
58 const double angle) const;
59
60 private:
65
69
72
73 std::string qmtype_str_;
74
75 bool hasRI_;
76 bool useRI_;
77
78 double E1_;
79 double E2_;
80
81 double CalculateR(const Eigen::MatrixXd& D_JK,
82 const Eigen::MatrixXd& D_LM) const;
83 Eigen::MatrixXd CalculateU(const double phi) const;
84 Eigen::Tensor<double, 4> CalculateRtensor() const;
85};
86
87} // namespace xtp
88} // namespace votca
89
90#endif // VOTCA_XTP_ERDIABATIZATION_H
Container to hold Basisfunctions for all atoms.
Definition aobasis.h:42
Eigen::Tensor< double, 4 > CalculateRtensor() const
ERDiabatization(Orbitals &orbitals1, Orbitals &orbitals2, Logger *log, Index state_idx_1, Index state_idx_2, std::string qmtype, bool useRI=true)
std::pair< Eigen::VectorXd, Eigen::MatrixXd > Calculate_diabatic_H(const double angle) const
double CalculateR(const Eigen::MatrixXd &D_JK, const Eigen::MatrixXd &D_LM) const
Eigen::MatrixXd CalculateU(const double phi) const
Takes a density matrix and and an auxiliary basis set and calculates the electron repulsion integrals...
Definition ERIs.h:35
Logger is used for thread-safe output of messages.
Definition logger.h:164
container for molecular orbitals
Definition orbitals.h:46
base class for all analysis tools
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26