← f_ notebook · Mirrors · PDE

f_nematic, live ​

An active nematic liquid crystal: rodlike molecules stir the fluid they sit in, so pairs of defects nucleate, glide and annihilate in a pattern that never settles.

The cell below steps the NumPy mirror that f_nematic's tests are written against, in your browser. It is the NumPy mirror, not the Max patch, and it is not claimed to match the patch bit for bit.

f_nematic · NumPy mirror (Pyodide) · not the Max patch
Downloads about 15 MB the first time (Python and NumPy).
  • activity is the active stress: below about 0.3 the pattern relaxes away; higher values give more, faster-moving defects.
  • align is flow alignment; with a nonzero value its sign matters (more or fewer defects).
  • friction is the flow damping: low gives long swirls, high a calmer, more ordered texture.
  • rate is the time step per solver step, capped by activity for stability.
  • steps per frame runs several solver steps per displayed frame so the pattern does not crawl.
  • look rotates the crossed polarizer of the schlieren image.
  • view shows the classic schlieren picture, or the module's tensor outlets as hue maps.
  • source switches between the live solver and an analytic field of orbiting +/-1/2 defect pairs (deterministic).
  • Reseed starts again from fresh noise; the pattern takes several seconds to order.

reference doc · idea note · patcher · nematic_mirror.py

← Lattice BoltzmannWilson-Cowan →