votca 2026-dev
Loading...
Searching...
No Matches
crfit.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_CRFIT_H
22#define VOTCA_XTP_CRFIT_H
23
24// Local VOTCA includes
26#include "votca/xtp/logger.h"
28#include "votca/xtp/qmtool.h"
29
30namespace votca {
31namespace xtp {
32
40class CRFit final : public QMTool {
41 public:
42 std::string Identify() const final { return "crfit"; }
43
44 protected:
45 void ParseOptions(const tools::Property& options) final;
46 bool Run() final;
47
48 private:
49 std::string MethodLabel() const;
50 void WriteCrm(const QMMolecule& mol,
51 const ChargeResponseFit::Result& r) const;
52 void WriteJson(const QMMolecule& mol,
53 const ChargeResponseFit::Result& r) const;
54 void WriteMps(const QMMolecule& mol,
55 const ChargeResponseFit::Result& r) const;
56
57 mutable Logger log_;
59 std::string xyzfile_;
60 std::string mpsfile_;
61 std::string output_;
63 double scf_error_ = 1e-9;
64};
65
66} // namespace xtp
67} // namespace votca
68
69#endif // VOTCA_XTP_CRFIT_H
class to manage program options with xml serialization functionality
Definition property.h:55
Charge-response parametrization of a molecule with xtpdft: the charge-response matrix Pi (....
Definition crfit.h:40
Logger log_
Definition crfit.h:57
void WriteJson(const QMMolecule &mol, const ChargeResponseFit::Result &r) const
Definition crfit.cc:186
void WriteMps(const QMMolecule &mol, const ChargeResponseFit::Result &r) const
Definition crfit.cc:230
tools::Property dftoptions_
Definition crfit.h:58
std::string Identify() const final
Calculator name.
Definition crfit.h:42
std::string mpsfile_
Definition crfit.h:60
std::string xyzfile_
Definition crfit.h:59
std::string MethodLabel() const
Definition crfit.cc:126
bool Run() final
Definition crfit.cc:79
ChargeResponseFit::FitOptions fit_
Definition crfit.h:62
void ParseOptions(const tools::Property &options) final
Definition crfit.cc:41
std::string output_
Definition crfit.h:61
double scf_error_
Definition crfit.h:63
void WriteCrm(const QMMolecule &mol, const ChargeResponseFit::Result &r) const
Definition crfit.cc:136
Parametrization of a charge-response molecule (see ChargeResponse) from the static density response o...
Logger is used for thread-safe output of messages.
Definition logger.h:164
STL namespace.
Provides a means for comparing floating point numbers.
Definition basebead.h:33