| 1 |
.. gau2grid documentation master file, created by |
| 2 |
sphinx-quickstart on Sat Sep 1 17:41:02 2018. |
| 3 |
You can adapt this file completely to your liking, but it should at least |
| 4 |
contain the root `toctree` directive. |
| 5 |
|
| 6 |
======== |
| 7 |
gau2grid |
| 8 |
======== |
| 9 |
|
| 10 |
*gau2grid is a python-generated C library for vectorized computation of grid to gaussian collocation matrices* |
| 11 |
|
| 12 |
The core of gau2grid is generating the collocation matrices between a real |
| 13 |
space grid and a gaussian basis set expanded to a given angular momenta. |
| 14 |
Where a simple gaussian can be represented with the cartesian form as: |
| 15 |
|
| 16 |
.. math:: |
| 17 |
|
| 18 |
\phi({\bf r}) = x^l y^m z^n e^{-\alpha r^2} |
| 19 |
|
| 20 |
where for a given angular momenta :math:`\ell`, a gaussian basis has all |
| 21 |
possible combinations of :math:`l, m, n` that satisfy :math:`l + m + n = |
| 22 |
\ell`. These gaussians can also take a `spherical harmonic <https://en.wikipedia.org/wiki/Spherical_harmonics>`_ form of: |
| 23 |
|
| 24 |
.. math:: |
| 25 |
|
| 26 |
\phi({\bf r}) = Y_\ell^m (\hat{\bf r}) e^{-\alpha r^2} |
| 27 |
|
| 28 |
where :math:`m` ranges from :math:`+\ell` to :math:`-\ell`. The spherical |
| 29 |
form offers a more compact representation at higher angular momenta, but is |
| 30 |
more difficult to work with when examining cartesian derivates. |
| 31 |
|
| 32 |
In quantum chemistry, an individual basis is often represented as a sum of |
| 33 |
several gaussian with different exponents and coefficients together: |
| 34 |
|
| 35 |
.. math:: |
| 36 |
|
| 37 |
\phi({\bf r}) = Y_\ell^m (\hat{\bf r}) \sum_i c_i e^{-\alpha_i r^2} |
| 38 |
|
| 39 |
Collocation matrices between a single basis set and multiple grid points can |
| 40 |
then be represented as follows: |
| 41 |
|
| 42 |
.. math:: |
| 43 |
|
| 44 |
\phi_{m p} = Y_\ell^m (\widehat{{\bf r}_p -{\bf r}_{\rm center}}) \sum_i c_i e^{-\alpha_i ({\bf r}_{\rm center} - {\bf r}_p) ^2} |
| 45 |
|
| 46 |
where the basis is evaluated at every point :math:`p` for every |
| 47 |
component of the basis i.e. basis function :math:`m`. The |
| 48 |
:math:`\phi_{m p}` matrices are the primary focus on the gau2grid |
| 49 |
library. |
| 50 |
|
| 51 |
|
| 52 |
Index |
| 53 |
----- |
| 54 |
|
| 55 |
**Getting Started** |
| 56 |
|
| 57 |
* :doc:`py_install` |
| 58 |
* :doc:`c_install` |
| 59 |
* :doc:`order` |
| 60 |
|
| 61 |
.. toctree:: |
| 62 |
:maxdepth: 1 |
| 63 |
:hidden: |
| 64 |
:caption: Getting Started |
| 65 |
|
| 66 |
py_install |
| 67 |
c_install |
| 68 |
order |
| 69 |
|
| 70 |
**Python Interface** |
| 71 |
|
| 72 |
* :doc:`py_example` |
| 73 |
* :doc:`py_api` |
| 74 |
|
| 75 |
.. toctree:: |
| 76 |
:maxdepth: 1 |
| 77 |
:hidden: |
| 78 |
:caption: Python API |
| 79 |
|
| 80 |
py_api |
| 81 |
py_example |
| 82 |
|
| 83 |
**C Interface** |
| 84 |
|
| 85 |
* :doc:`c_example` |
| 86 |
* :doc:`c_api` |
| 87 |
|
| 88 |
.. toctree:: |
| 89 |
:maxdepth: 1 |
| 90 |
:hidden: |
| 91 |
:caption: C API |
| 92 |
|
| 93 |
c_api |
| 94 |
c_example |