Modeling and Analysis Principles textbook cover

Figures from
Modeling and Analysis Principles for Chemical and Biological Engineers

2nd Edition

Michael D. Graham Department of Chemical and Biological Engineering University of Wisconsin, Madison
James B. Rawlings Department of Chemical Engineering University of California, Santa Barbara

Click on thumbnails to enlarge figures and display Python code and data. You will also need a few files (mostly for plotting) that are included only in the zip files below, so if you want to run them, the best thing to do is download the complete collection of .py-files. Having the code linked here is still useful if you want to take a quick look at how something is done.

Running the example files requires Python (version 3.10).

Python download:

Octave/Matlab legacy code (current as of 10/2024; no longer maintained):

Chapter 2: Ordinary Differential Equations

Chapter 4: Probability, Random Variables, and Estimation

Chapter 5: Stochastic Models and Processes