/Fall14_Phy102

Teaching material for Fall14 Phy 102 Intro to computational physics

Primary LanguagePython

Phy 102 Introduction to Computational Physics

Lecturer: J. Quinn Norris TA: Karen Y. Ng

Tasks to remind students to complete

  • sign up for Piazza which is our class forum / online office hour
  • check if computer account works in Phy room 106

Lesson Plan

Day 1

  • Lecture : Intro to Linux tutorial 10/07
  • Lab : 10/08, 10/09, 10/13
    • Intro to Python
    • Intro to IPython notebook
    • Basic syntax
    • Variable types and numerical representation of numbers
    • Control statements : for, while loops
    • Do simple numerical and logical operations

Day 2

  • Lecture : 10/14
  • Lab : 10/15, 10/16, 10/20
    • How to import library modules / reload functions
    • Introduce namespace and ways to load libraries into namespaces
    • How to write functions - how to document functions
    • List comprehension
    • Numpy (and Matplotlib functions)
    • Run dummy code from within IPython

Day 3

  • Lecture : 10/21
  • Lab : 10/22, 10/23, 10/27
    • How to make (good) scientific plots with Matplotlib
    • Using linear algebra to obtain observables from quantum systems
    • Making interactive plots in IPython notebook to visualize wave
    • StackOverFlow

Day 4

  • Lecture : 10/28
  • Lab : 10/29, 10/30, 11/03
    • File I/O
    • Pull files from online databases / websites

Day 5

  • Lecture : 11/04
  • Lab : 11/05, 11/06, 11/10
    • Stat. - line fitting, model fitting, least squares ...
    • How to draw number from different probability distributions etc.

Day 6

  • Lecture : 11/11
  • Lab : 11/12, 11/13, 11/17
    • Numerical integration
    • Signal processing - Fourier transform

Day 7

  • Lecture : 11/18
  • Lab : 11/19, 11/20, 11/24
    • Random number generation - random number seed
    • Basic Monte Carlo simulation
    • Percolation simulation

Day 8 - Student projects

  • Lecture : 12/02 - suggest topics for student projects
  • Lab : 12/03, 12/04, 12/08
    • Numerical integration in C (e.g. Newton 's method)
    • Simulation - Monte Carlo simulation
    • Analyze or visualize a real dataset from the internet

Day 9 - continue to finish up student projects

  • Lecture : 12/09
  • Lab : 12/10, 12/11, 12/15 (last Mon session is during finals week)