votca 2024.1-dev
Loading...
Searching...
No Matches
gmhdiabatization.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_GMHDIABATIZATION_H
22#define VOTCA_XTP_GMHDIABATIZATION_H
23
24#include "logger.h"
25#include "votca/xtp/orbitals.h"
26#include "votca/xtp/qmtool.h"
27#include <cstdio>
29#include <votca/tools/types.h>
30#include <votca/xtp/aobasis.h>
31
32namespace votca {
33namespace xtp {
34
36 public:
38
39 GMHDiabatization(Orbitals& orbitals1, Orbitals& orbitals2, Logger* log,
40 Index state_idx_1, Index state_idx_2, std::string qmstate)
41 : orbitals1_(orbitals1),
42 orbitals2_(orbitals2),
43 pLog_(log),
44 state_idx_1_(state_idx_1),
45 state_idx_2_(state_idx_2),
46 qmstate_str_(qmstate) {};
47
48 void configure();
49
50 std::pair<double, double> calculate_coupling();
51 const std::pair<double, double> adiabatic_energies() {
52 return std::pair<double, double>(E1_, E2_);
53 };
54
55 private:
60
62
65 std::string qmstate_str_;
66
67 double E1_;
68 double E2_;
69
70 Eigen::Vector3d transition_dipole(QMState state1, QMState state2);
71};
72} // namespace xtp
73} // namespace votca
74
75#endif // VOTCA_XTP_GMHDIABATIZATION_H
Container to hold Basisfunctions for all atoms.
Definition aobasis.h:42
std::pair< double, double > calculate_coupling()
Eigen::Vector3d transition_dipole(QMState state1, QMState state2)
GMHDiabatization(Orbitals &orbitals1, Orbitals &orbitals2, Logger *log, Index state_idx_1, Index state_idx_2, std::string qmstate)
const std::pair< double, double > adiabatic_energies()
Logger is used for thread-safe output of messages.
Definition logger.h:164
container for molecular orbitals
Definition orbitals.h:46
Identifier for QMstates. Strings like S1 are converted into enum +zero indexed int.
Definition qmstate.h:132
base class for all analysis tools
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26