n2p2 - A neural network potential package
nnp::EwaldParameters Struct Reference

#include <IEwaldTrunc.h>

Collaboration diagram for nnp::EwaldParameters:

Public Member Functions

 EwaldParameters ()=default
 
 EwaldParameters (double oEta, double oRCut, double oKCut)
 
EwaldParameters toPhysicalUnits (double const convLength) const
 
EwaldParameters toNormalizedUnits (double const convLength) const
 

Public Attributes

double eta = 0.0
 Width of the gaussian screening charges. More...
 
double rCut = 0.0
 Cutoff in real space. More...
 
double kCut = 0.0
 Cutoff in reciprocal space. More...
 

Detailed Description

Definition at line 37 of file IEwaldTrunc.h.

Constructor & Destructor Documentation

◆ EwaldParameters() [1/2]

nnp::EwaldParameters::EwaldParameters ( )
default

◆ EwaldParameters() [2/2]

nnp::EwaldParameters::EwaldParameters ( double  oEta,
double  oRCut,
double  oKCut 
)
inline

Definition at line 47 of file IEwaldTrunc.h.

48 : eta{oEta}, rCut{oRCut}, kCut{oKCut}
49 {}
double rCut
Cutoff in real space.
Definition: IEwaldTrunc.h:42
double eta
Width of the gaussian screening charges.
Definition: IEwaldTrunc.h:40
double kCut
Cutoff in reciprocal space.
Definition: IEwaldTrunc.h:44

Member Function Documentation

◆ toPhysicalUnits()

EwaldParameters nnp::EwaldParameters::toPhysicalUnits ( double const  convLength) const
inline

Definition at line 51 of file IEwaldTrunc.h.

52 {
53 return EwaldParameters{eta / convLength,
54 rCut / convLength,
55 kCut * convLength};
56 }
EwaldParameters()=default

References eta, kCut, and rCut.

Referenced by nnp::EwaldSetup::logEwaldCutoffs(), and toNormalizedUnits().

Here is the caller graph for this function:

◆ toNormalizedUnits()

EwaldParameters nnp::EwaldParameters::toNormalizedUnits ( double const  convLength) const
inline

Definition at line 57 of file IEwaldTrunc.h.

58 {
59 return toPhysicalUnits(1/convLength);
60 }
EwaldParameters toPhysicalUnits(double const convLength) const
Definition: IEwaldTrunc.h:51

References toPhysicalUnits().

Referenced by nnp::EwaldSetup::toNormalizedUnits().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ eta

◆ rCut

◆ kCut


The documentation for this struct was generated from the following file: