Repository: Simulations and Models for Chemistry and Biochemistry
Jason Kahn, University of Maryland College Park
Excel spreadsheets, Matlab programs, and interactive browser simulations for modeling simple chemical and biochemical principles.
Interactive browser simulations (done in collaboration with Claude, with coding by Claude)
- The Einstein model for a solid. This is to explain the concept, not do real analysis.
- A → B → C kinetics. Watch the intermediate B rise and fall as the rate constants change, and see when the steady-state approximation for B holds. Matlab version: AtoBtoCkin.m.
- Piston path dependence. Animation of two paths from P1V1T1 to P2V2T2 illustrating path dependence of q and w with the same change in state function E.
- Distinguishing reactant orders. (At least among 0, 1, and 2.) Excel version: Reaction_orders.xlsx.
- The behavior of the Arrhenius equation. See how the rate constant and half-life depend on temperature, activation energy, and the pre-exponential factor, for first- and second-order reactions.
- Demo of Le Chatelier's principle and Q going to K. Perturb the equilibrium 2A ⇌ B and watch the reaction quotient Q return to K. Matlab version: Sim_twoAtoBr3.m.
- Free energy of an A ⇌ B mixture. The total free energy of the mixture has its minimum at equilibrium, where the molar free energies of A and B are equal and ΔG = 0. Change ΔG° and the total concentration, or sweep G°B to watch the minimum move. Matlab version: TotalG.m and TotalG_anim.m.
- The van ’t Hoff equation. How K changes with temperature for given ΔH° and ΔS°: the van ’t Hoff plot with its slope and intercept, K vs. T, and ΔG° vs. T, with examples from the water–gas shift and Haber–Bosch reactions to Tris ionization and DNA hybridization.
- Temperature and activation energy. Compare the fraction of molecules with energy above Ea at two temperatures, and see why that ratio gives the Arrhenius temperature dependence.
- Titration of a strong acid with a strong base. What it says... Excel version: Strong_acid-strong_base.xlsx.
- Titration of a strong base with a strong acid. Says it what... Excel version: Strong_acid-strong_base.xlsx.
- Titration of any acid or base with any other. Including speciation plots, buffer capacity. Matlab version: weakweak10.m.
- Titration of diprotic acid or base. Including speciation plots, buffer capacity. Matlab version: diprotic3.m and diprotic3r.m.
- Titration of a triprotic acid, and the isoelectric point. Phosphoric and citric acids and amino acids with ionizable side chains, with speciation plots, buffer capacity, the average net charge vs. pH, and the isoelectric point. Matlab version: phosphoric_titration.m.
- Binding curves and titrant depletion. How the DNA concentration shifts and sharpens a protein–DNA binding curve, when the simple hyperbola fails, and why protein concentrations should be a geometric series. Matlab version: Binding_DT_script2.m.
- DNA cyclization J factors (Shimada–Yamakawa). The J factor vs. DNA length from the Shimada–Yamakawa theory, for given persistence length, torsional rigidity, and helical repeat. More advanced than the others.
Excel spreadsheets
Descriptions of the spreadsheets. Download a file and open it in Excel.
Matlab programs
Descriptions of the Matlab programs. New to Matlab? Start with the Instant MATLAB tutorial (PDF).
Newer programs, as .m files (click to download, or open them in Matlab):
Older programs, as zip files: