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
10
namespace
nnp
11
{
12
13
class
EwaldTruncKolafaOptEta
:
public
IEwaldTrunc
14
{
15
public
:
16
void
calculateParameters
(
EwaldGlobalSettings
const
& settings,
17
EwaldStructureData
const
& sData,
18
EwaldParameters
¶ms)
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
;
25
bool
newCutoffsWerePublished
=
false
;
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
IEwaldTrunc.h
nnp::EwaldStructureData
Definition:
IEwaldTrunc.h:23
nnp::EwaldTruncKolafaOptEta
Definition:
EwaldTruncKolafaOptEta.h:14
nnp::EwaldTruncKolafaOptEta::calculateEta
void calculateEta()
Definition:
EwaldTruncKolafaOptEta.cpp:46
nnp::EwaldTruncKolafaOptEta::calculateC
void calculateC(double const qMax)
Definition:
EwaldTruncKolafaOptEta.cpp:105
nnp::EwaldTruncKolafaOptEta::fourPiEps
double fourPiEps
Definition:
EwaldTruncKolafaOptEta.h:31
nnp::EwaldTruncKolafaOptEta::calculateRCut
double calculateRCut()
Definition:
EwaldTruncKolafaOptEta.cpp:67
nnp::EwaldTruncKolafaOptEta::newCutoffs
bool newCutoffs
Definition:
EwaldTruncKolafaOptEta.h:24
nnp::EwaldTruncKolafaOptEta::calculateParameters
void calculateParameters(EwaldGlobalSettings const &settings, EwaldStructureData const &sData, EwaldParameters ¶ms) override
Definition:
EwaldTruncKolafaOptEta.cpp:16
nnp::EwaldTruncKolafaOptEta::eta
double eta
Definition:
EwaldTruncKolafaOptEta.h:28
nnp::EwaldTruncKolafaOptEta::C
double C
Definition:
EwaldTruncKolafaOptEta.h:26
nnp::EwaldTruncKolafaOptEta::numAtoms
std::size_t numAtoms
Definition:
EwaldTruncKolafaOptEta.h:32
nnp::EwaldTruncKolafaOptEta::isEstimateReliable
virtual bool isEstimateReliable(EwaldGlobalSettings const &, EwaldParameters const &) const override
Definition:
EwaldTruncKolafaOptEta.h:20
nnp::EwaldTruncKolafaOptEta::prec
double prec
Definition:
EwaldTruncKolafaOptEta.h:29
nnp::EwaldTruncKolafaOptEta::calculateKCut
double calculateKCut()
Definition:
EwaldTruncKolafaOptEta.cpp:72
nnp::EwaldTruncKolafaOptEta::volume
double volume
Definition:
EwaldTruncKolafaOptEta.h:30
nnp::EwaldTruncKolafaOptEta::newCutoffsWerePublished
bool newCutoffsWerePublished
Definition:
EwaldTruncKolafaOptEta.h:25
nnp::EwaldTruncKolafaOptEta::publishedNewCutoffs
bool publishedNewCutoffs() override
Definition:
EwaldTruncKolafaOptEta.cpp:39
nnp::EwaldTruncKolafaOptEta::s
double s
Definition:
EwaldTruncKolafaOptEta.h:27
nnp::EwaldTruncKolafaOptEta::calculateS
void calculateS()
Definition:
EwaldTruncKolafaOptEta.cpp:77
nnp::IEwaldTrunc
Definition:
IEwaldTrunc.h:64
nnp
Definition:
Atom.h:29
nnp::EwaldGlobalSettings
Definition:
IEwaldTrunc.h:13
nnp::EwaldParameters
Definition:
IEwaldTrunc.h:38
libnnp
EwaldTruncKolafaOptEta.h
Generated on Sun Nov 24 2024 23:31:48 for n2p2 - A neural network potential package by
1.9.4