votca 2024.2-dev
Loading...
Searching...
No Matches
qmmm.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_QMMM_H
22#define VOTCA_XTP_QMMM_H
23
24// Local VOTCA includes
26
27namespace votca {
28namespace xtp {
29
38class QMMM final : public ParallelXJobCalc<std::vector<Job> > {
39 public:
40 std::string Identify() const { return "qmmm"; }
42 void WriteJobFile(const Topology& top);
43 void ReadJobFile(Topology& top);
44
45 protected:
46 void ParseSpecificOptions(const tools::Property& user_options);
47
48 private:
49 bool hasQMRegion() const;
50 Job createJob(const Segment& seg, const QMState& state, Index jobid) const;
51 std::string getFirstRegionName() const;
52
53 std::pair<std::string, tools::Property> regions_def_;
54
56 bool print_regions_pdb_ = false;
57 bool use_gs_for_ex_ = false;
58 std::vector<QMState> states_;
59 std::string which_segments_;
60};
61
62} // namespace xtp
63} // namespace votca
64#endif // VOTCA_XTP_QMMM_H
class to manage program options with xml serialization functionality
Definition property.h:55
Framework for threaded execution.
Definition thread.h:35
QM/MM with different regions around.
Definition qmmm.h:38
std::string which_segments_
Definition qmmm.h:59
Index max_iterations_
Definition qmmm.h:55
bool print_regions_pdb_
Definition qmmm.h:56
void WriteJobFile(const Topology &top)
Definition qmmm.cc:219
std::string getFirstRegionName() const
Definition qmmm.cc:209
bool hasQMRegion() const
Definition qmmm.cc:200
std::vector< QMState > states_
Definition qmmm.h:58
Job::JobResult EvalJob(const Topology &top, Job &job, QMThread &Thread)
Definition qmmm.cc:63
std::string Identify() const
Calculator name.
Definition qmmm.h:40
void ParseSpecificOptions(const tools::Property &user_options)
Definition qmmm.cc:44
std::pair< std::string, tools::Property > regions_def_
Definition qmmm.h:53
void ReadJobFile(Topology &top)
Definition qmmm.cc:281
bool use_gs_for_ex_
Definition qmmm.h:57
Job createJob(const Segment &seg, const QMState &state, Index jobid) const
Definition qmmm.cc:257
Identifier for QMstates. Strings like S1 are converted into enum +zero indexed int.
Definition qmstate.h:132
Container for segments and box and atoms.
Definition topology.h:41
base class for all analysis tools
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26