PSCF v1.5.0
Pscf::Basis< D >::Wave Class Reference

Wavevector used to construct a basis function. More...

#include <Basis.h>

Public Member Functions

 Wave ()
 Constructor.

Public Attributes

std::complex< double > coeff
 Coefficient of wave within the associated star basis function.
IntVec< D > indicesStd
 Integer indices of wave, in standard form.
IntVec< D > indicesMin
 Integer indices of wave, for minimal image.
int starId
 Index of the star that contains this wavevector.
int inverseId
 Index of the wave that is the inverse of this wavevector.
bool implicit
 Is this wave represented implicitly in DFT of real field?

Detailed Description

template<int D>
class Pscf::Basis< D >::Wave

Wavevector used to construct a basis function.

Definition at line 391 of file Basis.h.

Constructor & Destructor Documentation

◆ Wave()

template<int D>
Pscf::Basis< D >::Wave::Wave ( )
inline

Constructor.

Definition at line 458 of file Basis.h.

References coeff, implicit, indicesMin, indicesStd, inverseId, and starId.

Member Data Documentation

◆ coeff

template<int D>
std::complex<double> Pscf::Basis< D >::Wave::coeff

Coefficient of wave within the associated star basis function.

Coefficients of waves in a star are defined such that the sum of squared absolute magnitudes equals unity.

Definition at line 402 of file Basis.h.

Referenced by Pscf::readBasisData(), and Wave().

◆ indicesStd

template<int D>
IntVec<D> Pscf::Basis< D >::Wave::indicesStd

Integer indices of wave, in standard form.

Components of this vector are non-negative. Component i lies in the range [0, meshDimension(i) - 1], where meshDimension(i) is the number of grid points along direction i.

Definition at line 411 of file Basis.h.

Referenced by Wave().

◆ indicesMin

template<int D>
IntVec<D> Pscf::Basis< D >::Wave::indicesMin

Integer indices of wave, for minimal image.

Components of this IntVec<D> may be negative or positive, and differ from corresponding components of indicesStd by integer multiples of a corresponding mesh dimension, so that indicesMin and indicesStd correspond to equivalent aliased wavevectors for functions evaluated on nodes of the discretization mesh. The shifts relative to indicesStd are chosen so as to minimize the norm of the Cartesian wavevector constructed by taking a linear combination of Bravais lattice basis vectors multiplied by components of indicesMin.

Definition at line 426 of file Basis.h.

Referenced by Wave().

◆ starId

template<int D>
int Pscf::Basis< D >::Wave::starId

Index of the star that contains this wavevector.

Definition at line 431 of file Basis.h.

Referenced by Pscf::readBasisData(), and Wave().

◆ inverseId

template<int D>
int Pscf::Basis< D >::Wave::inverseId

Index of the wave that is the inverse of this wavevector.

Definition at line 436 of file Basis.h.

Referenced by Wave().

◆ implicit

template<int D>
bool Pscf::Basis< D >::Wave::implicit

Is this wave represented implicitly in DFT of real field?

In the discrete Fourier transform (DFT) of a real function, the coefficients of nonzero wavevectors G and -G must be complex conjugates. As a result, only one of these two coefficients must be stored in the container RFieldDft used to store the DFT of a real function. For each such pair, the member variable Basis::Wave::implicit is set false for any wavevector for which the integer components fall within the range stored in the RFieldDft container, and for which the coefficient is represented explicitly, and is set true for any wavevector for which the wavevevector falls outside this range, and for which the field coefficient is thus implicit.

Definition at line 453 of file Basis.h.

Referenced by Wave().


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