votca 2024.1-dev
Loading...
Searching...
No Matches
gwbseengine.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2022 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_GWBSEENGINE_H
22#define VOTCA_XTP_GWBSEENGINE_H
23
24// VOTCA includes
26
27// Local VOTCA includes
28#include "logger.h"
29
30namespace votca {
31namespace xtp {
32class QMPackage;
33class Orbitals;
34
44 public:
45 std::string Identify() { return "gwbse_engine"; }
46
47 void Initialize(tools::Property& options, std::string archive_filename);
48 void ExcitationEnergies(Orbitals& orbitals);
49
50 void setLog(Logger* pLog) { pLog_ = pLog; }
51
52 void setQMPackage(QMPackage* qmpackage) { qmpackage_ = qmpackage; }
53
54 std::string GetDFTLog() const { return dftlog_file_; };
55
56 void setLoggerFile(std::string logger_file) { logger_file_ = logger_file; };
57
58 const tools::Property& ReportSummary() const { return summary_; };
59
60 private:
62
64
65 // task options
66 bool do_guess_ = false;
67 bool do_dft_input_ = false;
68 bool do_dft_run_ = false;
69 bool do_dft_parse_ = false;
70 bool do_gwbse_ = false;
71 bool do_localize_ = false;
72 bool do_dft_in_dft_ = false;
73
74 // DFT log and MO file names
75 std::string MO_file_; // file containing the MOs from qmpackage...
76 std::string dftlog_file_; // file containing the Energies etc... from
77 // qmpackage...
78 std::string logger_file_;
79 std::string archive_file_;
80 std::string guess_archiveA_;
81 std::string guess_archiveB_;
82
83 // Options for GWBSE module
88
89 void WriteLoggerToFile(Logger* pLog);
90};
91
92} // namespace xtp
93} // namespace votca
94
95#endif // VOTCA_XTP_GWBSEENGINE_H
class to manage program options with xml serialization functionality
Definition property.h:55
Electronic Excitations via Density-Functional Theory.
Definition gwbseengine.h:43
void setLoggerFile(std::string logger_file)
Definition gwbseengine.h:56
std::string archive_file_
Definition gwbseengine.h:79
std::string GetDFTLog() const
Definition gwbseengine.h:54
void WriteLoggerToFile(Logger *pLog)
tools::Property gwbse_options_
Definition gwbseengine.h:84
std::string Identify()
Definition gwbseengine.h:45
tools::Property dft_in_dft_options_
Definition gwbseengine.h:86
void ExcitationEnergies(Orbitals &orbitals)
const tools::Property & ReportSummary() const
Definition gwbseengine.h:58
void setLog(Logger *pLog)
Definition gwbseengine.h:50
std::string guess_archiveA_
Definition gwbseengine.h:80
void setQMPackage(QMPackage *qmpackage)
Definition gwbseengine.h:52
tools::Property localize_options_
Definition gwbseengine.h:85
tools::Property summary_
Definition gwbseengine.h:87
void Initialize(tools::Property &options, std::string archive_filename)
std::string guess_archiveB_
Definition gwbseengine.h:81
Logger is used for thread-safe output of messages.
Definition logger.h:164
container for molecular orbitals
Definition orbitals.h:46
base class for all analysis tools
Definition basebead.h:33