votca 2026-dev
Loading...
Searching...
No Matches
gwbse.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_GWBSE_H
22#define VOTCA_XTP_GWBSE_H
23
24// Standard includes
25#include <fstream>
26
27// VOTCA includes
29
30// Local VOTCA includes
31#include "bse.h"
32#include "bse_uks.h"
33#include "eigen.h"
34#include "gw.h"
35#include "gw_uks.h"
36#include "logger.h"
37#include "qmfragment.h"
38
39namespace votca {
40namespace xtp {
41class Orbitals;
42class AOBasis;
57
58class GWBSE {
59 public:
60 GWBSE(Orbitals& orbitals) : orbitals_(orbitals) {};
61 void Initialize(tools::Property& options);
62
63 std::string Identify() { return "gwbse"; }
64
65 void setLogger(Logger* pLog) { pLog_ = pLog; }
66
67 bool Evaluate();
68
69 void addoutput(tools::Property& summary);
70
71 private:
72 Eigen::MatrixXd CalculateVXC(const AOBasis& dftbasis);
73 std::pair<Eigen::MatrixXd, Eigen::MatrixXd> CalculateVXCSpinResolved(
74 const AOBasis& dftbasis);
78 // program tasks
79
80 bool do_gw_ = false;
81 bool do_bse_singlets_ = false;
82 bool do_bse_triplets_ = false;
84 bool do_bse_exciton_uks_ = false;
85
86 // options for own Vxc calculation
87 std::string functional_;
88 std::string grid_;
89
92
93 std::string sigma_plot_states_;
97
98 // basis sets
99 std::string auxbasis_name_;
100 std::string dftbasis_name_;
101
102 std::vector<QMFragment<BSE_Population> > fragments_;
103};
104} // namespace xtp
105} // namespace votca
106
107#endif // VOTCA_XTP_GWBSE_H
class to manage program options with xml serialization functionality
Definition property.h:55
Container to hold Basisfunctions for all atoms.
Definition aobasis.h:42
bool Evaluate()
Definition gwbse.cc:719
bool do_bse_exciton_uks_
Definition gwbse.h:84
std::pair< Eigen::MatrixXd, Eigen::MatrixXd > CalculateVXCSpinResolved(const AOBasis &dftbasis)
Definition gwbse.cc:687
std::vector< QMFragment< BSE_Population > > fragments_
Definition gwbse.h:102
std::string sigma_plot_states_
Definition gwbse.h:93
BSE::options bseopt_
Definition gwbse.h:91
void addoutput(tools::Property &summary)
Definition gwbse.cc:477
bool do_bse_triplets_
Definition gwbse.h:82
std::string Identify()
Definition gwbse.h:63
std::string grid_
Definition gwbse.h:88
std::string auxbasis_name_
Definition gwbse.h:99
bool do_bse_singlets_
Definition gwbse.h:81
GWBSE(Orbitals &orbitals)
Definition gwbse.h:60
Orbitals & orbitals_
Definition gwbse.h:77
Eigen::MatrixXd CalculateVXC(const AOBasis &dftbasis)
Definition gwbse.cc:647
Index sigma_plot_steps_
Definition gwbse.h:94
std::string functional_
Definition gwbse.h:87
std::string dftbasis_name_
Definition gwbse.h:100
void Initialize(tools::Property &options)
Definition gwbse.cc:60
Index CountCoreLevels()
Definition gwbse.cc:46
GW::options gwopt_
Definition gwbse.h:90
double sigma_plot_spacing_
Definition gwbse.h:95
void setLogger(Logger *pLog)
Definition gwbse.h:65
Logger * pLog_
Definition gwbse.h:76
std::string sigma_plot_filename_
Definition gwbse.h:96
bool do_dynamical_screening_bse_
Definition gwbse.h:83
Logger is used for thread-safe output of messages.
Definition logger.h:164
Container for molecular orbitals and derived one-particle data.
Definition orbitals.h:47
Provides a means for comparing floating point numbers.
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26