Numerical Methods in Materials Science and Engineering – Fall 2009

Instructor:Asst. Prof. Robert G. Erdmann
Office:Mines 143
Phone:621-2767
E-mail:my last name @ arizona.edu
Office Hours:2-3 MW, 12-1 F
Syllabus:here

This is the home page for MSE 350 at The University of Arizona, a course on performing advanced science and engineering calculations using Python.

Sample Programs

Sample Python Programs

Lecture Topics and Course Announcements

12/04/09

Topic(s):
Solving the 2-D heat equation with the finite-difference method PDF

11/30/09

Topic(s):
Solving the 1-D heat equation with the finite-difference method PDF

11/30/09

Topic(s):
Derivation of basic finite-difference formulas
Homework:
Homework 14: Deriving additional finite-difference formulas, due 5:00 p.m. 12/2

11/16/09

Topic(s):
Parameter estimation with uncertainty
Downloads:
  1. Simple program to generate random data: download
  2. Simple program to curve-fit that data: download
  3. Demonstration of uncertainty in parameter estimation: download
  4. Calculation of parameter uncertainty via bootstrapping: download
  5. Calculation of parameter uncertainty via covariance matrix: download

11/09/09

Homework:
hw/hw13.pdf, due 5:00 p.m. 9/13

10/28/09

Downloads:
Heat capacity data from differential scanning calorimetry: download

10/26/09

Topic(s):
Polynomials
Homework:
hw/hw12_linear_algebra.pdf, due 5:00 p.m. 10/30

10/19/0910/23/09

Topic(s):
Basic Linear Algebra with numpy

9/30/09

Topic(s):
Multidimensional Arrays

9/28/09

Topic(s):
Namespaces
Homework:
Homework 8, due 5:00 p.m. 10/2
Reading:
  1. Python Scopes and Namespaces

9/25/09

Topic(s):
Namespaces
Reading:
  1. Python Scopes and Namespaces

9/23/09

Topic(s):
String formatting
Homework:
 
Reading:
  1. http://www.python.org/doc/2.4/lib/typesseq-strings.html
  2. Section 6 of the Python Tutorial
Downloads:
String formatting sample program: download

9/21/09

Topic(s):
String formatting
Homework:
Homework 7, Part 1: due in class, 9/23. Part 2: due 5:00 p.m. 9/25
Reading:
  1. http://www.python.org/doc/2.4/lib/typesseq-strings.html
  2. Section 6 of the Python Tutorial
Downloads:
String formatting sample program: download

9/14/09

Topic(s):
Functions
Homework:
Homework 6, due 5:00 p.m. 9/16
Reading:
  1. Functions
  2. Section 6 of the Python Tutorial
Downloads:
None

9/11/09

Topic(s):
Miscellaneous Python Notes
Homework:
None
Reading:
  1. Miscellaneous Python Notes
  2. enumerate()
  3. zip()
Downloads:
  1. In-class log file: download

9/9/09

Topic(s):
Dictionaries and Sets
Homework:
Homework 5, due 5:00 p.m. 9/11
Reading:
  1. Dictionaries and Sets
  2. Introduction to Dictionaries in the *Dive into Python* free online book
Downloads:
  1. Atomic weights file for homework 5: download
  2. Program to count word-length frequencies (using dictionaries): download
  3. Program to count first-letter frequencies (using dictionaries): download
  4. Program to tabulate lists of words starting with each letter (using dictionaries): download

9/2/09

Topic(s):
Manipulating Files in Python PDF lecture
Homework:
Homework 3, due 5:00 p.m. 9/9
Reading:
  1. Manipulating Files in Python
  2. Section 5 of the Python Tutorial
Downloads:
Today’s homework assignment revolves around manipulating a file of English words, which you can download here.

8/31/09

Topic(s):
Nested loops and using Winpdb
Homework:
Install Winpdb. Click here for installation instructions.
Reading:
  1. Winpdb tutorial
  2. Second, older Winpdb tutorial.
  3. The Python Tutorial, section 4
Downloads:
None

8/28/09

Topic(s):
Overview of basic Python types
Homework Solution:
 
HW 2 Solution
Reading:
The Python Tutorial, section 3
Downloads:
HW02 solution

8/26/09

Topic(s):
Overview of basic Python types
Homework Solution:
 
HW 1 Solution
Reading:
The Python Tutorial, section 2
Downloads:
HW01 solution

8/24/09

Topic(s):
Python overview, installing Python.
Homework:
E-mail the instructor proof that you installed Python, due 8/26
Reading:
Python overview
Downloads:
None