PY 502, Computational Physics (Fall 2012)

Department of Physics, Boston University

Instructor: Anders Sandvik

Lectures: Tuesday, Thursday 11 - 12:30, in CAS 327
Programming help & tutorials, Friday 1:30-3 PM, in CAS 327
Office hours: Monday 4-5 PM, Wednesday 3-4 PM, 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 (classical many-body systems), 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

Take-home exam posted; due Tues Dec 11 (in class).

Lecture Notes and Program Examples

1) Introduction to the Fortran 90 programming language [Notes] [Programs]
     Lecture slides: [Sep 4] [Sep 6] [Sep 11] [Sep 13]
2) Numerical and Monte Carlo integration [Notes] [Programs]
     Lecture slides: [Sep 18] [Sep 20 (anim)]
3) Solving classical equations of motion [Notes] [Programs]
     Lecture slides: [Sep 25] [Sep 28] [Oct 2] [Oct 4 (anim)]
4) Quantum mechanics - solving the Schroedinger equation [Notes] [Programs]
     Lecture slides: [Oct 16 (anim 1 anim 2 anim 3 anim 4 anim 5 anim 6)] [Oct 18] [Oct 23] [Oct 25]
     [Oct 29 (anim 1 anim 2 anim 3 anim 4)] [Nov 1] [Nov 2 (anim 1 anim 2 anim 3 anim 4 anim 5]
5) Monte Carlo simulations in statistical physics [Notes] [Programs]
     Lecture slides: [Nov 6] [Nov. 8 (anim 1 anim 2 anim 3 anim 4 anim 5 anim 6 anim 7)]
     [Nov 13]
6) Diagonalization of quantum spin models [Notes]
     Lecture slides: [Dec 6]

Homework assignments

1) Due: September 25 [Problem text] [Solutions]
2) Due: October 2 [Problem text] [Solutions]
3) Due: October 13 [Problem text] [Solutions]
4) Due: October 25 [Problem text] [Solutions]
5) Due: November 8 [Problem text] [Solutions]
6) Due: November 20 [Problem text] [Solutions]
Take-home exam Due: Tues Dec 10 (in class) [Problem text] Data files needed: [l4.in] [l10.in]

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