votca 2026-dev
Loading...
Searching...
No Matches
podcouplingtool.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_PODCOUPLINGTOOL_H
22#define VOTCA_XTP_PODCOUPLINGTOOL_H
23
24// Local VOTCA includes
25#include "votca/xtp/logger.h"
27#include "votca/xtp/qmtool.h"
28#include <votca/tools/types.h>
29
30namespace votca {
31namespace xtp {
32
33// QMTool wrapping PODCoupling. Unlike Coupling (monomer and dimer outputs)
34// or Diabatization (adiabatic states), it reads a single converged .orb file
35// of the supermolecule plus two atom-index fragment definitions.
36class PodCouplingTool final : public QMTool {
37 public:
38 PodCouplingTool() = default;
39 ~PodCouplingTool() = default;
40
41 std::string Identify() const { return "podcoupling"; }
42
43 protected:
44 void ParseOptions(const tools::Property& user_options) final;
45 bool Run() final;
46
47 private:
48 std::string orb_file_;
50
53
54 // Range of orbitals to cover for each fragment, matching
55 // DFTcoupling's own numberofstatesA_/numberofstatesB_ convention
56 // exactly (XML option names levA/levB, same as dftcoupling.cc's own
57 // options.get("levA")/("levB")) -- per direct agreement with the
58 // user to mirror DFTcoupling's own established behavior here: BOTH
59 // occupied (hole-transport) and virtual (electron-transport)
60 // orbitals are covered together, in a single call, rather than this
61 // tool's own, earlier, single-orbital-pair-only interface. N=1
62 // covers just each fragment's own {HOMO, LUMO}.
65
66 // Optional cube-file export of the fragment orbitals actually
67 // computed (the numberofstatesA_/B_ range above), per direct user
68 // request -- reuses the existing CubeFile_Writer, with its own
69 // steps/padding options matching gencube's own naming
70 // (xsteps/ysteps/zsteps/padding) directly, rather than inventing new
71 // option names for the same underlying quantities.
73 Eigen::Array<Index, 3, 1> cube_steps_;
75};
76
77} // namespace xtp
78} // namespace votca
79
80#endif // VOTCA_XTP_PODCOUPLINGTOOL_H
class to manage program options with xml serialization functionality
Definition property.h:55
Logger is used for thread-safe output of messages.
Definition logger.h:164
Eigen::Array< Index, 3, 1 > cube_steps_
std::string Identify() const
Calculator name.
std::vector< Index > fragment_B_atoms_
std::vector< Index > fragment_A_atoms_
void ParseOptions(const tools::Property &user_options) final
STL namespace.
Provides a means for comparing floating point numbers.
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26