votca 2026-dev
Loading...
Searching...
No Matches
kmcmultiple.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_KMCMULTIPLE_H
22#define VOTCA_XTP_KMCMULTIPLE_H
23
24// Standard includes
25#include <cstdint>
26#include <string>
27
28// 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
48class KMCMultiple final : public QMCalculator {
49 public:
50 KMCMultiple() = default;
51 ~KMCMultiple() override = default;
52
53 std::string Identify() const override { return "kmcmultiple"; }
54 bool WriteToStateFile() const override { return false; }
55
56 protected:
57 void ParseOptions(const tools::Property& options) override;
58 bool Evaluate(Topology& top) override;
59
60 private:
63 double temperature_ = 0.0; // kT in Hartree
64 Eigen::Vector3d field_ = Eigen::Vector3d::Zero(); // Hartree/bohr
65 Eigen::Vector3d field_Vm_ = Eigen::Vector3d::Zero();
66 std::string injection_pattern_ = "*";
67 std::string ignore_types_;
69 bool steps_ = false; // runtime given as number of events
70 double runtime_ = 0.0;
71 double outputtime_ = 0.0;
72 std::string waitingtime_ = "exponential";
73 std::string trajectoryfile_;
74 std::string timefile_;
75 std::string ratefile_;
76 std::string occfile_;
77 std::string resultfile_;
78 bool exact_ = true;
79
80 void WriteRates(const Topology& top);
81 void WriteOccupation(const ToFGraph& graph,
82 const BulkSimulation::Result& result);
83 void WriteTrajectory(const BulkSimulation::Result& result);
84 void WriteTimeFile(const BulkSimulation::Result& result);
86 double Charge() const;
87};
88
89} // namespace xtp
90} // namespace votca
91
92#endif // VOTCA_XTP_KMCMULTIPLE_H
class to manage program options with xml serialization functionality
Definition property.h:55
std::string Identify() const override
Calculator name.
Definition kmcmultiple.h:53
void WriteOccupation(const ToFGraph &graph, const BulkSimulation::Result &result)
void WriteRates(const Topology &top)
BulkSimulation::Settings settings_
Definition kmcmultiple.h:68
std::string trajectoryfile_
Definition kmcmultiple.h:73
std::string ignore_types_
Definition kmcmultiple.h:67
Eigen::Vector3d field_
Definition kmcmultiple.h:64
Eigen::Vector3d field_Vm_
Definition kmcmultiple.h:65
~KMCMultiple() override=default
std::string injection_pattern_
Definition kmcmultiple.h:66
void ParseOptions(const tools::Property &options) override
bool WriteToStateFile() const override
Definition kmcmultiple.h:54
void WriteTrajectory(const BulkSimulation::Result &result)
void WriteTimeFile(const BulkSimulation::Result &result)
bool Evaluate(Topology &top) override
double Charge() const
sign of the carrier charge (0 for neutral excitations)
Logger is used for thread-safe output of messages.
Definition logger.h:164
Hopping graph for time-of-flight (ToF) transport.
Definition tofgraph.h:77
Container for segments and box and atoms.
Definition topology.h:41
Provides a means for comparing floating point numbers.
Definition basebead.h:33