|
MADNESS 0.10.1
|
Namespaces | |
| namespace | Properties |
Classes | |
| struct | Atom |
| An atom (symbol and position). More... | |
| class | BasisFunction |
| Abstract base class for generic basis functions. More... | |
| struct | BasisShell |
| Store information on a shell of basis functions as it's being read. More... | |
| class | ES_Interface |
| Abstract base class for interfacing with electronic structure codes. More... | |
| class | Gaussian_Functor |
| class | GaussianFunction |
| A Gaussian basis function used by chemistry electronic structure codes. More... | |
| class | NWChem_Interface |
| Class for interfacing with NWChem (tested on version 6.6). More... | |
| class | PolynomialCoeffs |
| Array for storing coefficients of a polynomial of three variables with specified degree. More... | |
Typedefs | |
| using | Atoms = std::vector<Atom> |
| A set of atoms. | |
| using | BasisSet = std::vector<std::reference_wrapper<BasisFunction>> |
| Type for a basis set (collection of basis functions). | |
| using | CF = std::tuple<PolynomialCoeffs, std::array<double, 3>, std::array<double, 3>, std::array<std::array<double, 3>, 3>> |
| A primitive Gaussian function. | |
Enumerations | |
| enum class | GaussianType { s , px , py , pz , dxx , dxy , dxz , dyy , dyz , dzz , fxxx , fxxy , fxxz , fxyy , fxyz , fxzz , fyyy , fyyz , fyzz , fzzz , dzzmrr , dxxmyy , fxyymxxx , fxxzmyyz , fxzzmrrx , fzzzmrrz , fyzzmrry , fxxymyyy , gxxxx , gxxxy , gxxxz , gxxyy , gxxyz , gxxzz , gxyyy , gxyyz , gxyzz , gxzzz , gyyyy , gyyyz , gyyzz , gyzzz , gzzzz , gxydx2my2 , gyzdx2my2 , gxydz2mr2 , gyzdz2mr2 , gzero , gxzdz2mr2 , gx2my2dz2mr2 , gxzdx2my2 , gx4mx2y2py4 , hxxxxx , hxxxxy , hxxxxz , hxxxyy , hxxxyz , hxxxzz , hxxyyy , hxxyyz , hxxyzz , hxxzzz , hxyyyy , hxyyyz , hxyyzz , hxyzzz , hxzzzz , hyyyyy , hyyyyz , hyyyzz , hyyzzz , hyzzzz , hzzzzz , hm5 , hm4 , hm3 , hm2 , hm1 , hzero , hp1 , hp2 , hp3 , hp4 , hp5 } |
| Implemented types of Gaussian orbitals (from quantum chemistry codes). More... | |
Functions | |
| template<typename T> | |
| std::vector< std::reference_wrapper< const T > > | cast_basis (const BasisSet &bset) |
| Convert a generic basis set to basis functions with the specific type. | |
| double | operator() (const std::array< double, 3 > &x) const |
| Evaluate the Gaussian primitive at the specified point. | |
| PolynomialCoeffs | operator* (const double c, const PolynomialCoeffs &poly) |
| Multiply a polynomial by a constant value. | |
| GaussianFunction | operator* (const double lhs, const GaussianFunction &rhs) |
| Multiply a GaussianFunction by a scalar. | |
| PrimitiveGaussian | operator* (const PrimitiveGaussian &rhs) const |
| Multiply two primitive Gaussians. The result is another. | |
| static std::ostream & | operator<< (std::ostream &out, const BasisShell &bs) |
| PrimitiveGaussian () | |
Default constructor: Make the function 1 ( ![]() ![]() | |
| PrimitiveGaussian (const GaussianType &type, const std::array< double, 3 > ¢er, const double ec) | |
| Create a primitive Gaussian function centered on the specific point, with the specified decay constant and type. | |
| PrimitiveGaussian (const PolynomialCoeffs &exppoly_, const PolynomialCoeffs &prefactor_) | |
| Create a primitive Gaussian function with the specified exponential polynomial (quadratic) and polynomial prefactor. | |
| template<typename T> | |
| static T | read_endian (std::istream &in, const bool swap) |
| Read bytes from a binary file into the specified type. | |
| using slymer::Atoms = std::vector<Atom> |
A set of atoms.
| using slymer::BasisSet = std::vector<std::reference_wrapper<BasisFunction>> |
Type for a basis set (collection of basis functions).
| using slymer::CF = std::tuple<PolynomialCoeffs, std::array<double, 3>, std::array<double, 3>, std::array<std::array<double, 3>, 3>> |
A primitive Gaussian function.
This basis function has the form
![\[ f(x,y,z) = p(x,y,z) \exp[(x-x_0)^T \Sigma (x-x_0)],
\]](form_263.png)
where 


This class is designed to work with Gaussian basis functions in quantum chemistry codes, but is made to be a bit more general for other applications.
The wikipedia page on multivariable normal distributions may be helpful (https://en.wikipedia.org/wiki/Multivariate_normal_distribution). */ class PrimitiveGaussian {
protected: / Polynomial prefactor ( 
/ Coefficients in the exponent's quadratic function. PolynomialCoeffs exppoly;
/**
Return type for the function's canonical form.
The first element is the polynomial prefactor, converted to use the principal coordinates. The second element is the array of decay values (eigenvalues of the covariance matrix). The third element is the 
|
strong |
Implemented types of Gaussian orbitals (from quantum chemistry codes).
| std::vector< std::reference_wrapper< const T > > slymer::cast_basis | ( | const BasisSet & | bset | ) |
Convert a generic basis set to basis functions with the specific type.
| std::runtime_error | if a basis function in the basis set is not of the specified type. |
| T | The intended type of each basis function. |
| [in] | bset | The basis set. |
Referenced by madness::SCF::initial_guess_from_nwchem(), and madness::InitParameters::readnw().
| double slymer::operator() | ( | const std::array< double, 3 > & | x | ) | const |
|
inline |
Multiply a polynomial by a constant value.
| [in] | c | The constant value. |
| [in] | poly | The polynomial. |
References c.
|
inline |
Multiply a GaussianFunction by a scalar.
| [in] | lhs | The scalar multiplicative factor. |
| [in] | rhs | The GaussianFunction. |
| PrimitiveGaussian slymer::operator* | ( | const PrimitiveGaussian & | rhs | ) | const |
Multiply two primitive Gaussians. The result is another.
| [in] | rhs | The right-hand object. |
References PrimitiveGaussian().
|
static |
References slymer::BasisShell::coeffs, slymer::BasisShell::exps, and slymer::BasisShell::type.
| slymer::PrimitiveGaussian | ( | ) |
Default constructor: Make the function 1 ( 

Referenced by slymer::GaussianFunction::GaussianFunction(), and operator*().
| slymer::PrimitiveGaussian::PrimitiveGaussian | ( | const GaussianType & | type, |
| const std::array< double, 3 > & | center, | ||
| const double | ec ) |
Create a primitive Gaussian function centered on the specific point, with the specified decay constant and type.
| std::invalid_argument | if the decay constant is non-positive. |
| [in] | type | The orbital type of the Gaussian. |
| [in] | center | The center of the Gaussian. |
| [in] | ec | The decay constant in the exponential. |
References dxx, dxxmyy, dxy, dxz, dyy, dyz, dzz, dzzmrr, fxxx, fxxy, fxxymyyy, fxxz, fxxzmyyz, fxyy, fxyymxxx, fxyz, fxzz, fxzzmrrx, fyyy, fyyz, fyzz, fyzzmrry, fzzz, fzzzmrrz, gx2my2dz2mr2, gx4mx2y2py4, gxxxx, gxxxy, gxxxz, gxxyy, gxxyz, gxxzz, gxydx2my2, gxydz2mr2, gxyyy, gxyyz, gxyzz, gxzdx2my2, gxzdz2mr2, gxzzz, gyyyy, gyyyz, gyyzz, gyzdx2my2, gyzdz2mr2, gyzzz, gzero, gzzzz, hm1, hm2, hm3, hm4, hm5, hp1, hp2, hp3, hp4, hp5, hxxxxx, hxxxxy, hxxxxz, hxxxyy, hxxxyz, hxxxzz, hxxyyy, hxxyyz, hxxyzz, hxxzzz, hxyyyy, hxyyyz, hxyyzz, hxyzzz, hxzzzz, hyyyyy, hyyyyz, hyyyzz, hyyzzz, hyzzzz, hzero, hzzzzz, norm(), pi, pow(), px, py, pz, and s.
| slymer::PrimitiveGaussian::PrimitiveGaussian | ( | const PolynomialCoeffs & | exppoly_, |
| const PolynomialCoeffs & | prefactor_ ) |
Create a primitive Gaussian function with the specified exponential polynomial (quadratic) and polynomial prefactor.
| std::invalid_argument | if the exponential polynomial is not quadratic (or constant or linear as subsets). |
| [in] | exppoly_ | The exponential polynomial. |
| [in] | prefactor_ | The degree of the prefactor. |
References slymer::PolynomialCoeffs::get_degree().
|
static |
Read bytes from a binary file into the specified type.
Attempts to account for the endian-ness of the binary data. This should hopefully make the routine more robust to running NWChem jobs on one machine and processing the files on another.
| T | Type of data to be read (only really need the size). |
| [in,out] | in | The input stream. |
| [in] | swap | Change the endian-ness of the read data? |
Referenced by slymer::NWChem_Interface::read_movecs().