← f_ notebook · Mirrors · Adapters

f_cores, live ​

Finds the center of each swirl in a simulated Complex Ginzburg-Landau field and puts a dot on it.

The cell below steps the NumPy mirror that f_cores'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_cores · NumPy mirror (Pyodide) · not the Max patch
Downloads about 15 MB the first time (Python and NumPy).
  • mark size sets the radius of each dot as a percent of the frame height (it stops growing past 16 texels, as in the module).
  • soft sets the edge softness of the dots; 0 is a hard disc.
  • charge shows both dot colors, only the counterclockwise swirls (plus), or only the clockwise ones (minus).
  • view switches between the white marks, the plus/minus colored signed marks, and the field the marks come from.
  • field eps, field c1 and field rate shape the simulated Ginzburg-Landau field itself: more chaos means more cores.
  • steps per frame advances the field several solver steps per displayed frame so it evolves at a watchable speed.
  • Reseed starts the field again from new noise.
  • The readout line shows the raw core count the detector finds.

reference doc · patcher · cores_count_mirror.py · cores_mirror.py

← Axis FlowPotential →