min Efit(w) + μ/2 ‖Cw‖²
Easy to edit and continue in μ. Finite μ reduces circulation but does not impose exact integrability.
open experiment gallery · direction fields · surface fluids
min Efit(w) + μ/2 ‖Cw‖²
Easy to edit and continue in μ. Finite μ reduces circulation but does not impose exact integrability.
min ½‖δ‖²M s.t. C(w+δ)=0
The answer depends on the field representation, mass matrix, boundary conditions, and global periods.
min Σ wij|ψj−eiωijψi|² s.t. ‖ψ‖M=1
Turns field directions and spacing into a periodic phase. Amplitude or an explicit scale field can yield near incompatibilities, exposing stripe branch points.
min Efit + μ/2‖Cw‖² + ν/2Σ(‖wi‖²−1)²
Finite curl and unit penalties expose the compromise before either condition is promoted to a hard constraint.
The highlighted card names the current lesson. Each family changes a distinct modeling choice: variables, metric, constraints, or regularization.
A grid with width n has 2n² position DOFs. Each spring touches only four scalar DOFs, so row width stays bounded: sparse nnz grows with the mesh, while dense storage grows with the square of the DOF count.
Adjust the labeled controls, then choose Reset + build. Choose JSON above to see the complete active problem. Repository seed: src/core/problem.ts ↗
LAB NOTE explain what TinyAD differentiates; TRY suggests a safe first change. The browser view keeps running its committed Wasm; connected mode can compile the edited vertex callback into the native target, while static mode can export it.
On GitHub Pages, download or commit C++ edits and rebuild. Locally, start the bridge to enable Build + open native. See the complete workflow →
Static mode: parameter changes are live without recompiling. Download edited source when you are ready to continue in C++.