n2p2 - A neural network potential package
|
#include <Kspace.h>
Public Member Functions | |
KspaceGrid () | |
Constructor. More... | |
void | setup (Vec3D box[3], EwaldSetup &ewaldSetup) |
Set up reciprocal box vectors and eta. More... | |
Public Attributes | |
double | eta |
Ewald summation eta parameter. More... | |
double | kCut |
Cutoff in reciprocal space. More... | |
double | rCut |
Cutoff in real space. More... | |
double | volume |
Volume of real box. More... | |
double | pre |
Ewald sum prefactor \(\frac{2\pi}{V}\). More... | |
int | n [3] |
Required box copies in each box vector direction. More... | |
Vec3D | kbox [3] |
Reciprocal box vectors. More... | |
std::vector< Kvector > | kvectors |
Vector containing all k-vectors. More... | |
Private Member Functions | |
void | calculatePbcCopies (double cutoffRadius) |
Compute box copies in each direction. More... | |
KspaceGrid::KspaceGrid | ( | ) |
void KspaceGrid::setup | ( | Vec3D | box[3], |
EwaldSetup & | ewaldSetup | ||
) |
Set up reciprocal box vectors and eta.
[in] | box | Real box vectors. |
[in] | ewaldSetup | Settings of ewald summation. |
Definition at line 45 of file Kspace.cpp.
References calculatePbcCopies(), nnp::Vec3D::cross(), nnp::EwaldParameters::eta, eta, kbox, nnp::EwaldParameters::kCut, kCut, kvectors, n, nnp::Vec3D::norm2(), nnp::EwaldSetup::params, pre, and volume.
Referenced by nnp::Structure::calculateDAdrQ(), and nnp::Structure::calculateElectrostaticEnergy().
|
private |
Compute box copies in each direction.
[in] | cutoffRadius | Cutoff radius. |
TODO: This is code copy from Structure class!
Definition at line 86 of file Kspace.cpp.
References nnp::Vec3D::cross(), kbox, n, and nnp::Vec3D::normalize().
Referenced by setup().
double nnp::KspaceGrid::eta |
double nnp::KspaceGrid::kCut |
double nnp::KspaceGrid::volume |
double nnp::KspaceGrid::pre |
int nnp::KspaceGrid::n[3] |
Required box copies in each box vector direction.
Definition at line 57 of file Kspace.h.
Referenced by calculatePbcCopies(), and setup().
Vec3D nnp::KspaceGrid::kbox[3] |
Reciprocal box vectors.
Definition at line 59 of file Kspace.h.
Referenced by calculatePbcCopies(), and setup().
std::vector<Kvector> nnp::KspaceGrid::kvectors |
Vector containing all k-vectors.
Definition at line 61 of file Kspace.h.
Referenced by nnp::Structure::calculateDAdrQ(), nnp::Structure::calculateElectrostaticEnergy(), and setup().