Thermodynamics
Free energy, phase equilibrium and the path to a changing microstructure.
I bring together my course notes, interactive laboratories and code lessons here. I use them to connect physical ideas with equations, calculations and the patterns they produce.
Free energy, phase equilibrium and the path to a changing microstructure.
Conservation, driving forces and fluxes, from molecular motion to continuum fields.
Strain, stress and misfit, and how elastic interactions affect phase arrangement.
Phase separation, coarsening and ordering, with the equations and code behind the images.
Connected regions, spatial correlations and the topology of a microstructure.
My calculations developed in small, checked steps, and the ideas behind inverse models.
How the interactive pages on this site are made, with the code that runs on each page.
Download all NumPy notebook examples
These worked examples connect the equations with computed results, numerical checks and explained Python notebooks.
Direct iterative perturbation and equivalent eigenstrain, with derivations, editable notebooks and independent checks.
Run and explore the solversMisfit, habit lines, elastic kernels, phase interactions and soft or hard plates. Change the inputs and compare the resulting stresses and elastic energies.
Open the laboratoryAdjust a curve, test its physics, then learn how diffusion profiles can reveal unknown properties.
Start the PINN lesson PYTHON / NUMPY · HIGH-RESOLUTION MOVIES256 × 256 Ising and Potts simulations from the course.
Open the Monte Carlo lab LIVE INTERACTIVE SIMULATION · PYTHON NOTEBOOKChange the molecule count and step length, follow one molecule, and compare spreading with the diffusion prediction.
Open the interactive experiment PYTHON / NUMPYWatch short wavelengths disappear first.
Open worked example PYTHON / NUMPYSee how small composition fluctuations grow during spinodal decomposition.
Open worked example PYTHON / NUMPYUse the elastic energy kernel from my teaching notebook in a phase-field calculation.
Open worked exampleI begin with free energy, chemical potential, conserved fields and nonconserved order parameters.
I connect the Cahn–Hilliard and Allen–Cahn equations to finite-difference and spectral methods.
I check conservation, time-step sensitivity, grid convergence and the relevant energy balance.
I then add elasticity or other coupled fields and explore parallel CPU and GPU implementations.
Build the complete Python examples in explained cells, inspect plots and diagnostics, and run the notebooks in Jupyter.
Explore the notebook lessonsHow the boards, charts and 3D views on this site are made: an SVG board that redraws, Plotly charts that mirror a notebook and a three.js cluster, each with its running code.
Open the browser lessonsWrite and test a small part before continuing: cluster labeling, diffusion, random walks, phase separation, Monte Carlo and spatial correlations.
Open the code lessonsDevelop my ternary phase-separation calculation in nine checked steps, then save composition fields for structure and correlation analysis.
Open the notebook lessonInspect measured connectivity in 2D and 3D simulations and explore the routes and connected networks within each phase.
Open the tutorialAnimate cluster labeling and periodic winding, then compare connected components, loops and percolation in editable patterns.
Open the tutorialWork through my original C examples for spinodal decomposition and precipitate growth, with equations, input files and run instructions.
Open the tutorialExplore elastic stability, misfit tensors, self- and cross-interaction kernels, interface conditions and inhomogeneous elastic fields.
Open the tutorialCorrected course notebook and two fully explained solvers, with stress maps, orientation sweeps and independent validation.
Run and explore the solversInteractive equation and boundary checks, a staged diffusion inverse problem, and the complete teaching notebook.
Explore the PINN lesson256 × 256 course simulations with high-resolution movies, diagnostics, and Python notebook examples.
Open Monte Carlo labCompare chemical phase separation with homogeneous elasticity and examine how misfit and elastic constants change the calculated microstructure.
Work through the lessonFollow composition fluctuations as they develop into domains, and check conservation and free-energy changes in a Cahn–Hilliard simulation.
Work through the lessonWatch Fourier modes decay during diffusion and compare the numerical solution with an analytical benchmark.
Work through the lessonConnect random molecular motion to spreading with an interactive ink-drop experiment and a worked Python random-walk notebook.
Work through the lessonAn open-source collection of phase-field solvers for CPU and GPU architectures. Start here for the full software stack.
Source codeInstallation and solver documentation for preparing, running and understanding a MicroSim calculation.
Read documentationMy repository for studying spinodal decomposition in binary systems using a spectral method.
Explore repositoryA small Python example with periodic boundaries, mean-composition checks and an energy diagnostic. Includes the source for this website’s illustrative images.
Work through the exampleExample simulations supplied with the MicroSim repository. Follow the instructions for the chosen solver and record its version.
View examplesExplore the CUDA and FFT-based KKS solver module in MicroSim. Consult the repository requirements before compiling.
Explore moduleThe finite-difference CUDA/MPI module for parallel phase-field simulations in the MicroSim stack.
Explore moduleThe MicroSim team’s channel for demonstrations, tutorials and workshop recordings.
Watch tutorialsCourse folder with Julia examples, computational notebooks, assignments and simulation videos. Topics include random walks, coarse graining, variational methods, Fourier methods and phase-field modeling. Classroom topics also include elastic stress effects on microstructural evolution. Access is subject to the folder’s Google Drive permissions.
Open course folderRotate the simulated interface and inspect connected networks and periodic routes in both phases.
Open the explorerUse Gibbs energy-composition curves and equal chemical potentials to calculate equilibrium phase compositions and amounts.
Open Lab 01My original handwritten notes for Weeks 1–12, with additional notes and the typeset companion.
Browse weekly notesField and property tensors, vector calculus and crystal symmetry, explained through interactive demonstrations.
Explore the materialMy computational experiments in heat, mass and momentum transport, with conservation balances and changing control volumes.
Explore the materialMy explanation of finite control-volume balances and their connection to local conservation equations.
Explore the materialFollow the averaging, Fourier transform and radial summaries in my spatial-correlation code lessons.
Open the lessonTrace provisional labels, follow their parent links and resolve connected clusters in two passes.
Open the lessonNo resources match your search. Try another topic or choose “All resources”.
I explain the governing equations and numerical methods used in these examples, together with the parameters, units and boundary conditions. I include numerical checks to help assess the results, such as whether a conserved quantity remains constant and whether reducing the grid spacing or time step changes the solution.
I start with a small calculation, check its result and then add the next part. These lessons follow the same sequence, with explanations and checks at each stage. Open the worked Python notebook lessons