Setup data for Ewald summation.
std::vector< Kvector > kvectors
Vector containing all k-vectors.
double pre
Ewald sum prefactor .
Vec3D kbox[3]
Reciprocal box vectors.
void setup(Vec3D box[3], EwaldSetup &ewaldSetup)
Set up reciprocal box vectors and eta.
double rCut
Cutoff in real space.
double eta
Ewald summation eta parameter.
void calculatePbcCopies(double cutoffRadius)
Compute box copies in each direction.
double volume
Volume of real box.
double kCut
Cutoff in reciprocal space.
int n[3]
Required box copies in each box vector direction.
Vec3D k
A single k-vector (as Vec3D).
double coeff
Precomputed coefficient for Ewald summation.
double knorm2
Square of norm of k-vector.
Vector in 3 dimensional real space.