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