Cornell University
Department of Physics
Phys 480/680, Astro 690 April 5, 2007
Computational Physics, Spring 2007
Homework Assignment # 7
(Due Wednesday, April 11 at 5:00pm)
Agenda and readings for the weeks of April 6-23:
Goal: Learn to use the octave linear algebraic language to
express scientific algorithms succinctly; solution of Poisson's
equation in a single line of code
phi=cI(Linv(-4*pi*O(cJ(n))));
Readings marked NR are from Numerical Recipes: The Art of
Scientific Computing, 2
edition (in C). Readings
marked LN are from the course lecture notes to be found at
http://www.muchomas.lassp.cornell.edu/P480.
Recap:
- 03/27 Lec 15 (Tue) Memory access overhead factor, BLAS1-3, blocked matrix multiplies; Automated empirical
optimization of software (AEOS): automatically tuned linear algebra
software (ATLAS), fastest Fourier Transform in the West (FFTW).
- 03/29 Lec 16 (Thu) Solution of Poisson's equation
in d>1 dimensions; expressive software; solution to Poisson's equation in a
single line of code; choice of plane-wave (complex exponential) basis for
periodic boundary conditions. Choice of planewave basis for Poisson's
equation; form of operators and transforms for planewaves; octave/matlab notations.
- 04/03 Lec 17 (Tue): Discrete Fourier Transforms (DFTs): standard ordering
of indices for Discrete Fourier Transforms; aliasing/Nyquist frequency;
Fourier factorization and inversion theorems.
- 04/05 Lec 18 (Thu): Eigenvalue problems in
dimension: variational principle,
analytic continuation for constraints, minimization by steepest
descents
Reading: NR 10.0
- 04/05 Lab 6 (Thu) FLOP performance of basic operations; optimizations for matrix-matrix multiplication (block sizes, loop unrolling).
Preview:
- 04/10 Lec 19 (Tue) DFT++ expressions for energy and gradient for multiple
states and for density functional theory
Reading: Sections 1-4 of
http://arxiv.org/abs/cond-mat/9909130
- 04/12 Lec 20 (Thu) Converge of steepest descents; preconditioning; line
minimization; motivation for conjugate gradients
Reading: NR 10.2, 10.3. 10.5
- 04/12 Lab 7 (Thu) Spectral solution of Poisson's equation
- 04/17 Lec 21 (Tue) Conjugate gradient algorithm
Reading: 10.6
- 04/19 Lec 22 (Thu) FFT
Reading: 12.2
- 04/19 Lab 8 (Thu) Spectral solution of Schrödinger's equation
- 04/24 Lec 23 (Tue) Further optimizations for spectral methods; ab initio pseudopotentials
- 04/26 Lec 24 (Thu) Extraction of eigenstates from variational principle
- 04/26 Lab 9 (Thu) Performance of numerical minimization techniques; preconditioner for quantum calculations
- 05/02 Lec 25 (Tue) TBD
- 05/04 Lab 10 (Thu) Physics of harmonic oscillator, H2 molecule and
germanium solid
Tomas Arias
2007-04-05