votca 2026-dev
Loading...
Searching...
No Matches
kmctof.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2026 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_KMCTOF_H
22#define VOTCA_XTP_KMCTOF_H
23
24// Standard includes
25#include <cstdint>
26#include <string>
27#include <vector>
28
29// Local VOTCA includes
30#include "votca/xtp/kmcengine.h"
31#include "votca/xtp/logger.h"
33#include "votca/xtp/tofgraph.h"
34
35namespace votca {
36namespace xtp {
37
45class KMCToF final : public QMCalculator {
46 public:
47 KMCToF() = default;
48 ~KMCToF() override = default;
49
50 std::string Identify() const override { return "kmctof"; }
51 bool WriteToStateFile() const override { return false; }
52
53 protected:
54 void ParseOptions(const tools::Property& options) override;
55 bool Evaluate(Topology& top) override;
56
57 private:
60 double temperature_ = 0.0; // kT in Hartree
61 Eigen::Vector3d field_ = Eigen::Vector3d::Zero(); // Hartree/bohr
62 Eigen::Vector3d field_Vm_ = Eigen::Vector3d::Zero();
64 std::uint64_t seed_ = 1;
65 Index runs_ = 1000;
66 std::vector<KMCEngine::Pulse> pulses_;
68 std::string waitingtime_ = "exponential";
69 std::string runfile_;
70 std::string currentfile_;
71 std::string resultfile_;
72 double tmin_ = 1e-15;
73 double tmax_ = 1.0;
75};
76
77} // namespace xtp
78} // namespace votca
79
80#endif // VOTCA_XTP_KMCTOF_H
class to manage program options with xml serialization functionality
Definition property.h:55
std::string currentfile_
Definition kmctof.h:70
ToFGraph::Options tof_
Definition kmctof.h:63
std::string Identify() const override
Calculator name.
Definition kmctof.h:50
QMStateType carriertype_
Definition kmctof.h:59
std::uint64_t seed_
Definition kmctof.h:64
bool Evaluate(Topology &top) override
Definition kmctof.cc:90
bool WriteToStateFile() const override
Definition kmctof.h:51
Eigen::Vector3d field_Vm_
Definition kmctof.h:62
std::string runfile_
Definition kmctof.h:69
double temperature_
Definition kmctof.h:60
void ParseOptions(const tools::Property &options) override
Definition kmctof.cc:43
~KMCToF() override=default
KMCEngine::Limits limits_
Definition kmctof.h:67
std::string waitingtime_
Definition kmctof.h:68
std::string resultfile_
Definition kmctof.h:71
Index bins_per_decade_
Definition kmctof.h:74
std::vector< KMCEngine::Pulse > pulses_
Definition kmctof.h:66
Eigen::Vector3d field_
Definition kmctof.h:61
Logger is used for thread-safe output of messages.
Definition logger.h:164
Container for segments and box and atoms.
Definition topology.h:41
Provides a means for comparing floating point numbers.
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26