62e6cc4Simplify UI text and built-in .m script commentsJeremy Magland 1% The unit sphere — the reference case.
62e6cc4Simplify UI text and built-in .m script commentsJeremy Magland 3% A geometry file defines shape(theta, phi, ...) -> gx, gy, gz: the surface
4% over the solver's grid (all npts x 1), compiled to WebGPU like the models.
5% The host analyses the result into spherical-harmonic coefficients,
6% band-limited at lmax.
8function [gx, gy, gz] = shape(theta, phi)
9 st = sin(theta);
10 gx = st .* cos(phi);
11 gy = st .* sin(phi);
12 gz = cos(theta);
13end