Motion and measurement are different jobs.
A tangent vector is a possible displacement. A covector consumes that displacement and returns a signed number. The metric relates the two, but does not make their roles identical.
A quiet place behind the experiments
The live page is for choosing fields and watching labels. This notebook is where the slower questions live: what kind of object is each symbol, what does a mesh actually store, why is the representation nonunique, and how does this little construction relate to fluid methods in the literature?
Read straight through once; return later as a solver checklist.
Exterior calculus in six moves
The organizing principle is integration: zero-forms are sampled at points, one-forms are integrated along curves, and two-forms are integrated over oriented patches.
A tangent vector is a possible displacement. A covector consumes that displacement and returns a signed number. The metric relates the two, but does not make their roles identical.
Circulation belongs to one selected loop. Vorticity is a local areal density. Stokes relates them only when the loop is the boundary of a patch.
The term dφ is exact and curl-free. The weighted label differential αdβ supplies the part whose derivative is the wedge of two label gradients.
Solve one scalar Poisson equation and subtract dp. This changes divergence but cannot change vorticity or a closed-loop period.
On a closed genus-g surface, 2g noncontractible periods remain after local vorticity and divergence are fixed.
Different triples can encode the same one-form. This representational freedom is distinct from changing a harmonic period, which changes the fluid.
Smooth object first · cochain second
DEC stores integrals of smooth forms on oriented mesh elements. The arrows shown in a viewer are reconstructed visualizations, not the primary discrete one-form.
Each vertex stores one number for each scalar field.
Reversing the edge orientation reverses the sign.
The signed face value is the circulation around its oriented boundary.
Incidence gives d; lengths, areas, and angles enter through the discrete Hodge stars.
Audit divergence, face circulation, and harmonic periods separately.
Return to an experiment
The flat-torus lab isolates the two harmonic coefficients. The shallow-water lab shows why divergence becomes part of the dynamics rather than something to erase.