PY 502, Computational Physics, Fall 2015

Department of Physics, Boston University

Instructor: Anders Sandvik

Lectures: Tuesday, Thursday 11 - 12:30, in CAS 327
Programming help & tutorials, Friday 1:30-2:30 PM, in CAS 327
Office hours: Wednesday 3-4 PM, Thursday 2-3 PM, in SCI 316

This course provides an introduction to some of the most widely used methods of computational physics, including numerical solutions of differential equations (initial and boundary value prob- lems) in classical and quantum mechanics, Monte Carlo simulations, and numerical diagonalization of quantum many-body Hamiltonians. In addition to giving the students a basic working knowledge of these particular techniques, the goal is to make them comfortable with scientific computing in general, so that they will be prepared to tackle also other computational problem that they may encounter in the future. The Fortran 90 programming language will be used. The full syllabus is available here.

Course News

- Homework 6 posted, due Tuesday, December 15.

Lecture Notes and Program Examples

1) Introduction to the Fortran 90 programming language [Notes] [Programs]
     Lecture slides: [Sep 3] [Sep 8] [Sep 9] [Sep 11]
2) Numerical integration and sampling techniques [Notes] [Programs]
     Lecture slides: [Sep 11] [Sep 22(animation)] [Sep 24]
3) Solving classical equations of motion [Notes] [Programs]
     Lecture slides: [Sep 24] [Sep 25] [Sep 29(animation)]
4) Solving the Schroedinger equation [Notes] [Programs]
     Lecture slides: [Oct 1 (ani1) (ani2) (ani3) (ani4) (ani5) (ani6)] [Oct 2]
     [Oct 8] [Oct 15 (ani1) (ani2) (ani3) (ani4)] [Oct 20 (ani1) (ani2) (ani3) (ani4) (ani5)]
5) Monte Carlo simulation [Notes] [Programs]
     Lecture slides: [Oct 22] [Oct 27 (ani1) (ani2) (ani3) (ani4) (ani5) (ani6) (ani7)] [Oct 29] [Nov 10]
     [Nov 12 (ani1) (ani2) (ani3)] [Nov 13 (ani1) (ani2) (ani3)] (ani4) (ani5) (ani6)] (ani7) (ani8)]
6) Quantum spin systems [Notes] [Programs]
     Lecture slides: [Nov 17]

Homework assignments

1) Due: Thursday, September 24 [Problem text] [Solutions]
2) Due: Thursday, October 8 [Problem text] [Solutions]
3) Due: Tuesday, October 20 [Problem text] [Solutions]
4) Due: Tuesday, November 3 [Problem text] [Solutions]
5) Due: Tuesday, November 24 [Problem text] [Program res.f90 for averages and errors] [Solutions]
6) Due: Tuesday, December 15 [Problem text] [Solutions]

On-line Fortran resources

Tutorial by C. K. Shene, Michigan Technological University
List of intrinsic functions in Fortran 90

Graphics tools and resources resources

User's guide for Xmgrace graphing program
2D color intensity plot program
Simple line-fitting program
Tutorial on the PostScript language
File conversion and animation with ImageMagick