PY 502, Computational Physics (Fall 2008)

Department of Physics, Boston University

Instructor: Anders Sandvik

Lectures: Tuesday, Thursday 11 - 12:30, in CAS 327
Office hours: Monday 3-4 PM, Wednesday 11 AM - 12 noon, in SCI 316

This course provides an introduction to some of the most widely used methods of computational physics, including numerical integration (elementary algorithms and Monte Carlo techniques), numerical solutions of differential equations (classical equations of motion, time independent and time dependent Schrodinger equations), molecular dynamics simulations (liquids and gases), Monte Carlo simulations (classical models of magnetism), and exact diagonalization of quantum many-body Hamiltonians (models of quantum magnetism). In addition to giving the students a basic working knowledge of these particular techniques, the goal is to make them proficient in scientific computing and programming 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

No class Tuesday Oct. 27 and Thursday Oct. 29 (instructor traveling). Make-up classes Fridays, Nov. 13 and 20 (1-2:30).

Lecture Notes and Program Examples

1) Introduction to the Fortran 90 programming language [Notes] [Programs]
     Lecture slides: [Sep. 3] [Sep. 8] [Sep. 10]
2) Integration and Monte Carlo integration [Notes] [Programs]
     Lecture slides: [Sep. 15] [Sep. 17 (animation)]
3) Soving classical equations of motion [Notes] [Programs]
     Lecture slides: [Sep. 22] [Sep. 25] [Sep. 29] [Oct. 1 (animation)]
4) Soving the Schrodinger equation [Notes] [Programs]
     Lecture slides: [Oct. 6 (anim 1 anim 2 anim 3 anim 4 anim 5 anim 6)] [Oct. 8] [Oct. 9] [Oct. 20] [Oct. 22 (anim 1 anim 2 anim 3 anim 4)]
5) Monte Carlo simulations in statistical mechanics [Notes] [Programs]
     Lecture slides: [Nov. 3] [Nov. 5] [Nov. 10 (anim 1 anim 2 anim 3 anim 4 anim 5 anim 6 anim 7)] [Nov. 12] [Nov. 13] [Nov. 17] [Nov. 19]

Homework assignments

1) Due: Friday, 9/25/09 [Problem text] [Solutions]
2) Due: Thursday, 10/8/09 [Problem text] [Solutions]
3) Due: Thursday, 10/22/09 [Problem text] [Solutions]
4) Due: Tuesday, 11/10/09 [Problem text] [Solutions]
5) Due: Tuesday, 11/24/09 [Problem text] Data files needed: [l4.in] [l10.in] [l20.in] [Solutions]

Data analysis, graphics and animation tools

[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]