votca 2026-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
29// VOTCA includes
31
32// Local VOTCA includes
33#include "classicalsegment.h"
34#include "espfit.h"
35#include "logger.h"
36#include "orbitals.h"
37
38namespace votca {
39namespace xtp {
40
42 public:
43 Esp2multipole(Logger& log) : log_(log) {
44 pairconstraint_.resize(0);
45 regionconstraint_.resize(0);
46 }
47
48 std::string Identify() { return "esp2multipole"; }
49
50 void Initialize(tools::Property& options);
51
52 StaticSegment Extractingcharges(const Orbitals& orbitals) const;
53
54 std::string GetStateString() const { return state_.ToString(); }
55
56 private:
57 void PrintDipoles(const Orbitals& orbitals, const StaticSegment& seg) const;
58
60 std::string method_;
61 std::string gridsize_;
65 bool do_svd_ = false;
67
69 std::vector<std::pair<Index, Index> > pairconstraint_; // pairconstraint[i]
70 // is all the
71 // atomindices which
72 // have the same
73 // charge
74 std::vector<QMFragment<double> > regionconstraint_;
75};
76
77} // namespace xtp
78} // namespace votca
79
80#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 and derived one-particle data.
Definition orbitals.h:47
Identifier for QMstates. Strings like S1 are converted into enum +zero indexed int.
Definition qmstate.h:135
ClassicalSegment< StaticSite > StaticSegment
Provides a means for comparing floating point numbers.
Definition basebead.h:33