votca 2024.1-dev
Loading...
Searching...
No Matches
einternal.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_EINTERNAL_H
22#define VOTCA_XTP_EINTERNAL_H
23
24// Local VOTCA includes
26#include "votca/xtp/qmstate.h"
27
28namespace votca {
29namespace xtp {
30
31class EInternal final : public QMCalculator {
32 public:
33 EInternal() = default;
34 ~EInternal() = default;
35
36 std::string Identify() const { return "einternal"; }
37
38 bool WriteToStateFile() const { return true; }
39
40 protected:
41 void ParseOptions(const tools::Property &user_options);
42 bool Evaluate(Topology &top);
43
44 private:
45 void ParseEnergies();
46
47 std::map<std::string, QMStateCarrierStorage<double> > seg_U_xX_nN_;
48 std::map<std::string, QMStateCarrierStorage<double> > seg_U_nX_nN_;
49 std::map<std::string, QMStateCarrierStorage<double> > seg_U_xN_xX_;
50
51 std::map<std::string, QMStateCarrierStorage<bool> > seg_has_state_;
52
53 std::map<std::string, bool> has_seg_;
54
55 std::string energies_file_;
56};
57
58} // namespace xtp
59} // namespace votca
60
61#endif // VOTCA_XTP_EINTERNAL_H
class to manage program options with xml serialization functionality
Definition property.h:55
std::string Identify() const
Calculator name.
Definition einternal.h:36
void ParseOptions(const tools::Property &user_options)
Definition einternal.cc:27
std::map< std::string, bool > has_seg_
Definition einternal.h:53
std::map< std::string, QMStateCarrierStorage< double > > seg_U_xN_xX_
Definition einternal.h:49
bool WriteToStateFile() const
Definition einternal.h:38
std::map< std::string, QMStateCarrierStorage< double > > seg_U_xX_nN_
Definition einternal.h:47
bool Evaluate(Topology &top)
Definition einternal.cc:83
std::string energies_file_
Definition einternal.h:55
std::map< std::string, QMStateCarrierStorage< bool > > seg_has_state_
Definition einternal.h:51
std::map< std::string, QMStateCarrierStorage< double > > seg_U_nX_nN_
Definition einternal.h:48
Container for segments and box and atoms.
Definition topology.h:41
base class for all analysis tools
Definition basebead.h:33