n2p2 - A neural network potential package
EwaldTruncKolafaOptEta.h
Go to the documentation of this file.
1//
2// Created by philipp on 2/17/23.
3//
4
5#ifndef N2P2_EWALDTRUNCKOLAFAOPTETA_H
6#define N2P2_EWALDTRUNCKOLAFAOPTETA_H
7
8#include "IEwaldTrunc.h"
9
10namespace nnp
11{
12
14 {
15 public:
16 void calculateParameters(EwaldGlobalSettings const& settings,
17 EwaldStructureData const& sData,
18 EwaldParameters &params) override;
19 bool publishedNewCutoffs() override;
20 virtual bool isEstimateReliable(
21 EwaldGlobalSettings const& ,
22 EwaldParameters const& ) const override { return true; };
23 private:
24 bool newCutoffs = true;
26 double C = 0.0;
27 double s = 1.0;
28 double eta = 1.0;
29 double prec = 1.e-6;
30 double volume = 0.0;
31 double fourPiEps = 1.0;
32 std::size_t numAtoms = 0;
33
34 void calculateEta();
35 double calculateRCut();
36 double calculateKCut();
37 void calculateS();
38 void calculateC(double const qMax);
39 };
40
41} // nnp
42
43#endif //N2P2_EWALDTRUNCKOLAFAOPTETA_H
void calculateC(double const qMax)
void calculateParameters(EwaldGlobalSettings const &settings, EwaldStructureData const &sData, EwaldParameters &params) override
virtual bool isEstimateReliable(EwaldGlobalSettings const &, EwaldParameters const &) const override
Definition: Atom.h:29