Lecture 7: Iterative methods - Efficient Plane Wave and Grid Calculations - Molecular Dynamics with Forces from the Electrons
Return to Main Page
Link to pdf file for slides
The work of Car and Parrinello in 985 ushered in an entire new
approach to calculation of the properties of materials. In one stroke they introduced new algorithms that are the core of modern iterative methods and the approach of dealing with structure and electronic properties in one method
- Brief outline of classical molecular dynamics
- Verlet algorithm for numerical integration of coupled F=ma equations
- Simulated annealing to lowest energy state
- Forces on atoms from the electrons - the force (Hellmann-Feynman) theorem
- The electron density alone is sufficient to determine forces
- The Car-Parrinello Method
- References
R. Car and M. Parrinello, Phys. Rev. Lett. 55, 2471 (1985)
the original - very readable
J. Garner, Computers in Physics 4, 395 (1990). Nice discussion; simple examples.
M. Payne, et. al., Rev Mod. Phys. 64, 1045, (1992). Most complete recent large review
- Solution of quantum equations by classical molecular dynamics
- Solving quantum equations by using a "fictitious mass" and a fictitious set of Newtonian equations
- Very clever, but hard to understand - we will
emphasize the alternative methods below
- FFT's instead of dense matrix multiplication
- Examples of use in large scale calculations
- "Ab Initio" Molecular dynamics of solids and liquids
- The real Newtonian equations for atoms with forces from electrons from the force theorem
- Example: melting of Carbon
The big picture:
Iterative methods are extensively used in modern electronic structure codes. Because they are much faster than traditional methods, they have made possible entirely new advances in calculations of properties of materials.
In traditional methods the wavefunctions are expanded in a basis set of size NB, leading to a
hamiltonian matrix of size NB x NB. Finding the eigenvectors with a standard diagonalization
routine such as LAPACK requires a number of operations proportional to NB3. In addition, solution of the self-consistent Kohn-Sham equations involves repeated updating of the hamiltonian and diagonalizations.
Iterative methods recast the problem as a minimization procedure, which can often be viewed as either the embodiment of physical principles or as the adaptation of powerful numerical techniques.
The result is that methods such as plane waves can often be extremely efficient even for very large problems.
Iterative methods are particularly important for plane wave and uniform grid methods which are examples of the "keep it simple" approach. All matrix elements are easy to calculate, but the penalty to be paid is that many plane-waves or grid points
are necessary for the accurate representation of the wavefunctions.
Iterative methods allow us to handle the large basis sets or grids in an efficient manner.
Important reference for numerical methods: Press, Teukolsky, Vetterling,
Flannery, Numerical Recipes (in C, Fortran,...).
Review Article: M. C. Payne, M. P. Teter, D. C. Allen, T. A. Arias, J. D. Joannopoulos, Rev. Mod. Phys. 64, 1045 (1992).
Text: Appendices L and M.
- Why (when) use iterative methods? (App. M)
- Solution of Schrodinger-like equations in a basis of size NB
- Diagonalization scales as NB3
- Two approaches:
- Small basis sets adapted to the problem: LCAO, LMTO, ...
- Large basis sets applicable to general problems: plane-waves, real space grids, ....
- Iterative methods very useful for finding a small number of
eigenvectors of large problems
- Iterative methods in quantum mechanics (App. M - Physics principles of perturbations - iterative methods in linear algebra)
These methods are listed for reference - will be treated only briefly in the lecture
- Iterating H |psin > ---> |psin+1 >
- Grandfather of iterative methods: Jacobi 1848
- Basic idea: Minimization of the residual R
- Preconditioning
- Krylov subspace
- Lanczos method
- Davidson, Residual minimization in subspace (RMM-DIIS - Pulay)
- Powerful approaches for independent-particle and many-body problems
- Minimization methods (App. M, Sec. 8 and App. L -- Physics principle of minimizing energy - numerical analysis problem of minimizing a function of many variables)
These methods are listed for reference - will be treated only briefly in the lecture
- Variational principle
- Steepest descent
- Conjugate directions and metric methods
- Conjugate gradient method
- The problem of constraints - minimization preserving orthonormality
- Quasi-Newton methods
- Broyden Jacobian update methods
- Special advantages of plane waves and uniform grids (App. M, Sec. 11)
- Kinetic and potential operations
- Fast Fourier Transform (FFT), aliasing, and efficient plane wave algorithms
- Putting it together in full algorithms
- The Teter-Payne-Allan pre-conditioned conjugate-gradient "band-by-band" solution of the self-consistent Kohn-Sham problem - used in ABINIT
- The RMM-DIIS solution for eigenvectors - used in VASP
- Other proposals - Lanczos, ....