/ concept-collection / mesh-pde-solver
Sign in
concept-collection / mesh-pde-solver
mesh-pde-solver / matlab / main.m
13 lines · 617 BBlameHistoryRaw
1% main.m — persistent solver session for mesh-pde-solver.
2%
3% Runs once inside a numbl/browser managed session, which bootstraps the mip
4% package manager (and puts it on the path) before this script starts. mip
5% fetches surfacefun and its chebfun dependency on first use; the session
6% persists installed packages across page loads. The script then opens a
7% placeholder uihtml figure purely as an event bridge: the host writes
8% mesh.msh into the VFS and dispatches 'solve' events with the PDE
9% parameters; solver_session solves and sends back per-patch data.
11mip load --install surfacefun;
13solver_session();
moveopenescclose