votca 2024.2-dev
Loading...
Searching...
No Matches
esp2multipole.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2020 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_ESP2MULTIPOLE_H
22#define VOTCA_XTP_ESP2MULTIPOLE_H
23
24// Standard includes
25#include <cstdio>
26
27// Third party includes
28#include <boost/filesystem.hpp>
29
30// VOTCA includes
32
33// Local VOTCA includes
34#include "classicalsegment.h"
35#include "espfit.h"
36#include "logger.h"
37#include "orbitals.h"
38
39namespace votca {
40namespace xtp {
41
43 public:
44 Esp2multipole(Logger& log) : log_(log) {
45 pairconstraint_.resize(0);
46 regionconstraint_.resize(0);
47 }
48
49 std::string Identify() { return "esp2multipole"; }
50
51 void Initialize(tools::Property& options);
52
53 StaticSegment Extractingcharges(const Orbitals& orbitals) const;
54
55 std::string GetStateString() const { return state_.ToString(); }
56
57 private:
58 void PrintDipoles(const Orbitals& orbitals, const StaticSegment& seg) const;
59
61 std::string method_;
62 std::string gridsize_;
66 bool do_svd_ = false;
68
70 std::vector<std::pair<Index, Index> > pairconstraint_; // pairconstraint[i]
71 // is all the
72 // atomindices which
73 // have the same
74 // charge
75 std::vector<QMFragment<double> > regionconstraint_;
76};
77
78} // namespace xtp
79} // namespace votca
80
81#endif // VOTCA_XTP_ESP2MULTIPOLE_H
class to manage program options with xml serialization functionality
Definition property.h:55
std::vector< std::pair< Index, Index > > pairconstraint_
std::vector< QMFragment< double > > regionconstraint_
void Initialize(tools::Property &options)
void PrintDipoles(const Orbitals &orbitals, const StaticSegment &seg) const
std::string GetStateString() const
StaticSegment Extractingcharges(const Orbitals &orbitals) const
Logger is used for thread-safe output of messages.
Definition logger.h:164
container for molecular orbitals
Definition orbitals.h:46
Identifier for QMstates. Strings like S1 are converted into enum +zero indexed int.
Definition qmstate.h:132
std::string ToString() const
Definition qmstate.cc:146
base class for all analysis tools
Definition basebead.h:33