votca 2026-dev
Loading...
Searching...
No Matches
grw.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_GRW_H
22#define VOTCA_XTP_GRW_H
23
24// Local VOTCA includes
26#include "votca/xtp/logger.h"
28#include "votca/xtp/tofgraph.h"
29
30namespace votca {
31namespace xtp {
32
38class GRW final : public QMCalculator {
39 public:
40 GRW() = default;
41 ~GRW() override = default;
42
43 std::string Identify() const override { return "grw"; }
44 bool WriteToStateFile() const override { return false; }
45
46 protected:
47 void ParseOptions(const tools::Property& options) override;
48 bool Evaluate(Topology& top) override;
49
50 private:
51 void WriteSources(const ToFGraph& graph,
52 const GraphRandomWalk::Result& result) const;
53 void WriteOccupation(const ToFGraph& graph,
54 const GraphRandomWalk::Result& result) const;
55
58 double temperature_ = 0.0; // kT in Hartree
59 Eigen::Vector3d field_ = Eigen::Vector3d::Zero(); // Hartree/bohr
60 Eigen::Vector3d field_Vm_ = Eigen::Vector3d::Zero();
66 std::string sourcefile_;
67 std::string occupationfile_;
68 std::string resultfile_;
69};
70
71} // namespace xtp
72} // namespace votca
73
74#endif // VOTCA_XTP_GRW_H
class to manage program options with xml serialization functionality
Definition property.h:55
std::string occupationfile_
Definition grw.h:67
QMStateType carriertype_
Definition grw.h:57
GraphRandomWalk::Settings settings_
Definition grw.h:64
std::string Identify() const override
Calculator name.
Definition grw.h:43
Index carriers_
Definition grw.h:62
void WriteOccupation(const ToFGraph &graph, const GraphRandomWalk::Result &result) const
Definition grw.cc:202
void WriteSources(const ToFGraph &graph, const GraphRandomWalk::Result &result) const
Definition grw.cc:181
void ParseOptions(const tools::Property &options) override
Definition grw.cc:38
bool Evaluate(Topology &top) override
Definition grw.cc:67
ToFGraph::Options tof_
Definition grw.h:61
GraphRandomWalk::Observable observable_
Definition grw.h:65
bool WriteToStateFile() const override
Definition grw.h:44
Logger log_
Definition grw.h:56
Eigen::Vector3d field_Vm_
Definition grw.h:60
Eigen::Vector3d field_
Definition grw.h:59
~GRW() override=default
double temperature_
Definition grw.h:58
std::string sourcefile_
Definition grw.h:66
std::string resultfile_
Definition grw.h:68
GraphRandomWalk::Solver solver_
Definition grw.h:63
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
Eigen::Index Index
Definition types.h:26