votca 2026-dev
Loading...
Searching...
No Matches
staticregion.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_STATICREGION_H
22#define VOTCA_XTP_STATICREGION_H
23
24// Local VOTCA includes
25#include "mmregion.h"
26
27namespace votca {
28namespace xtp {
29class QMRegion;
30class PolarRegion;
31class StaticRegion;
32class EwaldRegion;
33
34class StaticRegion : public MMRegion<StaticSegment> {
35 public:
37
38 std::string identify() const override { return "staticregion"; }
39
40 void Initialize(const tools::Property&) override { return; }
41
42 bool Converged() const override { return true; }
43
44 double Etotal() const override { return 0.0; }
45
46 void Evaluate(std::vector<std::unique_ptr<Region> >&) override { return; }
47 void Reset() override { return; };
48
49 protected:
50 void ResetRegion() { return; }
51 void AppendResult(tools::Property&) const override { return; }
52 double InteractwithQMRegion(const QMRegion&) override { return 0.0; }
53 double InteractwithPolarRegion(const PolarRegion&) override { return 0.0; }
54 double InteractwithStaticRegion(const StaticRegion&) override { return 0.0; }
55 // A static region has no polarizability, so the background's field
56 // does no work on it. Genuinely zero, like the three above.
57 double InteractwithEwaldRegion(const EwaldRegion&) override { return 0.0; }
58
59 private:
60};
61
62} // namespace xtp
63} // namespace votca
64
65#endif // VOTCA_XTP_STATICREGION_H
class to manage program options with xml serialization functionality
Definition property.h:55
The periodic Ewald background, as a Region.
Definition ewaldregion.h:76
Logger is used for thread-safe output of messages.
Definition logger.h:164
MMRegion(Index id, Logger &log)
Definition mmregion.h:38
double Etotal() const override
void Initialize(const tools::Property &) override
bool Converged() const override
StaticRegion(Index id, Logger &log)
void Evaluate(std::vector< std::unique_ptr< Region > > &) override
void AppendResult(tools::Property &) const override
double InteractwithPolarRegion(const PolarRegion &) override
double InteractwithQMRegion(const QMRegion &) override
void Reset() override
std::string identify() const override
double InteractwithStaticRegion(const StaticRegion &) override
double InteractwithEwaldRegion(const EwaldRegion &) override
ClassicalSegment< StaticSite > StaticSegment
Provides a means for comparing floating point numbers.
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26