Ideas, with the knobs exposed
Writing
Interactive essays on scientific computing, notes from the research, and things I wanted to understand better.
What symmetry buys a learned turbulence model
What do symmetry constraints buy a neural turbulence closure? Same accuracy floor, 25× fewer parameters, and one missing input for Reynolds-number generalization. An interactive companion to the paper.
Interactive essayYour time integrator is a filter
Forward Euler is not a first-order approximation. It is an exact statement, for a flux averaged over the time step. What a code leaves out is one more term in the closure problem, and that term is sixty years old.
Interactive essay · Part 3 of 3Nine components, not six
Every closure model you have used returns a symmetric, local stress. The exact one is neither. Both rules break for the same reason, and the reason is the shape of a grid cell.
Draft · Part 2 of 3Your grid is a filter
A coarse finite difference is not a sloppy derivative. It is an exact one, of an averaged field. That turns what a coarse simulation leaves unresolved into something you can write down, take apart, and test.
Interactive essay · Part 1 of 3Make Beamer slides 16:9
How to make LaTeX Beamer slides widescreen 16:9 instead of the default 4:3.
NoteWriting a differentiable fluid solver in Julia
A journey from sparse matrices in MATLAB to differentiable GPU operators in Julia, building IncompressibleNavierStokes.jl.
DraftWhat is the difference between forward and reverse mode automatic differentiation?
Forward and reverse mode automatic differentiation compute the same chain of matrix products in different orders — and that order determines their cost.
Note