Evan Patterson, Andrew Baas, Timothy Hosgood, and James Fairbanks (the Decapodes line of work) make the physicists’ informal Tonti diagrams into honest mathematics. A physical theory becomes a diagram in a category, and there are morphisms between diagrams.
A diagram in a category
The relevant
Example, advection–diffusion by wiring
The scalar transport law
is presented as a wiring diagram whose boxes are , , and and whose shared wires are the concentration form and its flux. Swapping the diffusion box for a nonlinear one is a morphism of diagrams, not a rewrite from scratch.
Remark, de Rham structure
The resulting discrete exterior calculus respects
by construction, since the objects are the forms with and , and the diagrams inherit the cochain structure underlying de Rham cohomology.