← f_ notebook · ideas/f_nematic_sphere.md

f_nematic_sphere: a nematic on a sphere, and the hairy-ball constraint (concept) ​

Status: ⚪ concept only, 2026-11-27 (Claude offline, docs only). Nothing built, simulated or tried in Max. Matt asked for this note and said f_nematic itself is to be left alone; this does not reopen .specify/f_nematic/. Names are placeholders.

Sources, and how far each was read.

  • Doostmohammadi, Ignés-Mullol, Yeomans, Sagués, "Active nematics", Nat. Commun. 9:3246 (2018), the PDF Matt supplied (s41467-018-05666-8.pdf, 13 pages, text extracted with pypdf). Read: the first four pages (Box 1, the model, Eqs. 1 to 6) and the paragraph on spherical shells (pp. 7 and 8). Not read: the remaining pages (the rest of the model section, defect statistics, cell biology).
  • Refs 82 to 88 of that review (Keber 2014; Lopez-Leon 2011; Shin, Bowick and Xing 2008; Sknepnek and Henkes 2015; Zhang et al. 2016; Alaimo et al. 2017) are known by citation only. They are where a reproducible method would come from; none was opened.
  • Everything about how this would be built in f_ is [inferred] from the docs named under "Overlap".

What the effect is (from the review, pp. 7 and 8) ​

  • Active nematic material on a spherical shell (vesicles, droplets): active turbulence is suppressed in small shells, and the minimum is four +1/2 defects, because the Gauss-Bonnet theorem requires a total defect charge of +2 on a sphere. This is the hairy-ball theorem for a line field.
  • At moderate activity the four defects follow closed orbits that oscillate between tetrahedral and coplanar arrangements.
  • Other shapes (same review, citing Alaimo et al.): on prolate spheroids two defects sit at the poles and two oscillate around the waist; on oblate ones the defects rotate about each other; on a torus defects unbind where Gaussian curvature changes sign.
  • A flat periodic grid is a torus (Euler characteristic 0): it has no forced defects and cannot show this. That is why f_nematic as specced, a 128 x 128 periodic solver, does not produce it.

Overlap (checked 2026-11-27, offline docs) ​

  • docs/f-reference/module-inventory.md: f_stereo wraps a flat texture onto a rotating sphere and projects it (ortho to stereographic blend). It is the display half: any equirectangular texture in, a rotating globe out. It does not simulate anything. f_poincare and the warp family are flat-image transforms. No module solves anything on a curved surface.
  • docs/f-reference/f_stereo.md: confirms the above; read for its parameters only.
  • docs/vsynth-reference/module-inventory.md: no sphere or equirectangular hits (grep, not a full read).
  • docs/max-reference/jit_fx.md, jit_fx_vs_ideas.md: no sphere, mesh or equirectangular hits (grep of the offline notes, not Max). Nothing in jit.fx covers it. No grade in jit_fx_vs_ideas.md changes.
  • ideas/f_nematic.md: the planar parent. Its levels are A (kinematic defect field), B (relaxational Q-tensor) and C (active, with flow). The same three levels exist here.

Four ways to get there, cheapest first [inferred, none tried] ​

  1. Fake it: planar f_nematic into f_stereo. Free, ships today. It looks like a globe, but the field is a torus texture painted on a sphere: no +2 constraint, defects are not four, seams show where the texture edges meet. Useful as a demo; not the hairy-ball effect, and should not be named as it.
  2. Kinematic (level A on the sphere). Prescribe the director analytically with four +1/2 defects whose positions move (a tetrahedron that breathes toward a coplanar square, as the review describes). No PDE, no flow, cheap on the GPU. Gives the exact topology and the visual, but nothing emerges. The director would be computed in a conformal chart (stereographic), where angles are preserved, so the tensor consumers read the right direction; the chart's frame singularity needs care. Whether a sum of arg(z - z_k)/2 terms with the right correction gives a clean field on the whole sphere is not checked; a NumPy check would settle it.
  3. Relaxational Q-tensor on the sphere (level B, no flow). A local stencil (diffusion plus the Landau-de Gennes terms), no Stokes solve, so no global Poisson step. The passive ground state should be four +1/2 defects (refs 83 and 84 are about this, per their titles; the tetrahedral arrangement is from memory). Without flow the defects are not self-propelled, so it settles and stops: a coarsening demo, not a live one. Needs a discretization that handles the tensor on a curved surface (connection terms in the Laplacian); a lat-long grid has pole singularities, an icosphere or cube-sphere needs neighbor tables the codebox cannot index easily.
  4. Active, with flow (level C on the sphere). The real thing (refs 82, 86, 87). The Stokes step is a global solve on the sphere. The f_ks and f_nematic DFT chain is a flat Fourier transform and does not carry over; the sphere's analog is spherical harmonics (heavy) or an iterative Poisson solve (many passes per frame). This is the largest piece of work in the note and the one least likely to meet a frame budget; no cost estimate is made.

Open questions (Matt's, or a spike's) ​

  • Which of 1 to 4 is wanted: a demo that reads as a sphere (1), the topology as a visual (2), or the emergent dynamics (4)? They are different modules with different costs.
  • If 2 or 3: where does the output live. A chart texture (stereographic or equirectangular) fed through f_stereo, or a texture on a jit.gl mesh? Equirectangular strokes from f_tf_hatch would stretch toward the poles (inferred, not seen); stereographic keeps angles but not areas.
  • Do the tensor consumers (f_tf_hatch, f_tf_glyph, f_tf_aniso_blur) make sense on a chart at all, or does the sphere want its own renderer? Stroke length and glyph size are uniform in the chart, not on the sphere.
  • Does a nematic on a sphere add anything to the gate G-tensor-t3 (a new tensor source for live looks)? Not assessed.

Not done, on purpose ​

No spike, no spec, no gate row, no change to f_nematic. If this is picked up, the first step is reading Zhang et al. 2016 (Nat. Commun. 7:13483) and Alaimo et al. 2017 (Sci. Rep. 7:5211), which need to be supplied (Nature's site refused an automated fetch), then a NumPy check of option 2 or 3 before any Max work.

f_nematic.md, f_solver_outlets.md, f_cgl.md, f_tensorfield.md, phenomena_survey.md, docs/f-reference/f_stereo.md.