Decapodes: A diagrammatic tool for representing, composing, and computing spatialized partial differential equations
Abstract
We present Decapodes, a diagrammatic tool for representing, composing, and
solving partial differential equations. Decapodes provides an intuitive
diagrammatic representation of the relationships between variables in a system
of equations, a method for composing systems of partial differential equations
using an operad of wiring diagrams, and an algorithm for deriving solvers using
hypergraphs and string diagrams. The string diagrams are in turn compiled into
executable programs using the techniques of categorical data migration, graph
traversal, and the discrete exterior calculus. The generated solvers produce
numerical solutions consistent with state-of-the-art open source tools as
demonstrated by benchmark comparisons with SU2. These numerical experiments
demonstrate the feasibility of this approach to multiphysics simulation and
identify areas requiring further development.
A diagrammatic view of differential equations in physics
Abstract
Presenting systems of differential equations in the form of diagrams has become
common in certain parts of physics, especially electromagnetism and
computational physics. In this work, we aim to put such use of diagrams on a
firm mathematical footing, while also systematizing a broadly applicable
framework to reason formally about systems of equations and their solutions. Our
main mathematical tools are category-theoretic diagrams, which are well known,
and morphisms between diagrams, which have been less appreciated. As an
application of the diagrammatic framework, we show how complex, multiphysical
systems can be modularly constructed from basic physical principles. A wealth of
examples, drawn from electromagnetism, transport phenomena, fluid mechanics, and
other fields, is included.