Notebooks for CHME 5137 (2026): sensitivity analysis with SALib, after Lecture 15.
| Notebook | What it is |
|---|---|
cstr-sensitivity.ipynb |
Local, Morris and Sobol analyses of a cooled continuous stirred-tank reactor running A ⇌ B |
Each notebook has a paired .py file holding the same cells as plain text (see
Jupytext below).
- Fork this repository to your own GitHub account (button at top right).
- Clone your fork, not this one:
On Explorer, clone it into
git clone git@github.com:YOUR-USERNAME/sensitivity-analysis.git # SSH, e.g. on Explorer # or git clone https://github.com/YOUR-USERNAME/sensitivity-analysis.git
/courses/CHME5137.202710/students/$USER/. - Install SALib 1.6 into the environment your kernel uses, if you haven't already.
On Explorer, in the course venv, from a terminal on a compute node:
With Anaconda on a laptop, run
source ~/venvs/chme5137/bin/activate python -m pip install "SALib==1.6.0"
conda install -c conda-forge salib=1.6.0in your course environment. You can also run%pip install "SALib==1.6.0"in a notebook cell with the course kernel selected, then restart that kernel. - Open
cstr-sensitivity.ipynband work through it, using your own kernel (CHME5137on Explorer). Commit and push as you go:This is your own fork, so committing ongit add cstr-sensitivity.ipynb cstr-sensitivity.py git commit -m "Task 1: base case and coolant temperature sweep" git pushmainis fine. Don't open a pull request back toCHME5137/sensitivity-analysis: that would publish your answers to everyone.
jupytext.toml pairs each notebook with a .py script in the percent format, as in the
differential-equations and parameter-estimation repositories. Saving the notebook updates
the .py as well. If the two get out of step, jupytext --sync cstr-sensitivity.ipynb brings
them back in line.
Written with Claude Code (Claude Opus 5.5) and checked by Prof. West.