votca 2024.2-dev
Loading...
Searching...
No Matches
rate_engine.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_RATE_ENGINE_H
22#define VOTCA_XTP_RATE_ENGINE_H
23
24// Local VOTCA includes
25#include "eigen.h"
26#include "qmpair.h"
27#include "qmstate.h"
28
29namespace votca {
30namespace xtp {
31
33
34 public:
35 struct PairRates {
36 double rate12 = 0.0;
37 double rate21 = 0.0;
38 };
39
40 Rate_Engine(double temperature, const Eigen::Vector3d& field)
41 : temperature_(temperature), field_(field) {};
42
43 PairRates Rate(const QMPair& pair, QMStateType carriertype) const;
44
45 friend std::ostream& operator<<(std::ostream& out,
46 const Rate_Engine& rate_engine);
47
48 private:
49 double Marcusrate(double Jeff2, double deltaG, double reorg) const;
50 std::string ratetype_ = "marcus";
51 double temperature_ = 0.0; // units:Hartree
52 Eigen::Vector3d field_ = Eigen::Vector3d::Zero(); // units:Hartree/bohr
53};
54
55} // namespace xtp
56} // namespace votca
57
58#endif // VOTCA_XTP_RATE_ENGINE_H
Eigen::Vector3d field_
Definition rate_engine.h:52
friend std::ostream & operator<<(std::ostream &out, const Rate_Engine &rate_engine)
double Marcusrate(double Jeff2, double deltaG, double reorg) const
PairRates Rate(const QMPair &pair, QMStateType carriertype) const
Rate_Engine(double temperature, const Eigen::Vector3d &field)
Definition rate_engine.h:40
base class for all analysis tools
Definition basebead.h:33