concept-collection / surfacefun-interactive
14 lines · 574 BBlameHistoryRaw
1% Interactive vector field on a spherical surface.
2%
3% Displays a dense divergence-free tangent vector field on a sphere.
4% The field v = (x(y^2-z^2), y(z^2-x^2), z(x^2-y^2)) is the surface
5% curl of F = xyz: eight swirling vortex regions separated by saddle
6% points at the cube-face centres. sphere(16) gives 6 x 16^2 = 1536
7% arrows. Use the Arrow scale slider to resize; drag to rotate, scroll
8% to zoom.
10mip load --install flatironinstitute/flatironinstitute/surfacefun
12dom = surfacemesh.sphere(16); % 16-point Chebyshev grid, 6 patches
14vector_field_viewer(dom);