votca 2026-dev
Loading...
Searching...
No Matches
networkgen.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2026 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_NETWORKGEN_H
22#define VOTCA_XTP_NETWORKGEN_H
23
24// Local VOTCA includes
25#include "votca/xtp/logger.h"
26#include "votca/xtp/qmtool.h"
28
29namespace votca {
30namespace xtp {
31
36class NetworkGen final : public QMTool {
37 public:
38 NetworkGen() = default;
39 ~NetworkGen() override = default;
40
41 std::string Identify() const override { return "networkgen"; }
42
43 protected:
44 void ParseOptions(const tools::Property& options) override;
45 bool Run() override;
46
47 private:
48 std::string parameterfile_;
49 std::string statefile_;
50 std::string energyfile_;
52 std::vector<double> box_; // nm, empty: from the density of the file
53 Index seed_ = 0; // 0: from the file
54 double temperature_ = 300.0;
55 double trap_factor_ = 1.0;
57};
58
59} // namespace xtp
60} // namespace votca
61
62#endif // VOTCA_XTP_NETWORKGEN_H
class to manage program options with xml serialization functionality
Definition property.h:55
Logger is used for thread-safe output of messages.
Definition logger.h:164
std::string statefile_
Definition networkgen.h:49
std::string parameterfile_
Definition networkgen.h:48
void ParseOptions(const tools::Property &options) override
Definition networkgen.cc:42
~NetworkGen() override=default
std::string Identify() const override
Calculator name.
Definition networkgen.h:41
bool Run() override
Definition networkgen.cc:61
std::string energyfile_
Definition networkgen.h:50
std::vector< double > box_
Definition networkgen.h:52
Provides a means for comparing floating point numbers.
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26