Struct ECP¶
Defined in File ecp.hpp
Struct Documentation¶
-
struct ECP¶
Stores the details of an ECP expanded in terms of Gaussians and spherical harmonics.
Unnamed Group
-
inline GaussianECP &getGaussian(int i)¶
- Parameters
i – - the index of GaussianECP required
- Returns
a reference to the ith GaussianECP
-
inline const GaussianECP &getGaussian(int i) const¶
Public Functions
-
ECP(const double *_center)¶
Constructs an ECP at the given position
- Parameters
_center – - xyz coordinates of the ECP
-
void addPrimitive(const int n, const int l, const double a, const double d, const bool needSort = true)¶
Adds a new GaussianECP to the ECP
- Parameters
n – - power of r
l – - angular momentum
a – - exponent
d – - coefficient
needSort – - true = the GaussianECPs are sorted (if done once at the end, speeds up evaluation)
-
void setPos(const double x, const double y, const double z)¶
-
void sort()¶
Sort primitives according to angular momentum.
-
bool noType1() const¶
- Returns
true if the highest angular momentum functions have zero coefficients (e.g. Stuttgart-Dresden ECPs)
-
double evaluate(const double r, const int l) const¶
Evaluates the ECP at a given distance for a given angular momentum shell.
- Parameters
r – - the radius at which to evaluate
l – - the angular momentum shell to evaluate over
- Returns
the value of the l-th angular momentum shell of the ECP at radius r
-
inline GaussianECP &getGaussian(int i)¶